Configure LLDP Status on Ports

About this task

Use this procedure to configure LLDP and configure the status to transmit and receive on a port, or ports, on your switch.

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 configure LLDP and configure the status for transmit and receive on a port or ports, enter:

    lldp port {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]} status <txAndRx>

  3. To configure LLDP to the default setting for a port or ports, enter:

    default lldp port {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]} status <txAndRx>

Example

Configure LLDP on your switch and set the status for transmit and receive on a port:

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#interface GigabitEthernet 1/4
Switch:1(config-if)#lldp status txAndRx
Restore LLDP port status to the default value. The default status is disabled.
Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#interface GigabitEthernet 1/4
Switch:1(config-if)#default lldp status
Disable LLDP on your switch:
Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#interface GigabitEthernet 1/4
Switch:1(config-if)#no lldp status

Variable Definitions

The following table defines parameters for the lldp port command.

Variable

Value

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

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

status <txAndRx>

Configures the LLDP Data Unit (LLDP PDU) transmit and receive status on the port(s).

  • default—restores LLDP port parameters to default values

  • txAndrx—enables LLDP PDU transmit and receive