1-31
Figure 1-10
Network diagram for monitoring the uplink through VRRP
L3
forwarding
Master
uplink
device
Backup
uplink
device
L2 switch
Master
Backup
Virtual Router
Vlan-int2
192.168.0.101/24
Switch A
Switch B
Heartbeat
MSTP enabled
L2 switch
Trunk
Trunk
Internet
Vlan-int3
1.1.1.1/24
Vlan-int3
1.1.1.2/24
BFD probe packet
Trunk
VRRP packet
User data
Vlan-int2
192.168.0.102/24
Port blocked
Configuration procedure
# Configure Switch A. The IP address of the uplink device is 1.1.1.2/24.
<SwitchA> system-view
[SwitchA] bfd session init-mode active
[SwitchA] bfd echo-source-ip 10.10.10.10
[SwitchA] interface vlan-interface 3
[SwitchA–vlan-interface3] ip address 1.1.1.1 24
[SwitchA–vlan-interface3] bfd min-echo-receive-interval 10
[SwitchA–vlan-interface3] bfd detect-multiplier 3
[SwitchA–vlan-interface3] quit
[SwitchA] track 1 bfd echo interface vlan-interface 3 remote ip 1.1.1.2 local ip 1.1.1.1
[SwitchA] interface vlan-interface 2
[SwitchA–vlan-interface3] ip address 192.168.0.101 24
[SwitchA–vlan-interface2] vrrp vrid 1 virtual-ip 192.168.0.10
[SwitchA–vlan-interface2] vrrp vrid 1 priority 110
[SwitchA–vlan-interface2] vrrp vrid 1 track 1 reduced 20
[SwitchA–vlan-interface2] return
# Configure Switch B.
<SwitchB> system-view
[SwitchB] interface vlan-interface 2
[SwitchB–vlan-interface2] ip address 192.168.0.102 24