CCNP(BCMSN)实验:HSRP实验(热备份路由协议)

网友投稿 344 2022-09-22


CCNP(BCMSN)实验:HSRP实验(热备份路由协议)

本实验目的及要求

我们为了使pc4、5有一个良好的上网环境给pc4、5做了热备份路由 正常从R1经过,R1挂掉之后,走R3 当R1修好时又走R1 R1的外网链路断的之后,又走R3,并且在R1修好时又走R1 在R1和R2上关闭icmp重定向和proxy-arp 多组使R1的组1为活动,R2为组1的备份 多组使R2的组2为活动,R1为组2的备份

实验过程:第一步:给各个路由器的接口配置ip地址,然后启用eigrp协议,关闭R4、5的ip路由功能R2(config)#router eigrp 1R2(config-router)#no auR2(config-router)#net 12.0.0.2 0.0.0.0R2(config-router)#net 2.2.2.2 0.0.0.0R2(config-router)#net 23.0.0.2 0.0.0.0其它略

第二步:在R1、R3上启用hsrp

以下为组1的配置

R1上的配置:interface FastEthernet0/0ip address 192.168.1.1 255.255.255.0no ip redirectsno ip proxy-arp//以上两步为关闭反向ARP和icmp重定向standby 1 ip 192.168.1.144 //设置虚拟的ip地址standby 1 preempt //开启R1的抢占功能standby 1 priority 105 //设置组1的优先级standby 1 track Serial2/1 //开启外网接口的追踪,后面有一个默认值为10

R3上的配置:interface FastEthernet0/0ip address 192.168.1.3 255.255.255.0standby 1 ip 192.168.1.144standby 1 ip preempt //在这里开启抢占是为了在R1的外网挂了之后,R3去抢占

以下为组2上配置

R3上的配置interface FastEthernet0/0ip address 192.168.1.3 255.255.255.0standby 2 ip 192.168.1.155standby 2 priority 105standby 2 track Serial2/1standby 2 preempt

R1上的配置

interface FastEthernet0/0ip address 192.168.1.1 255.255.255.0standby 2 ip 192.168.1.155standby 2 preempt

第三步:测试pc4在测试过程中关闭f0/0接口PC4#ping 2.2.2.2 repeat 9999999

Type escape sequence to abort.Sending 9999999, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.Success rate is 97 percent (239/245), round-trip min/avg/max = 24/78/144 msPC4#traceroute 2.2.2.2

Type escape sequence to abort.Tracing the route to 2.2.2.2

1 192.168.1.1 120 msec 64 msec2 12.0.0.2 96 msec 120 msecPC4#

1.我们先关闭内网的接口R1(config)#int f0/0R1(config-if)#shApr 17 11:39:03.523: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 1 state Active -> InitApr 17 11:39:03.587: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 192.168.1.3 (FastEthernet0/0) is down: interface downApr 17 11:39:05.519: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively downApr 17 11:39:06.519: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to downR1(config-if)#no shApr 17 11:39:23.959: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 1 state Listen -> Active//当打开f0/0时,实现了无缝切换Apr 17 11:39:24.563: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to upApr 17 11:39:25.399: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 192.168.1.3 (FastEthernet0/0) is up: new adjacencyApr 17 11:39:25.563: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

2.我们再关闭外网的接口R1(config-if)#int s2/1R1(config-if)#sh R1上的情况Apr 17 13:00:56.791: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 12.0.0.2 (Serial2/1) is down: interface downApr 17 13:00:58.735: %LINK-5-CHANGED: Interface Serial2/1, changed state to administratively downApr 17 13:00:59.735: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to downApr 17 13:00:59.739: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 1 state Active -> SpeakR1(config-if)#no shApr 17 13:13:03.967: %LINK-3-UPDOWN: Interface Serial2/1, changed state to upApr 17 13:13:04.971: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to upR1(config-if)#*Apr 17 13:13:06.823: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 1 state Standby -> Active

PC4#ping 2.2.2.2 repeat 9999999

Type escape sequence to abort.Sending 9999999, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!U.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Success rate is 99 percent (424/426), round-trip min/avg/max = 32/88/1060 msPC4#traceroute 2.2.2.2

在关闭R1上的s2/1后的路由情况PC4#traceroute 2.2.2.2

Type escape sequence to abort.Tracing the route to 2.2.2.2

1 192.168.1.3 64 msec 28 msec 16 msec2 23.0.0.2 48 msec * 64 msec

R3上的情况*Apr 17 13:17:59.095: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 1 state Standby -> Active

以下显示的是:在R1的外网出口断掉之后的R3的情况R3#sh standby FastEthernet0/0 - Group 1State is Active29 state changes, last state change 00:01:15Virtual IP address is 192.168.1.144Active virtual MAC address is 0000.0c07.ac01Local virtual MAC address is 0000.0c07.ac01 (default)Hello time 3 sec, hold time 10 secNext hello sent in 2.384 secsPreemption enabledActive router is localStandby router is 192.168.1.1, priority 95 (expires in 7.340 sec)Priority 100 (default 100)IP redundancy name is "hsrp-Fa0/0-1" (default)FastEthernet0/0 - Group 2State is Active2 state changes, last state change 01:59:40Virtual IP address is 192.168.1.155Active virtual MAC address is 0000.0c07.ac02Local virtual MAC address is 0000.0c07.ac02 (default)Hello time 3 sec, hold time 10 secNext hello sent in 0.076 secsPreemption enabledActive router is localStandby router is 192.168.1.1, priority 100 (expires in 9.180 sec)Priority 105 (configured 105)Track interface Serial2/1 state Up decrement 10IP redundancy name is "hsrp-Fa0/0-2" (default)

第四步:pc5上的测试1.测试内网断的之后的情况PC5#ping 2.2.2.2 repeat 9999999

Type escape sequence to abort.Sending 9999999, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Success rate is 99 percent (578/583), round-trip min/avg/max = 4/25/548 ms

//上面的…..表示在R3上的内网断了之后的情况

2.测试外网断的之后的情况PC5#ping 2.2.2.2 repeat 9999999

Type escape sequence to abort.Sending 9999999, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

还有大量的实验内容,敬请期待~~~~


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

上一篇:CCNP(BCMSN)实验:HSRP实验(交换机)
下一篇:浅析Jmeter多用户token使用问题
相关文章

 发表评论

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