159
[RouterA–Gigabitethernet0/1] quit
# Create VRRP group 2, and configure the virtual IP address of the VRRP group 2 as 192.168.0.1.
[RouterA] interface gigabitethernet 0/2
[RouterA–Gigabitethernet0/2] vrrp vrid 2 virtual-ip 192.168.0.1
# Set the priority of Gigabitethernet 0/2 in VRRP group 2 to 200.
[RouterA–Gigabitethernet0/2] vrrp vrid 2 priority 200
# On Gigabitethernet 0/2, configure the interface to be tracked as Gigabitethernet 0/1, and reduce the
priority of Gigabitethernet 0/2 in VRRP group 2 by 150 when the interface state of Gigabitethernet 0/1
becomes Down or Removed.
[RouterA–Gigabitethernet0/2] vrrp vrid 2 track interface gigabitethernet 0/1 reduced 150
[RouterA–Gigabitethernet0/2] quit