欢迎来到天天文库
浏览记录
ID:11250725
大小:48.50 KB
页数:4页
时间:2018-07-11
《操纵bgp as-path 属性案例》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、操纵BGPAS-PATH属性案例(配图+详细验证过程)BGP总是优先选择具有最短AS路径的路由。本案例中,我们将配置R1,将1.0.0.0通告给R2、R3之前预先添加两个额外的AS路径到1.0.0.0上(AS300、AS400) 具体配置如下:////r1////intf2/0 ipad192.1.1.1255.255.255.0 intf3/0 ipad193.1.1.1255.255.255.0 intlo0 ipad1.1.1.1255.255.255.0 intlo1 ipad2.2.2.2255.255.
2、255.0 routerbgp100 nosyn neighbor192.1.1.2remote-as200 neighbor193.1.1.3remote-as200 network1.0.0.0 network1.0.0.0 neighbor193.1.1.3route-mapaspathout access-list1permit1.0.0.00.255.255.255 route-mapaspath10 matchipad1 setas-pathprepend300400route-mapaspath20
3、 ////r2////intf2/0 ipad192.1.1.2255.255.255.0 intf4/0 ipad194.1.1.2255.255.255.0 routeros1 netw0.0.0.0255.255.255.255a0 passive-interfacef2/0 routerbgp200 nosyn neighbor192.1.1.1remote-as100 neighbor194.1.1.4remote-as200 neighbor195.1.1.3remote-as200 neighbor
4、194.1.1.4next-hop-self ////r3////intf3/0 ipad193.1.1.3255.255.255.0 intf5/0 ipad195.1.1.3255.255.255.0 routeros1 netw0.0.0.0255.255.255.255a0 passive-interfacef3/0 routerbgp200 nosyn neighbor193.1.1.1remote-as100 neighbor195.1.1.4remote-as200 neighbor195.1.1.
5、4next-hop-self neighbor194.1.1.2remote-as200 ////r4////intf4/0 ipad194.1.1.4255.255.255.0 intf5/0 ipad195.1.1.4255.255.255.0 intlo0 ipad4.4.4.4255.255.255.0 routeros1 netw0.0.0.0255.255.255.255a0 routerbgp200 nosyn neighbor194.1.1.2remote-as200 neighbor195.1.
6、1.3remote-as200 netw4.0.0.0 验证: r3#shipb Network NextHop MetricLocPrfWeightPath*>i1.0.0.0 192.1.1.1 0 100 0100i* 193.1.1.1 0 0100300400i*i2.0.0.0 192.1.1.1
7、 0 100 0100i*> 193.1.1.1 0 0100i*>i4.0.0.0 195.1.1.4 0 100 0i r3#shiproB 1.0.0.0/8[200/0]via192.1.1.1,00:05:23B 2.0.0.0/8[20/0]via193.1.1.1,00:05:23 4.0.0.0/8isvariablys
8、ubnetted,2subnets,2masksO 4.4.4.4/32[110/65]via195.1.1.4,00:10:38,Serial5/0B 4.0.0.0/8[200/0]via195.1.1.4,00:10:13C 193.1.1.0/24isdirectlyconnected,Serial3/0O 192.1.1
此文档下载收益归作者所有