The loopback-detect packet vlan command configures loopback detection in a specified VLAN.
The undo loopback-detect packet vlan command cancels the configuration.
By default, loopback detection is disabled in a VLAN.
loopback-detect packet vlan { vlan-id1 [ to vlan-id2 ] } &<1-8>
undo loopback-detect packet vlan [ { vlan-id1 [ to vlan-id2 ] } &<1-8> ]
Parameter |
Description |
Value |
---|---|---|
vlan-id1 [ to vlan-id2 ] |
Specifies the VLAN IDs of loopback detection packets.
|
|
Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, MultiGE interface view, 100GE interface view, 25GE interface view, port group view, Eth-Trunk interface view
Usage Scenario
By default, loopback detection is disabled in VLANs. After the loopback-detect packet vlan command is executed on an interface, the interface sends multiple copies of tagged loopback detection packets with the specified VLAN tags.
Prerequisites
The specified VLANs exist and the interface has been added to the VLANs in tagged mode.
Before running this command, check whether loopback detection is enabled. If not, run the loopback-detect enable (interface view) command to enable loopback detection.
Precautions
If you run the loopback-detect packet vlan command multiple times in the same interface view, multiple VLAN IDs are specified.
Each interface can send detection packets with a maximum of eight VLAN IDs.
# Configure loopback detection in VLAN30 on the GE0/0/1 interface.
<HUAWEI> system-view [HUAWEI] vlan 30 [HUAWEI-vlan30] quit [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] port link-type trunk [HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 30 [HUAWEI-GigabitEthernet0/0/1] loopback-detect enable [HUAWEI-GigabitEthernet0/0/1] loopback-detect packet vlan 30