The lldp admin-status command configures the Link Layer Discovery Protocol (LLDP) working mode for an interface, or enables LLDP and configures an LLDP working mode for an LLDP-disabled interface.
The undo lldp admin-status command restores the default LLDP working mode for an interface.
By default, the LLDP working mode of an interface is TX/RX, meaning that the main interface both sends and receives LLDP packets.LLDP is not enabled on the sub-interface, the sub-interface neither receives nor sends LLDP packets.
Parameter | Description | Value |
---|---|---|
tx |
Indicates the LLDP TX mode, meaning that an interface only sends LLDP packets. |
- |
rx |
Indicates the LLDP RX mode, meaning that an interface only receives LLDP packets. |
- |
txrx |
Indicates the LLDP TX/RX mode, meaning that an interface both sends and receives LLDP packets. |
- |
Layer 2 100GE interface view, 100ge sub-interface view, 100GE interface view, Layer 2 10GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE-L2 view, 25GE sub-interface view, 25GE interface view, 400GE-L2 view, 400GE sub-interface view, 400GE interface view, Layer 2 40GE interface view, 40GE sub-interface view, 40GE interface view, Layer 2 50GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, FlexE-100G interface view, FlexE-400G interface view, FlexE-50G interface view, FlexE-50|100G interface view, FlexE interface view, Layer 2 GE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, VE sub-interface view
Usage Scenario
After LLDP is enabled globally, perform either of the following operations:
Prerequisites
LLDP has been enabled globally using the lldp enable command in the system view.
For sub-interfaces, run the lldp enable command in the sub-interface view to enable LLDP.<HUAWEI> system-view [~HUAWEI] lldp enable [*HUAWEI] interface GigabitEthernet 0/1/8 [*HUAWEI-GigabitEthernet0/1/8] lldp admin-status tx
[~HUAWEI] lldp enable [HUAWEI] interface GigabitEthernet 0/1/8.1 [*HUAWEI-GigabitEthernet0/1/8.1] lldp enable [*HUAWEI-GigabitEthernet0/1/8.1] lldp admin-status tx