CCNP(BSCI)实验:路由器之间的负载均衡实验

网友投稿 274 2022-09-22


CCNP(BSCI)实验:路由器之间的负载均衡实验

实验过程:第一步:在R2上加两条去3.3.3.0网段的路由R2#conf tEnter configuration commands, one per line. End with CNTL/Z.R2(config)#ip route 3.3.3.0 255.255.255.0 23.0.0.3R2(config)#ip route 3.3.3.0 255.255.255.0 123.0.0.3R2(config)#exitR2#sh ip rouCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route

Gateway of last resort is not set

2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback03.0.0.0/24 is subnetted, 1 subnetsS 3.3.3.0 [1/0] via 23.0.0.3[1/0] via 123.0.0.3//我们在这里看到去3.3.3.0的两个23.0.0.0/24 is subnetted, 1 subnetsC 23.0.0.0 is directly connected, Serial2/2123.0.0.0/24 is subnetted, 1 subnetsC 123.0.0.0 is directly connected, FastEthernet0/0R2#第二步:ping3.3.3.3R2#ping 3.3.3.3

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:!.!.!//为什么会出现这种情况,罕见的 !.!.!Success rate is 60 percent (3/5), round-trip min/avg/max = 20/60/84 msR2#在R2上debug ip packet后看到只有23.0.0.3接口通过的成功了Nov 16 21:49:44.103: IP: tableid=0, s=123.0.0.2 (local), d=3.3.3.3 (FastEthernet0/0), routed via RIBNov 16 21:49:44.103: IP: s=123.0.0.2 (local), d=3.3.3.3 (FastEthernet0/0), len 100, sendingNov 16 21:49:44.107: IP: s=123.0.0.2 (local), d=3.3.3.3 (FastEthernet0/0), len 100, encapsulation failedNov 16 21:49:46.099: IP: tableid=0, s=23.0.0.2 (local), d=3.3.3.3 (Serial2/2), routed via RIBNov 16 21:49:46.099: IP: s=23.0.0.2 (local), d=3.3.3.3 (Serial2/2), len 100, sendingNov 16 21:49:46.143: IP: tableid=0, s=3.3.3.3 (Serial2/2), d=23.0.0.2 (Serial2/2), routed via RIBNov 16 21:49:46.147: IP: s=3.3.3.3 (Serial2/2), d=23.0.0.2 (Serial2/2), len 100, rcvd 3Nov 16 21:49:46.151: IP: tableid=0, s=123.0.0.2 (local), d=3.3.3.3 (FastEthernet0/0), routed via RIBNov 16 21:49:46.151: IP: s=123.0.0.2 (local), d=3.3.3.3 (FastEthernet0/0), len 100, sendingNov 16 21:49:46.155: IP: s=123.0.0.2 (local), d=3.3.3.3 (FastEthernet0/0), len 100, encapsulation failed.!Nov 16 21:49:48.147: IP: tableid=0, s=23.0.0.2 (local), d=3.3.3.3 (Serial2/2), routed via RIBNov 16 21:49:48.147: IP: s=23.0.0.2 (local), d=3.3.3.3 (Serial2/2), len 100, sendingNov 16 21:49:48.191: IP: tableid=0, s=3.3.3.3 (Serial2/2), d=23.0.0.2 (Serial2/2), routed via RIBNov 16 21:49:48.195: IP: s=3.3.3.3 (Serial2/2), d=23.0.0.2 (Serial2/2), len 100, rcvd 3Nov 16 21:49:48.199: IP: tableid=0, s=123.0.0.2 (local), d=3.3.3.3 (FastEthernet0/0), routed via RIBNov 16 21:49:48.203: IP: s=123.0.0.2 (local), d=3.3.3.3 (FastEthernet0/0), len 100, sending*Nov 16 21:49:48.207: IP: s=123.0.0.2 (local), d=3.3.3.3 (FastEthernet0/0), len 100, encapsulation failedSuccess rate is 40 percent (2/5), round-trip min/avg/max = 48/48/48 msR2#第三步:关闭R2上的两个接口的cef表R2(config)#int s2/2R2(config-if)#no ip cefR2(config)#int f0/0R2(config-if)#no ip cefR2(config)#第四步:再Ping 3.3.3.3 (连续ping 2 次)R2#ping 3.3.3.3

Type 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 = 4/30/52 msR2#sh ip route 3.3.3.3Routing entry for 3.3.3.0/24Known via "static", distance 1, metric 0Routing Descriptor Blocks:23.0.0.3Route metric is 0, traffic share count is 1

123.0.0.3 (走下面一条)Route metric is 0, traffic share count is 1

R2#ping 3.3.3.3

Type 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 = 8/30/60 msR2#sh ip route 3.3.3.3Routing entry for 3.3.3.0/24Known via "static", distance 1, metric 0Routing Descriptor Blocks:

23.0.0.3 (走上面一条)Route metric is 0, traffic share count is 1123.0.0.3Route metric is 0, traffic share count is 1

R2#实验(二)当R2为穿越流量时的实验实验过程:第一步:在R1上ping3.3.3.3R1#ping 3.3.3.3

Type 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 = 8/46/96 msR1#R1#R1#第二步:查看是否在R2上负载均衡R1#traceroute 3.3.3.3

Type escape sequence to abort.Tracing the route to 3.3.3.3

1 12.0.0.2 28 msec 48 msec 24 msec2 23.0.0.3 8 msec * 24 msecR1#traceroute 3.3.3.3

Type escape sequence to abort.Tracing the route to 3.3.3.3

1 12.0.0.2 60 msec 28 msec 12 msec2 123.0.0.3 32 msec * 28 msec//只有一条??R1#第三步:关闭R2上与R3相连的两个接口的route-cache表R2(config)#int s2/2R2(config-if)#no ip routeR2(config-if)#no ip route-cR2(config-if)#int f0/0R2(config-if)#no ip route-cR2(config-if)#

第四步:跟踪R1 ping 3.3.3.3 的过程R1#traceroute 3.3.3.3

Type escape sequence to abort.Tracing the route to 3.3.3.3

1 12.0.0.2 64 msec 12 msec 96 msec2 123.0.0.3 36 msec23.0.0.3 24 msec * (over--success)R1#第五步:取消第三步并查看结果R1#traceroute 3.3.3.3

Type escape sequence to abort.Tracing the route to 3.3.3.3

1 12.0.0.2 52 msec 56 msec 12 msec2 123.0.0.3 40 msec * 32 msecR1#


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

上一篇:CCNP(BSCI)实验:路由器和PC之间的DHCP服务
下一篇:Java异常(Exception)处理以及常见异常总结
相关文章

 发表评论

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