CCNP(BSCI)实验:BGP实验利用联邦使全网互通(BSP实验)

网友投稿 385 2022-10-07


CCNP(BSCI)实验:BGP实验利用联邦使全网互通(BSP实验)

R2上的配置enconf tno ip do loline c 0no exec-tlogg synhost R2int lo0ip add 2.2.2.2 255.255.255.0int s2/1ip add 12.0.0.2 255.255.255.0no shint s2/2ip add 23.0.0.2 255.255.255.0no sh

R3上的配置enconf tno ip do loline c 0no exec-tlogg synhost R3int lo0ip add 3.3.3.3 255.255.255.0int s2/1ip add 23.0.0.3 255.255.255.0no shint s2/2ip add 34.0.0.3 255.255.255.0no sh

R4上的配置enconf tno ip do loline c 0no exec-tlogg synhost R4int lo0 ip add 4.4.4.4 255.255.255.0int s2/1ip add 34.0.0.4 255.255.255.0no shint s2/2ip add 45.0.0.4 255.255.255.0no sh

R5上的配置enconf tno ip do loline c 0no exec-tlogg synhost R5int lo0ip add 5.5.5.5 255.255.255.0int s2/2ip add 45.0.0.5 255.255.255.0no sh实验过程:第一步:先让R2-R4上的EIGRP协议跑起来

R2(config)#router ei 11R2(config-router)#net 2.2.2.2R2(config-router)#net 23.0.0.2R2(config-router)#no au

R3(config)#router ei 11R3(config-router)#net 3.3.3.3R3(config-router)#net 23.0.0.3R3(config-router)#net 34.0.0.4R3(config-router)#no au

R4(config)#router ei 11R4(config-router)#net 4.4.4.4R4(config-router)#net 34.0.0.4R4(config-router)#no au第二步:再在R1—R5上跑BGP协议第二步分步:本文重点第一步:在R1上指定邻居R2的物理接口12.0.0.2为AS为234.其实R2的AS为65023。我们想到会在R1上出现错误,我们来看看实际情况R1(config)#router b 100R1(config-router)#nei 12.0.0.2 remot 234

R2(config-router)#router b 65023R2(config-router)#nei 12.0.0.1 remot 100

Nov 29 17:18:21.315: %BGP-3-NOTIFICATION: sent to neighbor 12.0.0.2 2/2 (peer in wrong AS) 2 bytes FDFFR1(config-router)# FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 002D 0104 FDFF 00B4 0202 0202 1002 0601 0400 0100 0102 0280 0002 0202 00//我们看到了在R1上出现的错误接着我们再配置完R2R2(config-router)#bgp confederation identifier 234//这里我们对外宣布as为234,也就是说欺骗R1说我是234。这样R1上不会出现错误提示R2(config-router)#nei 3.3.3.3 remot 65R2(config-router)#nei 3.3.3.3 remot 65023R2(config-router)#nei 3.3.3.3 up lo0R2(config-router)#第二步:在其它各路由器上配置bgp在R5上和R1上出现的情况是一致的,我们在这里不在演示R3(config)#router b 65023R3(config-router)#bgp confederation identifier 234R3(config-router)#bgp confederation peers 65034R3(config-router)#nei 2.2.2.2 remot 65023R3(config-router)#nei 2.2.2.2 up lo0R3(config-router)#nei 4.4.4.4 remot 65034 R3(config-router)#nei 4.4.4.4 up lo0R3(config-router)#nei 4.4.4.4 eR4(config-router)#router b 65034R4(config-router)#bgp con id 234R4(config-router)#bgp con p 65023R4(config-router)#nei 45.0.0.5 remot 500R4(config-router)#nei 3.3.3.3 remot 65023R4(config-router)#nei 3.3.3.3 up lo0R4(config-router)#nei 3.3.3.3 ebgp-multihop *

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/33/80 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 24/56/100 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 44/71/120 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 80/119/180 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 12.0.0.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/39/64 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 23.0.0.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/26/44 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 23.0.0.3, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/55/80 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 34.0.0.3, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 48/70/124 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 34.0.0.4, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/101/184 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 45.0.0.4, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 40/54/100 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 45.0.0.5, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 44/85/136 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

R5#tclshR5(tcl)#foreach ip { +>(tcl)#2.2.2.2+>(tcl)#1.1.1.1+>(tcl)#3.3.3.3+>(tcl)#4.4.4.4+>(tcl)#12.0.0.1+>(tcl)#12.0.0.2+>(tcl)#23.0.0.2+>(tcl)#23.0.0.3+>(tcl)#34.0.0.3+>(tcl)#34.0.0.4+>(tcl)#45.0.0.4+>(tcl)#45.0.0.5+>(tcl)#5.5.5.5+>(tcl)#} {ping $ip}

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 76/108/188 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 44/98/140 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 36/73/96 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/38/80 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 76/98/140 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 12.0.0.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 60/84/108 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 23.0.0.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 80/100/128 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 23.0.0.3, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/64/116 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 34.0.0.3, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/88/124 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 34.0.0.4, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/41/60 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 45.0.0.4, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/32/52 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 45.0.0.5, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 24/43/92 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 msR5(tcl)#


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:浅谈spring boot使用thymeleaf版本的问题
下一篇:CCNP(BSCI)实验:使用offset-list来修改Rip协议的度量
相关文章

 发表评论

暂时没有评论,来抢沙发吧~