The loop-detect eth-loop priority command configures the blocking priority of a pseudo wire (PW) for MAC flapping-based loop detection.
The undo loop-detect eth-loop priority command restores the default setting.
By default, the blocking priority of a PW for MAC flapping-based loop detection has no default value.
Parameter | Description | Value |
---|---|---|
priority priority |
Specifies the blocking priority of a PW. |
The value is an integer ranging from 1 to 4. If a loop occurs, the device blocks an interface with a low blocking priority value. If the value is 4 on an interface or a PW, the interface or PW is never blocked, and the MAC flapping-based loop detection is invalid. |
Usage Scenario
After MAC flapping-based loop detection is configured on devices of a virtual private LAN service (VPLS) network, if a device detects a loop, the device blocks a PW based on its blocking priority. To configure the blocking priority of an interface or a PW, run the loop-detect eth-loop priority command.
Precautions
By default, a PW for MAC flapping-based loop detection has no default value, so no PW is blocked. To allow a PW to be blocked, configure the blocking priority of a PW for MAC flapping-based loop detection.
If a loop occurs and the AC-side interfaces or PWs have the same blocking priority, the AC-side interfaces or PWs are all blocked. If MAC flapping-based loop detection is configured for a VSI using the loop-detect eth-loop loop-times loop-times detect-cycle detect-cycle-time cycles cycles command with detect-cycle-time and cycles specified and a blocking priority is configured on an interface bound to the VSI using the loop-detect eth-loop priority priority command, the detection cycle is as follows:<HUAWEI> system-view [~HUAWEI] mpls lsr-id 1.1.1.1 [*HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi vsi1 [*HUAWEI-vsi-vsi1] pwsignal ldp [*HUAWEI-vsi-vsi1-ldp] vsi-id 1 [*HUAWEI-vsi-vsi1-ldp] peer 1.1.1.1 [*HUAWEI-vsi-vsi1-ldp] peer 1.1.1.1 pw pw1 [*HUAWEI-vsi-vsi1-ldp-pw-pw1] loop-detect eth-loop priority 1