67
# Create VRRP group 1, and configure the virtual IP address 192.168.0.10 for the group. Set the
priority of Router A in VRRP group 1 to 110.
[RouterA-GigabitEthernet1/0] vrrp vrid 1 virtual-ip 192.168.0.10
[RouterA-GigabitEthernet1/0] vrrp vrid 1 priority 110
[RouterA-GigabitEthernet1/0] return
2. Configure BFD on Router B:
# Configure the source address of BFD echo packets as 10.10.10.10.
<RouterB> system-view
[RouterB] bfd echo-source-ip 10.10.10.10
3. Create a track entry to be associated with the BFD session on Router B:
# Create track entry 1 to be associated with the BFD session to check whether Router A is
reachable.
[RouterB] track 1 bfd echo interface gigabitethernet 1/0 remote ip 192.168.0.101 local
ip 192.168.0.102
4. Configure VRRP on Router B:
# Create VRRP group 1, and configure the virtual IP address 192.168.0.10 for the group. VRRP
group 1 monitors the status of track entry 1. When the status of the track entry becomes Negative,
Router B becomes the master quickly.
[RouterB] interface gigabitethernet 1/0
[RouterB-GigabitEthernet1/0] vrrp vrid 1 virtual-ip 192.168.0.10
[RouterB-GigabitEthernet1/0] vrrp vrid 1 track 1 switchover
[RouterB-GigabitEthernet1/0] return
Verifying the configuration
# Display detailed information about VRRP group 1 on Router A.
<RouterA> display vrrp verbose
IPv4 Virtual Router Information:
Running Mode : Standard
Total number of virtual routers : 1
Interface GigabitEthernet1/0
VRID : 1 Adver Timer : 100
Admin Status : Up State : Master
Config Pri : 110 Running Pri : 110
Preempt Mode : Yes Delay Time : 0
Auth Type : None
Virtual IP : 192.168.0.10
Virtual MAC : 0000-5e00-0101
Master IP : 192.168.0.101
# Display detailed information about VRRP group 1 on Router B.
<RouterB> display vrrp verbose
IPv4 Virtual Router Information:
Running Mode : Standard
Total number of virtual routers : 1
Interface GigabitEthernet1/0
VRID : 1 Adver Timer : 100
Admin Status : Up State : Backup
Config Pri : 100 Running Pri : 100