lldp vlan-mode(Interface view)

Function

The lldp vlan-mode enable command enables the VLAN mode on an interface. After LLDP is enabled on an interface, the searches for the LLDP interface according to the VLAN ID of the received LLDP packet. If LLDP is not enabled on the interface, the discards the LLDP packet.

The undo lldp vlan-mode enable command disables the VLAN mode on an interface. After LLDP receives a packet carrying a VLAN ID, the packet is sent to the main interface for learning..

By default, the VLAN mode is disabled on an interface.

Format

lldp vlan-mode enable

undo lldp vlan-mode enable

Parameters

None

Views

Layer 2 100GE interface view, 100GE interface view, Layer 2 10GE interface view, 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, 40GE interface view, Layer 2 50GE interface view, 50GE interface view, FlexE interface view, Layer 2 GE interface view, GE optical interface view, GE interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
lldp write

Usage Guidelines

Usage Scenario

Using the lldp vlan-mode enable command, you can enable the VLAN mode on an interface. After LLDP is enabled on an interface, the searches for the LLDP interface according to the VLAN ID of the received LLDP packet. If LLDP is not enabled on the interface, the discards the LLDP packet.

If the lldp vlan-mode enable command is not run and LLDP receives a packet carrying a VLAN ID, the packet is sent to the main interface for learning.

Prerequisites

Enable LLDP on the interface.

Precautions

For sub-interfaces, only Ethernet and FlexE sub-interfaces support LLDP.

Example

# Enable the LLDP vlanmode function on GigabitEthernet 0/1/1.
<HUAWEI> system-view
[*HUAWEI] interface GigabitEthernet 0/1/1
[*HUAWEI-GigabitEthernet0/1/1] lldp vlan-mode enable
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >