Configure LLDP Tx-TLVs

About this task

Use this procedure to configure optional management Link Layer Discovery Protocol (LLDP) TLVs for transmission.

LLDP TLVs for transmission are enabled by default.

Procedure

  1. Enter GigabitEthernet Interface Configuration mode:

    enable

    configure terminal

    interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]}

    Note

    Note

    If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

  2. To disable LLDP TLVs for transmission, enter:
    no lldp tx-tlv {local-mgmt-addr | port-desc | sys-cap | sys-desc |sys-name}
  3. To restore LLDP TLVs to their default value, enter:
    default lldp tx-tlv {local-mgmt-addr | port-desc | sys-cap | sys-desc |sys-name}
  4. Verify the configuration:
    show lldp tx-tlv port {slot/port[/sub-port][-slot/port[/sub-port]][,...]}

Example

Disable the port description LLDP transmission TLV:

Switch:1>enable
Switch:1#config
Configuring from terminal or network [terminal]? t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#interface gigabitethernet 1/2
Switch:1(config-if)#no lldp tx-tlv port-desc
Switch:1(config-if)#show lldp tx-tlv port 1/2
=======================================================
                     LLDP port tlvs
=======================================================
-------------------------------------------------------
Port       PortDesc   SysName   SysDesc   SysCap
-------------------------------------------------------
1/2        disabled    enabled   enabled   enabled

Restore port description LLDP transmission TLV to the default value:

Switch:1>enable
Switch:1#config
Configuring from terminal or network [terminal]? t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#interface gigabitethernet 1/2
Switch:1(config-if)#default lldp tx-tlv port-desc
Switch:1(config-if)#show lldp tx-tlv port 1/2
=======================================================
                     LLDP port tlvs
=======================================================
-------------------------------------------------------
Port       PortDesc   SysName   SysDesc   SysCap    LocalMgmtAddr
-------------------------------------------------------
1/2        enabled    enabled   enabled   enabled   enabled

Variable Definitions

The following table defines parameters for the lldp tx-tlv command.

Variable

Value

local-mgmt-addr

Specifies the local management address TLV.

The default is enabled.

port-desc

Specifies the port description transmission TLV.

The default is enabled.

sys-cap

Specifies the system capabilities transmission TLV.

The default is enabled.

sys-desc

Specifies the system description transmission TLV.

The default is enabled.

sys-name

Specifies the system name transmission TLV.

The default is enabled.