H3C Technologies H3C S7500E Series Switches User Manual
Page 193
12-12
2) Configure VRRP on Switch A
[SwitchA] interface vlan-interface 2
# Create VRRP group 1, and configure the virtual IP address 192.168.0.10 for the group. Set the
priority of Switch A in VRRP group 1 to 110.
[SwitchA-Vlan-interface2] vrrp vrid 1 virtual-ip 192.168.0.10
[SwitchA-Vlan-interface2] vrrp vrid 1 priority 110
[SwitchA-Vlan-interface2] return
3) Configure BFD on Switch B.
# Configure the source address of BFD echo packets as 10.10.10.10.
[SwitchB] bfd echo-source-ip 10.10.10.10
4) Create the track entry to be associated with the BFD session on Switch B
# Create track entry 1 to be associated with the BFD session to check whether Switch A is reachable.
[SwitchB] track 1 bfd echo interface vlan-interface 2 remote ip 192.168.0.101 local ip
192.168.0.102
5) Configure VRRP on Switch 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, Switch B
quickly becomes the master.
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] vrrp vrid 1 virtual-ip 192.168.0.10
[SwitchB-Vlan-interface2] vrrp vrid 1 track 1 switchover
[SwitchB-Vlan-interface2] return
6) Verify the configuration
# Display the detailed information of VRRP group 1 on Switch A.
IPv4 Standby Information:
Run Mode : Standard
Run Method : Virtual MAC
Total number of virtual routers : 1
Interface Vlan-interface2
VRID : 1 Adver Timer : 1
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 the detailed information of VRRP group 1 on Switch B.
IPv4 Standby Information:
Run Mode : Standard
Run Method : Virtual MAC
Total number of virtual routers : 1
Interface Vlan-interface2
VRID : 1 Adver Timer : 1