203
Figure 55
Network diagram for monitoring the master on the backup
Internet
Virtual router
Virtual IP address:
192.168.0.10
Vlan-int2
192.168.0.101/24
Vlan-int2
192.168.0.102/24
Switch A
Master
Switch B
Backup
L2 switch
VRRP packets
BFD probe packets
Configuration procedure
1.
Create VLANs, and assign ports to the VLANs, and configure the IP address of each VLAN
interface as shown in
. The configuration steps are omitted.
2.
Configure VRRP on Switch A
<SwitchA> system-view
[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> system-view
[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.