我有一个特定的静态路线,需要广告进入EIGRP,并最终进入BGP的远程办公室。我的目标是减少所需的配置更新,不仅是为了更新新添加的静态路由,还包括用于EIGRP的路由映射ACL,以及到下一跳的策略路由ACL。
我已经了解到,路由标记可能是在配置较少的情况下路由通信量的一种选择。基本上,我可以用一个数字(例如20)标记一个静态路由。然后,我可以创建一个与标签20相匹配的路线图,并在EIGRP中设置标签20并将其配置为匹配并再次广告该标签。在接收路由器上,我应该能够以类似的方式(EIGRP- to -BGP路由映射)为BGP执行相同的步骤,但是,我仍然有一个与此标记方法不完全匹配的策略路由(ACL有一个源/目的地,而前缀列表没有)。
我在这里的目标是创建带有标记的特定静态路由,并让这些标记正确地进行和广告(包括策略路由-映射或类似的),而不必每次更新其他3个ACL。政策地图对再分配没有很好的发挥--有人想出了其他类似的想法吗?
发布于 2014-01-20 07:34:55
我并不是100%确定标签是否在BGP更新中携带,但下面是我非常快速地将这些标记组合在一起的内容:

路由器“静态”:
interface Loopback0
ip address 172.16.1.1 255.255.255.0
!
interface Loopback1
ip address 172.16.2.1 255.255.255.0
interface Ethernet0/1
ip address 172.16.0.1 255.255.255.0
half-duplex
ip route 0.0.0.0 0.0.0.0 172.16.0.2路由器R1:
interface Ethernet0/0
ip address 10.0.0.1 255.255.255.252
half-duplex
interface Ethernet0/1
ip address 172.16.0.2 255.255.255.0
half-duplex
ip route 172.16.1.0 255.255.255.0 172.16.0.1 tag 20
ip route 172.16.2.0 255.255.255.0 172.16.0.1 tag 20
router eigrp 100
redistribute static route-map MyRouteMap
network 10.0.0.0 0.0.0.3
no auto-summary
route-map MyRouteMap permit 10
match tag 20路由器R2:
interface Ethernet0/0
ip address 10.0.0.2 255.255.255.252
half-duplex
interface Ethernet0/1
ip address 10.0.0.5 255.255.255.252
half-duplex
router eigrp 100
network 10.0.0.0 0.0.0.3
no auto-summary
router bgp 65000
no synchronization
bgp log-neighbor-changes
redistribute eigrp 100 route-map MyRouteMap
neighbor 10.0.0.6 remote-as 65000
neighbor 10.0.0.6 next-hop-self
no auto-summary
route-map MyRouteMap permit 10
match tag 20
R2#show ip route 172.16.1.0
Routing entry for 172.16.1.0/24
Known via "eigrp 100", distance 170, metric 307200
Tag 20, type external路由器R3:
interface Ethernet0/1
ip address 10.0.0.6 255.255.255.252
half-duplex
router bgp 65000
no synchronization
bgp log-neighbor-changes
neighbor 10.0.0.5 remote-as 65000
no auto-summary
R3#show ip bgp 172.16.1.0
BGP routing table entry for 172.16.1.0/24, version 3
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Not advertised to any peer
Local
10.0.0.5 from 10.0.0.5 (10.0.0.2)
Origin incomplete, metric 307200, localpref 100, valid, internal, best我希望这就是你想要的。
发布于 2017-02-24 20:44:59
我觉得有点晚了,但是..。我来了
您应该使用社区标记路由,然后在策略上使用它,而不是BGP上的ACL。
https://networkengineering.stackexchange.com/questions/5935
复制相似问题