取消
显示结果 
搜索替代 
您的意思是: 
cancel
2551
查看次数
10
有帮助
0
回复

思科EIGRP路由泄露的作用

suzhouxiaoniu
Spotlight
Spotlight
关于EIGRP配置stub的试验,查看到可跟参数有leak-map,不解其用法,谷歌后得到相关的答案:
一)、leak-map 貌似QOS调用策略一样,见其可使用在路由汇总:
eigrp同时可以配置汇总路由的同时,宣告部分子网路由
configureterminal
ip prefix-list xiaoyang permit 192.168.0.0/22
route-map xiaoyangmap permit 10
match ip address prefix-list xiaoyang
exit
route-map xiaoyangcisco permit 20
exit
interfaceSerial0/0
ip summary-address eigrp 90 192.168.0.0 255.255.252.0 leak-map xiaoyangmap
end
注释 路由汇总也是EIGRP的特性之一,可以配置在任意路由器的接口进行汇总,不象OSPF那样只能在ABR汇总。汇总路由的度量值和所汇总路由中的最好的子网路由的度量值一致。Leakmap特性在12.3(14)T后引入,可以在汇总路由的同时发布某些更匹配的路由
二)、用在单路由器双宿主结构的网络结构,如图:

120121krw2xrh58lsqawxw.jpg
下面的配置显示了怎样在网络中设置一个EIGRP leak-map
route eigrp 100
eigrp stub connected summary leak-map stubsite
!
route-map stubsite permit 10
match ip prefix-list default
match interface e0/0
route-map foo permit 20
match ip prefix-list localroutes
match interface s0/0
!
ip prefix-list default permit 0.0.0.0/0
!
ip prefix-list localroutes permit 192.168.2.0/23 ge /24
以上看的我昏迷。。看其解说后以自身学习的程度分析为:EIGRP在此类网络结构中,会因为某个集中路由器(AB)丢失一条路由后,对网络所发查询包导致每个路由器都要相应其查询并应答,耗费网络带宽并且因此原因造成网络的不稳定因素。但是通常配置C为末端路由器,不能给D广播其连接的192.168.1.0网段;因此思科在IOS11.3(11)T后,增加了eigrp stub leak-map 的关键字命令,改变这一现象,以下给于拓扑图解并摘抄En原文:
the eigrp stub leak-map option. With thisoption, you can specify a route-map that selects theroutes a stub router propagates to its neighbors (effectively turning it into anot-so-stubby-router).
NoteThe leak-map optionconfigured on the stub router does not change the DUAL behavior on itsneighbors (core routers). You must thus ensure through proper network designthat the exclusion of the stub router from the DUAL querying process does notlead to undesired side effects.
To configure theroute leaking on the stub router, you have to configure a route-map that wouldusually refer to an access-list which would inturn select the routes you want to leak (but you could, for example, alsodecide to leak only external EIGRP routes with the proper match keywords in the route-map). For example,in the final configuration of the B1 router (included in Listing 8), the EigrpLeakedRoutes access listpermits the default route (this one has to be leaked from A1 to B2) and theloopback interfaces of the remote office routers (these addresses have to be leakedto A1). The final EIGRP routing table on B2 is shown in Listing 9; note that italso contains the default route advertised from B1 due to the leak-map.
Listing 8
Leak-mapconfiguration on B1
router eigrp 1
network 0.0.0.0
no auto-summary
eigrp stub connectedleak-map EigrpLeakedRoutes
!
ip access-liststandard EigrpLeakedRoutes
permit 0.0.0.0
permit172.16.0.16 0.0.0.15
!
route-mapEigrpLeakedRoutes permit 10
match ip addressEigrpLeakedRoutes
Listing 9
Correct routingtable on B2
b2#show ip route eigrp
172.16.0.0 255.255.0.0 is variably subnetted, 3 subnets, 2 masks
D 172.16.0.21 255.255.255.255
[90/156160] via 192.168.0.5, 00:00:28, FastEthernet0/0
D 172.16.1.0 255.255.255.252
[90/2172416] via 192.168.0.5, 00:00:28, FastEthernet0/0
D* 0.0.0.0 0.0.0.0 [90/2174976] via 192.168.0.5, 00:00:27, FastEthernet0/0
找了一晚上,最后还是通过上面一段En文大概的理解了eigrp stub leak-map 的作用:

120226pffv7fdep1pjbpeb.jpg
设置成为stub末端路由器时,通过策略表,决定你所想发布出去的路由信息,此stub末端路由器会将其直连网络和定义的路由条目一起广播出去,广播的接口包括面向核心路由器或者其他远程地点路由器的接口。
多路由器地点被设置为末端时,核心路由器会将它们视为等同于只有一个被设为末端的路由器的远程地点。以上实例为将B1设置为stub末端路由器,并让其匹配发布默认路由条目,这样当A2-B2链路down掉后,B2会学习到B1广播过来其直连网段的路由和一条默认路由,B2会以此收敛。
以上是搜索了半晚上所认识到的,因一直没有翻到相关的中文资料和相关试验解析,所以以上纯属个人对此命令的学习,切记不要以其为准。如有朋友知道更精准详细的解析,还请分享。

0 条回复0
快捷链接