VRRP and HSRP
From Tech-Wiki
Configuring VRRP
Router A Configuration
RA(config)# track 1 interface Serial 0/1 line-protocol RA(config-track)# exit RA(config)# interface Ethernet 1/0/0 RA(config-if)# ip address 10.1.0.1 255.0.0.0 RA(config-if)# vrrp 1 priority 120 RA(config-if)# vrrp 1 authentication cisco RA(config-if)# vrrp 1 timers advertise 3 RA(config-if)# vrrp 1 timers learn RA(config-if)# vrrp 1 ip 10.1.0.10 RA(config-if)# vrrp 1 track 1 decrement 15 RA(config-if)# no shutdown
Router B Configuration
RB(config)# track 1 interface Serial 0/1 line-protocol RB(config-track)# exit RB(config)# interface Ethernet 1/0/0 RB(config-if)# ip address 10.1.0.2 255.0.0.0 RB(config-if)# vrrp 1 priority 120 RB(config-if)# vrrp 1 authentication cisco RB(config-if)# vrrp 1 timers advertise 3 RB(config-if)# vrrp 1 timers learn RB(config-if)# vrrp 1 ip 10.1.0.10 RB(config-if)# vrrp 1 track 1 decrement 15 RB(config-if)# no shutdown
Configuring HSRP
Router A Configuration
R1(config)# interface ethernet1/0/1 R1(config-if)# no switchport R1(config-if)# ip address 10.0.0.1 255.255.255.0 R1(config-if)# standby 1 ip 10.0.0.3 R1(config-if)# standby 1 priority 110 R1(config-if)# standby 1 preempt R1(config-if)# standby 1 authentication cisco R1(config-if)# standby 1 track Serial0 R1(config-if)# end
Router B Configuration
R2(config)# interface ethernet1/0/1 R2(config-if)# no switchport R2(config-if)# ip address 10.0.0.2 255.255.255.0 R2(config-if)# standby 1 ip 10.0.0.3 R2(config-if)# standby 1 preempt R2(config-if)# standby 1 authentication cisco R1(config-if)# standby 1 track Serial0 R2(config-if)# end