Chapter 32
Configuring LLDP, LLDP-MED, and Location Service
Command
Step 2
Switch(config)# lldp run
Step 3
Switch(config)# end
This example shows how to globally disable LLDP:
Switch# configure terminal
Switch(config)# no lldp run
Switch(config)# end
This example shows how to globally enable LLDP:
Switch# configure terminal
Switch(config)# lldp run
Switch(config)# end
Disabling and Enabling LLDP on an Interface
LLDP is disabled globally on all supported interfaces. You must enable LLDP globally to allow a device
to send LLDP packets. However, no changes are required at the interface level.
You can configure the interface to selectively not to send and receive LLDP packets with the
no lldp transmit and no lldp receive commands.
If the interface is configured as a tunnel port, LLDP is automatically disabled.
Note
To disable LLDP on an interface, perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# interface interface-id
Step 3
Switch(config)# no lldp transmit
Step 4
Switch(config)# no lldp receive
Step 5
Switch(config)# end
Step 6
Switch(config)# copy running-config
startup-config
To enable LLDP on an interface once it has been disabled, perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# interface interface-id
Step 3
Switch(config)# lldp transmit
Step 4
Switch(config)# lldp receive
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Configuring LLDP and LLDP-MED, and Location Service
Purpose
Enables LLDP.
Returns to privileged EXEC mode.
Purpose
Enters global configuration mode.
Specifies the interface on which you are disabling LLDP, and enter
interface configuration mode.
Disallows sending LLDP packets on the interface.
Disallows receiving LLDP packets on the interface.
Returns to privileged EXEC mode.
Saves your entries in the configuration file.
Purpose
Enters global configuration mode.
Specifies the interface on which you are enabling LLDP, and enter
interface configuration mode.
Sends LLDP packets on the interface.
Receives LLDP packets on the interface.
32-7