lldp enable receive

Changes the Link Layer Discovery Protocol (LLDP) operating mode of specified ports from receive-and-transmit mode to receive-only mode.
Syntax
lldp enable receive ports { all | [ ethernet unit/slot/port [ to unit/slot/port ] ... ] }
no lldp enable receive ports { all | [ ethernet unit/slot/port [ to unit/slot/port ] ... ] ... ] }
Command Default

When LLDP is enabled on a global basis, each port on the device is capable of transmitting and receiving LLDP packets.

Parameters
ports
Changes the LLDP operating mode to receive-only mode for the specified ports.
all
Changes the LLDP operating mode to receive-only mode for all LLDP-capable ports.
ethernet unit/slot/port
Changes the LLDP operating mode to receive-only mode for a specific Ethernet port.
to unit/slot/port
Changes the LLDP operating mode to receive-only mode for a range of Ethernet ports.
Modes

Global configuration mode

Usage Guidelines

To change the LLDP operating mode to transmit-only mode, disable the receive mode using the no lldp enable transmit command.

Note: LLDP-MED is not enabled when you enable the receive-only operating mode. To enable LLDP-MED, you must configure the port to both receive and transmit LLDP packets.
Note: To change a port's LLDP operating mode from transmit-only to receive-only, first disable the transmit-only mode, and then enable the receive-only mode. If you do not disable transmit-only mode, you will configure the port to both receive and transmit LLDP packets.

You can specify a list of ports, separated by a space, or a range of ports, or you can combine lists and ranges.

The command cannot support LAG virtual interfaces. Attempting to configure them will have no effect.

The no form of the command changes the LLDP operating mode to transmit-only mode if the device is in both transmit and receive mode, and it disables the LLDP receive-only operating mode if receive-only mode was enabled.

Examples

The following example changes the LLDP operating mode of three ports to receive-only mode.

device(config)# lldp enable receive ports ethernet 1/1/1 ethernet 1/1/5 ethernet 1/1/7