Requirements:
SW4’s e0/0/13 is connected to SW1’s g0/0/19, g0/0/16 is connected to SW2’s g0/0/19, e0/0/13 As the master, e0/0/16 as the slave.
If there is a problem with the e0/0/13 interface of SW4, the traffic can be switched to the e0/0/16 interface. When the failure of the e0/0/13 interface is restored, the traffic will be automatically automatically after 30 seconds Switch back.
vlan10 is control-vlan.
Topology:
Configuration:
For SW4, we configure the smart link function, switch the traffic of the e0/0/13 and e0/0/16 interfaces, and optimize the spanning tree function;
interface e0/0/13
stp disable
interface e0/0/16
stp disable
smart-link group 1 #Enable smart link configuration
restore enable
port e0/0/13 master
port e0/0/16 slave
temr wtr 30
flush send control-vlan 10 #Specify control vlan
smart-link enable
For SW1 and SW2, we also need to close the spanning tree and specify control-vlan
interface g0/0/19
stp disable
smart-link flush receive control-vlan 10
interface eth-trunk 1
smart-link flush receive control-vlan 10
Requirement test:
display smart-link gorup 1
go down manually, sw4 The e0/0/13 port on the upper can be switched normally, and then the e0/0/13 port can be switched back after the e0/0/13 port is up, the delay does not exceed 30s
Knowledge points:
< p>
interface e0/0/13
stp disable
interface e0/0/16
stp disable
smart-link group 1 #Enable smart link configuration
restore enable
port e0/0/13 master
port e0/0/16 slave
temr wtr 30
flush send control-vlan 10 #Specify control vlan
smart-link enable
interface g0/0/19
stp disable
smart-link flush receive control-vlan 10
interface eth-trunk 1
smart-link flush receive control-vlan 10
display smart- link gorup 1