Configure Basic Functions of Loopback Detection
Configuration Condition
None
Enable Global Loopback Detection Control Switch
The global loopback detection control switch is used to enable the global loopback detection function. The loopback detection configuration of the Ethernet interface takes effect only after the global loopback detection control switch is enabled.
Table 10-2 Enable the Global Loopback Detection Control Switch
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enable the global loopback detection control switch.
|
loopback-detection enable
|
Mandatory.
By default, the global loopback detection control switch is disabled.
|
Enable Loopback Detection Control Switch of Ethernet Interface or Aggregation Group
After the loopback detection function is enabled, the Ethernet interface sends loopback detection packets with an interval to check whether a loop exists in the network.
Table 10-3 Enabling the Loopback Detection Control Switch of the Ethernet interface or Aggregation Group
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enter the L3/L2 Ethernet interface configuration mode.
|
interface interface-name
|
Either
After entering the L2/L3 Ethernet interface configuration mode, the subsequent configuration takes effect only on the current Ethernet interface. After entering the aggregation group configuration mode, the subsequent configuration takes effect only on the aggregation group.
|
Enter the aggregation group configuration mode.
|
interface link-aggregation link-aggregation-id
|
Enable the loopback detection control switch of the Ethernet interface or aggregation group. |
loopback-detection enable |
Mandatory.
By default, the loopback detection control switch of the Ethernet interface or aggregation group is disabled.
|
![note](/storage/images/Document/Maipu/note-icon.jpg)
-
In a loopback detection configuration task, you must enable the global loopback detection control switch before the loopback detection configuration on the Ethernet interface takes effect.