验证BGP路由黑洞&对等体组完成对等体全互联
1)在AS100内先完成环路【R1和R4建立IBGP邻居,在R1引入EBGP和IBGP】 实验BGP路由黑洞: R1与R4 建立iBGP邻居R1:router bgp 100 neighbor 44.1.1.1 remote-as 100 //指定44.1.1.1为其邻居as号码为100 neighbor 44.1.1.1 update-source Loopback0 //指定44.1.1.1更新源为loopback0 R4:router bgp 100 neighbor 11.1.1.1 remote-as 100 //指定11.1.1.1为其邻居as号码为100 neighbor 11.1.1.1 update-source Loopback0 //指定11.1.1.1更新源为loopback0 R4#show ip bgp summary //查看BGP邻居状态BGP router identifier 44.1.1.1, local AS number 100BGP table version is 13, main routing table version 135 network entries using 720 bytes of memory5 path entries using 420 bytes of memory3/3 BGP path/bestpath attribute entries using 480 bytes of memory1 BGP AS-PATH entries using 24 bytes of memory0 BGP route-map cache entries using 0 bytes of memory0 BGP filter-list cache entries using 0 bytes of memoryBGP using 1644 total bytes of memoryBGP activity 7/2 prefixes, 7/2 paths, scan interval 60 secs Neighbor V AS MsgRcvd MsgSent TblVerInQ OutQ Up/DownState/PfxRcd11.1.1.1 4 100 432 430 13 0 0 06:29:00 3 R1:ospf引入BGP路由router bgp 100bgp redistribute-internal //使能 内部BGP(iBGP)路由重分发到IGProuter ospf 110 redistribute bgp 100 subnets//在ospf进程下引入BGP路由 在R5上使用业务地址进行测试: R5#traceroute 4.4.4.4 source 5.5.5.5Type escape sequence to abort.Tracing the route to 4.4.4.4VRF info: (vrf in name/id, vrf out name/id)1 10.1.15.1 1 msec 0 msec 1 msec2 10.1.13.3 0 msec 1 msec 0 msec3 10.1.13.1 1 msec 0 msec 0 msec4 10.1.13.3 1 msec 0 msec 1 msec5 10.1.13.1 0 msec 1 msec 0 msec6 10.1.13.3 1 msec 0 msec 1 msec7 10.1.13.1 0 msec 1 msec 0 msec8 10.1.13.3 1 msec 1 msec 0 msec9 10.1.13.1 1 msec 0 msec 1 msec 10 10.1.13.3 1 msec 0 msec 0 msec 11 10.1.13.1 1 msec 1 msec 1 msec 12 10.1.13.3 1 msec 1 msec 1 msec 13 10.1.13.1 1 msec 1 msec 1 msec 14 10.1.13.3 1 msec 1 msec 1 msec 15 10.1.13.1 1 msec 1 msec 1 msec 16 10.1.13.3 1 msec 1 msec 1 msec 17 10.1.13.1 1 msec 1 msec 1 msec 18 10.1.13.3 1 msec 1 msec 2 msec 19 10.1.13.1 1 msec 1 msec 1 msec 20 10.1.13.3 2 msec 1 msec 1 msec 21 10.1.13.1 3 msec 1 msec 2 msec 22 10.1.13.3 1 msec 2 msec 1 msec 23 10.1.13.1 2 msec 2 msec 2 msec 24 10.1.13.3 2 msec 2 msec 1 msec 25 10.1.13.1 2 msec 1 msec 1 msec 26 10.1.13.3 2 msec 2 msec 2 msec 27 10.1.13.1 3 msec 2 msec 2 msec 28 10.1.13.3 1 msec 2 msec 1 msec 29 10.1.13.1 2 msec 2 msec 2 msec 30 10.1.13.3 1 msec 2 msec 2 msec 2)去掉R1的引入,在AS100内的R1、R2上部署对等组,完成全互联 实验BGP全互联:R1:router bgp 100 bgp router-id 1.1.1.1 bgp log-neighbor-changes network 1.1.1.1 mask 255.255.255.255 neighbor miqi peer-group //创建名称为miqi的对等组模板 neighbor miqi remote-as 100 //指定miqi对等组模板的as号码为100 neighbor miqi update-source Loopback0//指定miqi对等组使用loopbakc0为更新源 neighbor miqi next-hop-self //指定miqi对等组 邻居从R1学到的路由 next-hop为R1 neighbor 10.1.15.5 remote-as 200 neighbor 22.1.1.1 peer-group miqi //指定邻居调用miqi对等体组 neighbor 33.1.1.1 peer-group miqi //指定邻居调用miqi对等体 neighbor 44.1.1.1 peer-group miqi //指定邻居调用miqi对等体 R1#show ip bgp summary //查看BGP邻居BGP router identifier 1.1.1.1, local AS number 100BGP table version is 16, main routing table version 167 network entries using 1008 bytes of memory7 path entries using 588 bytes of memory4/4 BGP path/bestpath attribute entries using 640 bytes of memory1 BGP AS-PATH entries using 24 bytes of memory0 BGP route-map cache entries using 0 bytes of memory0 BGP filter-list cache entries using 0 bytes of memoryBGP using 2260 total bytes of memoryBGP activity 11/4 prefixes, 11/4 paths, scan interval 60 secs Neighbor V AS MsgRcvd MsgSent TblVerInQ OutQ Up/DownState/PfxRcd10.1.15.5 4 200 33 38 16 0 0 00:26:45 222.1.1.1 4 100 12 14 16 0 0 00:05:26 233.1.1.1 4 100 8 11 16 0 0 00:04:05 044.1.1.1 4 100 444 445 16 0 0 06:41:12 2 R2: router bgp 100 bgp router-id 2.2.2.2 bgp log-neighbor-changes network 2.2.2.2 mask 255.255.255.255 neighbor miqi peer-group //创建名称为miqi的对等组模板 neighbor miqi remote-as 100 //指定miqi对等组模板的as号码为100 neighbor miqi update-source Loopback0 //指定miqi对等组使用loopbakc0为更新源 neighbor miqi next-hop-self //指定miqi对等组 邻居从R2学到的路由 next-hop为R2 neighbor 11.1.1.1 peer-group miqi //指定邻居调用miqi对等体 neighbor 33.1.1.1 peer-group miqi //指定邻居调用miqi对等体 neighbor 44.1.1.1 peer-group miqi //指定邻居调用miqi对等体 neighbor 66.1.1.1 remote-as 200 neighbor 66.1.1.1 ebgp-multihop 2 neighbor 66.1.1.1 update-source Loopback0 R2#show ip bgp summary //查看BGP邻居BGP router identifier 2.2.2.2, local AS number 100BGP table version is 21, main routing table version 217 network entries using 1008 bytes of memory7 path entries using 588 bytes of memory4/4 BGP path/bestpath attribute entries using 640 bytes of memory1 BGP AS-PATH entries using 24 bytes of memory0 BGP route-map cache entries using 0 bytes of memory0 BGP filter-list cache entries using 0 bytes of memoryBGP using 2260 total bytes of memoryBGP activity 12/5 prefixes, 12/5 paths, scan interval 60 secs Neighbor V AS MsgRcvd MsgSent TblVerInQ OutQ Up/DownState/PfxRcd11.1.1.1 4 100 14 12 21 0 0 00:06:08 333.1.1.1 4 100 11 13 21 0 0 00:04:31 044.1.1.1 4 100 11 12 21 0 0 00:03:43 266.1.1.1 4 200 444 450 21 0 0 06:42:00 1 3)AS100的业务接口可以5.5.5.5通信 全互联后测试as100内路由器的业务口是否都可以与5.5.5.5通信R1:R1#ping 5.5.5.5 source 1.1.1.1 //测试业务是否可以与5.5.5.5通讯Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:Packet sent with a source address of 1.1.1.1 !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 msR2:R2#ping 5.5.5.5 source 2.2.2.2 //测试业务是否可以与5.5.5.5通讯Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:Packet sent with a source address of 2.2.2.2 !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 msR3:R3#ping 5.5.5.5 source 3.3.3.3 //测试业务是否可以与5.5.5.5通讯Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:Packet sent with a source address of 3.3.3.3 !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 msR4:R4#ping 5.5.5.5 source 4.4.4.4 //测试业务是否可以与5.5.5.5通讯Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:Packet sent with a source address of 4.4.4.4 !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms更多相关资料获取请加官方微信
页:
[1]