mac

Commands for Port Loopback Detection Function
116
<no-loopback > the detection interval if no loopback is found, ranging
from 1 to 30, in seconds.
Default: The default value is 5s with loopbacks existing and 3s otherwise.
Command Mode: Global Mode.
Usage Guide: When there is no loopback detection, the detection interval can be
relatively shorter, for too short a time would be a disaster for the whole network if there is
any loopback. So, a relatively longer interval is recommended when loopbacks exist.
Example: Set the loopback diction interval as 35, 15.
Switch(config)#loopback-detection interval-time 35 15
5.5 loopback-detection specified-vlan
Command: loopback-detection specified-vlan <vlan-list>
no loopback-detection specified-vlan [<vlan-list>]
Function: Enable the function of loopback detection on the port and specify the VLAN to
be checked; the no operation of this command will disable the function of detecting
loopbacks through this port or the specified VLAN.
Parameters: <vlan-list> the list of VLANs allowed passing through the port. Given the
situation of a trunk port, the specified VLANs can be checked. So this command is used
to set the vlan list to be checked.
Default: Disable the function of detecting the loopbacks through the port.
Command Mode: Port Mode.
Usage Guide: If a port can be a TRUNK port of multiple Vlans, the detection of
loopbacks can be implemented on the basis of port+Vlan, which means the objects of
the detection can be the specified Vlans on a port. If the port is an ACCESS port, only
one Vlan on the port is allowed to be checked despite the fact that multiple Vlans can be
configured. This function is not supported under Port-channel.
Example: Enable the function of loopback detection under port 1/2 mode.
Switch(config)#interface ethernet 1/2
Switch(Config-If-Ethernet1/2)#switchport mode trunk
Switch(Config-If-Ethernet1/2)#switchport trunk allowed vlan all
Switch(Config-If-Ethernet1/2)#loopback-detection specified-vlan 1;3;5-20
Switch(Config-If-Ethernet1/2)#no loopback-detection specified-vlan 1;3;5-20