CCNP(BSCI)实验:BGP实验利用路由反射器使全网互通

网友投稿 247 2022-09-22


CCNP(BSCI)实验:BGP实验利用路由反射器使全网互通

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、R3、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 2.2.2.2R3(config-router)#net 23.0.0.3 R3(config-router)#net 34.0.0.3R3(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第二步:再让各路由器上的BPG跑起来

R1(config)#router b 100R1(config-router)#nei 12.0.0.2 remot 200

R2(config)#router b 200R2(config-router)#nei 12.0.0.1 remot 100R2(config-router)#nei 3.3.3.3 remot 200R2(config-router)#nei 3.3.3.3 up lo0R2(config-router)#net 2.2.2.

R4(config)#router b 200R4(config-router)#nei 3.3.3.3 remot 200R4(config-router)#nei 3.3.3.3 up lo0R4(config-router)#nei 45.0.0.5 remot 500

R5(config)#router b 500R5(config-router)#nei 45.0.0.4 remot 200

我们在R3上用一种简单的方式R3(config-router)#router b 200R3(config-router)#nei libo peer-group R3(config-router)#nei libo remot 200R3(config-router)#nei libo up lo0R3(config-router)#nei 2.2.2.2 peer liboR3(config-router)#nei 4.4.4.4 peer liboR3(config-router)#end

第三步:查看邻居建立情况

R1#sh ip b sBGP router identifier 1.1.1.1, local AS number 100BGP table version is 1, main routing table version 1Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd12.0.0.2 4 200 10 10 1 0 0 00:06:31 0

R2#sh ip b sBGP router identifier 2.2.2.2, local AS number 200BGP table version is 1, main routing table version 1Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd3.3.3.3 4 200 5 5 1 0 0 00:01:45 012.0.0.1 4 100 11 11 1 0 0 00:07:39 0R2#R2#

R3#sh ip b sBGP router identifier 3.3.3.3, local AS number 200BGP table version is 1, main routing table version 1Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd2.2.2.2 4 200 4 4 1 0 0 00:00:40 04.4.4.4 4 200 4 4 1 0 0 00:00:28 0

R4#sh ip b sBGP router identifier 4.4.4.4, local AS number 200BGP table version is 1, main routing table version 1Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd3.3.3.3 4 200 4 4 1 0 0 00:00:34 045.0.0.5 4 500 7 7 1 0 0 00:03:54 0

R5#sh ip b sBGP router identifier 5.5.5.5, local AS number 500BGP table version is 1, main routing table version 1Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd45.0.0.4 4 200 7 7 1 0 0 00:03:57 0//从上面可以看出邻居关系是没有问题的第四步:宣告出路由表中没有的路由

第四步分以下几步第一步:先在R1上宣告自己的回环接口1.1.1.1并在R2上查看R1(config-router)#net 1.1.1.0 mask 255.255.255.0R2#sh ip bBGP table version is 2, local router ID is 2.2.2.2Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path> 1.1.1.0/24 12.0.0.1 0 0 100 i第二步:再R5上做相同的配置R5(config-router)#net 5.5.5.0 mask 255.255.255.0第三步:查看R3上的bgp表R3#sh ip bBGP table version is 1, local router ID is 3.3.3.3Status codes: s suppressed, d damped, h history, valid, > best, i - internal,r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path

+>(tcl)#1.1.1.1 +>(tcl)#2.2.2.2+>(tcl)#3.3.3.3+>(tcl)#4.4.4.4+>(tcl)#5.5.5.5+>(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)#45.0.0.4+>(tcl)#45.0.0.5+>(tcl)#34.0.0.4 +>(tcl)#} {ping $ip}

Type 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 = 52/132/288 msType 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 = 36/88/136 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 = 28/61/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 = 12/41/88 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 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 = 44/76/116 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 = 48/94/136 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 = 64/96/192 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 = 56/84/104 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/66/92 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 = 4/48/108 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 = 32/72/116 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 = 28/43/56 ms


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

上一篇:CCNP(BSCI)实验:EIGRP的默认路由(bgp能够检测路由环路)
下一篇:如何解决hibernate一对多注解懒加载失效问题
相关文章

 发表评论

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