failure, device R2 takes its place to function as the gateway (which is just the virtual device
address 192.168.201.1). Especially, when the WAN interface GigabitEthernet 2/1 of device
R1 is unavailable, device R1 will decrease its priority in the VRRP backup group so that
device R2 has the chance to become active and functions as the virtual gateway
(192.168.201.1). If the WAN interface GigabitEthernet 2/1 of device R1 resumes normal,
device R1 restores its priority in the VRRP backup group, becomes active and functions as
the virtual gateway once again. The configurations for devices R1 and R2 are described as
follows.
Configurations on device R1:
!
!
hostname "R1"
!
!
interface FastEthernet 0/0
no switchport
ip address 192.168.201.217 255.255.255.0
vrrp 1 priority 120
vrrp 1 timers advertise 3
vrrp 1 ip 192.168.201.1
vrrp 1 track GigabitEthernet 2/1 30
!
interface GigabitEthernet 2/1
no switchport
ip address 202.101.90.63 255.255.255.0
!
router ospf
network 202.101.90.0 0.0.0.255 area 10
network 192.168.201.0 0.0.0.255 area 10
!
!
end
Configurations on device R2:
!
!
hostname "R2"
!
interface FastEthernet 0/0
no switchport
ip address 192.168.201.213 255.255.255.0
vrrp 1 ip 192.168.201.1
vrrp 1 timers advertise 3
!
interface GigabitEthernet 1/1
no switchport
ip address 60.154.101.3 255.255.255.0
!
router ospf