1-5
<SwitchC> system-view
# Configure a static route to Switch A.
[SwitchC] ip route-static 192.168.1.1 24 10.1.1.3
Configuration Example for Auto Detect Implementation in VLAN Interface Backup
Network requirements
z As shown in Figure 1-2, make sure the routes between Switch A, Switch B, and Switch C, and
between Switch A, Switch D, and Switch C are reachable.
z Create detected group 10 on Switch A to detect the connectivity between Switch B and Switch C.
z Configure VLAN-interface 1 to be the active interface, which is enabled when the detected group
10 is reachable.
z Configure VLAN-interface 2 to be the standby interface, which is enabled when the detected group
10 is unreachable.
Figure 1-2 Network diagram for VLAN interface backup
Vlan-int1
20.1.1.4/24
Vlan-int2
10.1.1.4/24
Vlan-int2
192.168.2.1/24
Vlan-int1
192.168.1.1/24
Switch B
Switch D
Switch C
Vlan-int2
10.1.1.3/24
Vlan-int1
20.1.1.3/24
Vlan-int1
192.168.1.2/24
Switch A
Vlan-int2
192.168.2.2/24
Configuration procedure
Configure the IP addresses of all the interfaces as shown in Figure 1-2. The configuration procedure is
omitted.
# Enter system view.
<SwitchA> system-view
# Create auto detected group 10.
[SwitchA] detect-group 10
# Add the IP address of 10.1.1.4 to detected group 10 to detect the reachability of the IP address, with
the IP address of 192.168.1.2 as the next hop, and the detecting number set to 1.
[SwitchA-detect-group-10] detect-list 1 ip address 10.1.1.4 nexthop 192.168.1.2
[SwitchA-detect-group-10] quit
# Specify to enable VLAN-interface 2 when the result of detected group 10 is unreachable.
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] standby detect-group 10