HSRP experiment

First, prepare the environment

1. Software: GNS3

2. Route: c7200

Second, the experimental operation

Experimental requirements:

1, understand the workings of the HSRP.

2, grasp the HSRP configuration.

3, to understand the role of HSRP preemption and tracking.

Lab topology:

experiment procedure:

 

1, according to the topology, the router R1, R2, R3 configure IP addresses for the interfaces.

R1

R2

R3

R4

 

2, is enabled in R1, R2, R3 in EIGRP protocol number area 33, such that each router on the network can be full.

3, the R4 (PC1) analog PC function, the following commands:

PC1(config)#no ip routing

PC1(config)#interface fastEthernet 0/0

PC1(config-if)#ip address 192.168.1.100 255.255.255.0

PC1(config-if)#no shutdown

PC1(config)#ip default-gateway 192.168.1.1

 

Question 1: After you configure the ping 192.168.1.2 and 192.168.1.3 can pass in the PC? Whether ping 2.2.2.2 can pass?

A: ping 192.168.1.2 and 192.168.1.3 are able to pass. ping 2.2.2.2 can not pass.

4, arranged HSRP protocol on R1 and R3, effectively ensure redundancy gateway.

Reference command is as follows:

R1(config-if)#int f0/1

R1(config-if)#standby 33 ip 192.168.1.1   33 为 HSRP 组

R3(config-if)#int f0/0

R3(config-if)#standby 33 ip 192.168.1.1   33 为 HSRP 组

 

问题 2:配置后稍等,在 R1 和 R3 中查看 HSRP 组信息,哪个为活动,哪个为备份?

参考命令:

R1#show standby

R1

R3

答:在 R1 和 R3 中查看 HSRP 组信息,R1为活动,R3为备份。

问题 3:在 PC1 中 ping 2.2.2.2  能否 ping 通?

答:在 PC1 中 ping 2.2.2.2  能 ping 通。

问题 4:在 PC1 中用 traceroute 2.2.2.2 跟踪路径,数据经过哪个路由器到达 R2 的?

答:数据经过R1路由器到达 R2 的。

问题 5:关闭 R1 的 f0/1 接口,此时在 PC1 中 ping 2.2.2.2,能否 ping 通?

答:在 PC1 中 ping 2.2.2.2,能ping 通。

问题 6:再启动 R1 的 f1/0 接口,过段时间,查看 HSRP 组信息,哪个活动,哪个备份?

答:R3为活动,R1为备份。

5、 修改 R1 的 HSRP 组默认优先级,并修改工作模式为抢占模式。

参考命令如下:

R1(config-if)#int f0/1

R1(config-if)#standby 33 priority 150  

R1(config-if)#standby 33 preempt   

 

问题 7:过段时间,查看 HSRP 组信息,哪个活动,哪个备份?

R1

R3

答:R1为活动,R3为备份。

6、 HSRP   除了能够对下行链路实施冗余,同时还可以对上行链路进行监测,动态的变更Active 角色,确保网络万无一失。配置动态端口跟踪,实现对上行链路的检测。

参考命令如下:

R1(config)#int f0/1

R1(config-if)#standby 33 track f0/0 80  

R3(config)#int f0/0

R3(config-if)#standby 33 preempt   

 

问题 8:关闭 R1 的 f0/0 口查看 R1 和 R3 的 HSRP 组信息,哪个为活动,哪个为备份?

R1

R3

答:R3为活动,R1为备份。

问题 9:重新开启 R1 的 f0/0 口查看 R1 和 R2 的 HSRP 组信息,哪个为活动,哪个为备份?

R1

R3

 答:R1为活动,R3为备份。

 

Guess you like

Origin www.cnblogs.com/qftm/p/10983538.html