185
Figure 46 Network diagram
Configuration procedure
1. Create VLANs and assign ports to them. Configure the IP address of each VLAN interface as
shown in Figure 46. (Detai
ls not shown.)
2. Configure Switch A:
# Configure the source address of BFD echo packets as 10.10.10.10.
<SwitchA> system-view
[SwitchA] bfd echo-source-ip 10.10.10.10
# Create track entry 1 for the BFD session to verify the reachability of the uplink device
(1.1.1.2 ).
[SwitchA] track 1 bfd echo interface vlan-interface 3 remote ip 1.1.1.2 local ip
1.1.1.1
# Create VRRP group 1, and configure the virtual IP address of the group as 192.168.0.10.
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] vrrp vrid 1 virtual-ip 192.168.0.10
# Set the priority of Switch A to 110 in VRRP group 1.
[SwitchA-Vlan-interface2] vrrp vrid 1 priority 110
# Associate VRRP group 1 with track entry 1 and decrease the router priority by 20 when the
state of track entry 1 changes to negative.
[SwitchA-Vlan-interface2] vrrp vrid 1 track 1 priority reduced 20
[SwitchA-Vlan-interface2] return
3. On Switch B, create VRRP group 1, and configure the virtual IP address of the group as
192.168.0.10.
<SwitchB> system-view
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] vrrp vrid 1 virtual-ip 192.168.0.10
Internet
Master
uplink device
Backup
uplink device
Uplink
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
Vlan-int3
1.1.1.1/24
Vlan-int3
1.1.1.2/24
L2 switch
Uplink
VRRP packets
BFD probe packets