HSRPThe hot backup router protocol is designed to support the failure of IP traffic transfer under certain circumstances, which will not cause confusion and allow the host to use a single router, and maintain the connectivity between routers even if the first hop router fails to be used. Next let's take a look at the configuration of the next instance.
Hot Backup HSRP detailed network topology configuration
Detailed configuration process of hot backup HSRP
R1 Configuration
- R1 (config) # int f0/0
- R1 (config-if) # ip add 192.168.1.1 255.255.255.0
- R1 (config-if) # no shu
- R1 (config-if) # int f1/0
- R1 (config-if) # ip add 192.168.2.1 255.255.255.0
- R1 (config-if) # no shu
- R1 (config) # router rip
- R1 (config-router) # network 192.168.1.0
- R1 (config-router) # network 192.168.2.0
- R1 (config) # int f0/0
- R1 (config-if) # standby 47 ip 192.168.1.254 the backup group is 47 and the virtual IP address is 1.254.
- R1 (config-if) # standby 47 priority 180 priority is 180
- R1 (config-if) # standby 47 preemtp configuration Preemption
- R1 (config-if) # standby 47 track f1/0 100 port tracking, priority reduced by 100
R2 Configuration
- R2 (config) # int f0/0r2 (config-if) # ip add 192.168.1.2 255.255.255.0
- R2 (config-if) # no shu
- R2 (config-if) # int f1/0
- R2 (config-if) # ip add 192.168.3.1 255.255.255.0
- R2 (config-if) # no shu
- R2 (config) # router rip
- R2 (config-router) # network 192.168.1.0
- R2 (config-router) # network 192.168.3.0
- R2 (config) # int f0/0
- R2 (config-if) # standby 47 ip address 192.168.1.254 the backup group is 47 and the virtual IP address is 1.254.
- R2 (config-if) # standby 47 priority 150 priority is 150
R3 Configuration
- R3 (config) # int f0/0
- R3 (config-if) # ip add 192.168.2.2 255.255.255.0
- R3 (config-if) # no shu
- R3 (config-if) # int f1/0
- R3 (config-if) # ip add 192.168.3.2 255.255.255.0
- R3 (config-if) # no shu
- R3 (config-if) # int f2/0
- R3 (config-if) # ip add 192.168.4.1 255.255.255.0
- R3 (config-if) # no shu
- R3 (config) # router rip
- R3 (config-router) # network 192.168.2.0
- R3 (config-router) # network 192.168.3.0
- R3 (config-router) # network 192.168.4.0
- VPCS1: ip 192.168.1.3 192.168.1.254 24 VPCS1IP: 1.3 Gateway: 1.254
- VPCS2: ip 192.168.4.2 192.168.4.1 24 VPCS2IP: 4.2 Gateway: 4.1
Then you can test it.
The introduction of the HSRP protocol does not know whether you have understood the above experiment. I hope you will learn more.