//This command is used to globally enable the loop protection function and
configure the interval.
switch(config)# interface G1
switch(config-G1)# loop-protection
switch(config-G1)# loop-protection transmit
switch(config-G1)#exit
//This command is used to enable the loop protection and loop-protect
transmit for Port G1.
switch(config)# interface G2
switch(config-G2)# loop-protection
Switch(config-G2)# loop-protection transmit
//This command is used to enable the loop protection and loop-protect
transmit for Port G2.
sw2:
switch# configure terminal
switch(config)# loop-protection
switch(config)#loop-protection transmit-time 500
switch(config)# interface G1
switch(config-G1)# loop-protection
switch(config-G1)# loop-protection transmit
switch(config-G1)#exit
switch(config)# interface G2
switch(config-G2)# loop-protection
switch(config-G2)# loop-protection transmit
phenomenon:
pc1
(
192.168.222.107
)
ping pc2
(
192.168.222.94
)
When links except for the link in which the blocked port is located are
manually disconnected, the communication is interrupted in a short period of time
but is restored in 5s.