本实验目的及要求

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

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

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

以下为组1的配置

R1上的配置: interface FastEthernet0/0 ip address 192.168.1.1 255.255.255.0 no ip redirects no 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/0 ip address 192.168.1.3 255.255.255.0 standby 1 ip 192.168.1.144 standby 1 ip preempt //在这里开启抢占是为了在R1的外网挂了之后,R3去抢占

以下为组2上配置

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

R1上的配置

interface FastEthernet0/0 ip address 192.168.1.1 255.255.255.0 standby 2 ip 192.168.1.155 standby 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 ms PC4#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 msec 2 12.0.0.2 96 msec * 120 msec PC4#

1.我们先关闭内网的接口 R1(config)#int f0/0 R1(config-if)#sh *Apr 17 11:39:03.523: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 1 state Active -> Init *Apr 17 11:39:03.587: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 192.168.1.3 (FastEthernet0/0) is down: interface down *Apr 17 11:39:05.519: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down *Apr 17 11:39:06.519: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down R1(config-if)#no sh *Apr 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 up *Apr 17 11:39:25.399: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 192.168.1.3 (FastEthernet0/0) is up: new adjacency *Apr 17 11:39:25.563: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

2.我们再关闭外网的接口 R1(config-if)#int s2/1 R1(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 down *Apr 17 13:00:58.735: %LINK-5-CHANGED: Interface Serial2/1, changed state to administratively down *Apr 17 13:00:59.735: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to down *Apr 17 13:00:59.739: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 1 state Active -> Speak R1(config-if)#no sh *Apr 17 13:13:03.967: %LINK-3-UPDOWN: Interface Serial2/1, changed state to up *Apr 17 13:13:04.971: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to up R1(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 ms PC4#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 msec 2 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 1 State is Active 29 state changes, last state change 00:01:15 Virtual IP address is 192.168.1.144 Active virtual MAC address is 0000.0c07.ac01 Local virtual MAC address is 0000.0c07.ac01 (default) Hello time 3 sec, hold time 10 sec Next hello sent in 2.384 secs Preemption enabled Active router is local Standby 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 2 State is Active 2 state changes, last state change 01:59:40 Virtual IP address is 192.168.1.155 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (default) Hello time 3 sec, hold time 10 sec Next hello sent in 0.076 secs Preemption enabled Active router is local Standby router is 192.168.1.1, priority 100 (expires in 9.180 sec) Priority 105 (configured 105) Track interface Serial2/1 state Up decrement 10 IP 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: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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