Enabling LBDT
Context
To detect loopbacks on an interface, enable LBDT on the interface. To detect loops on the downstream network, enable LBDT on an interface, add the interface to the VLAN where loops need to be detected, and configure LBDT in a specified VLAN to detect loops.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run loopback-detect enable
LBDT is enabled on the interface.
By default, LBDT is disabled on an interface.
- Run the following commands as required.
To use LBDT to detect loopbacks on an interface, skip this step.
To use LBDT to detect loops on the downstream network, perform this step.- Run the following commands as required.
- Add the access interface to the VLAN where loops need to be detected.
Run port link-type access
The interface is configured as the access interface.
Run port default vlan vlan-id
The access interface is added to the VLAN where loops need to be detected.
- Add the hybrid interface to the VLAN where loops need to be detected.
Run port link-type hybrid
The interface is configured as the hybrid interface.
Run port hybrid tagged vlan { { vlan-id1 [ to vlan-id2 ] }&<1-10> | all }
The hybrid interface is added to the VLAN where loops need to be detected.
- Add the trunk interface to the VLAN where loops need to be detected.
Run port link-type trunk
The interface is configured as the trunk interface.
Run port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] }&<1-40> | all }
The trunk interface is added to the VLAN where loops need to be detected.
Run loopback-detect vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>
LBDT is configured to detect loops in the specified VLAN.
By default, LBDT is not configured to detect loops in the specified VLAN.
An interface can send LBDT packets with the specified VLAN tag only when the specified VLAN has been created.
- Run commit
The configuration is committed.