27-6
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 27 Configuring LLDP, LLDP-MED, and Location Service
Configuring LLDP and LLDP-MED, and Location Service
This example shows how to configure a holdtime of 120 seconds, a delay time of 2 seconds and an update
frequency of 30:
Switch# configure terminal
Switch(config)# lldp holdtime 120
Switch(config)# lldp reinit 2
Switch(config)# lldp timer 30
Switch(config)# end
This example shows how to transmit only LLDP packets:
Switch# configure terminal
SWitch(config)# no lldp receive
Switch(config)# end
This example shows how to receive LLDP packets again:
Switch# configure terminal
Switch(config)# lldp receive
Switch(config)# end
For additional LLDP show commands, see the “Monitoring and Maintaining LLDP, LLDP-MED, and
Location Service” section on page 27-13.
Disabling and Enabling LLDP Globally
Note LLDP is disabled by default.
To disable LLDP globally, perform this task:
To enable LLDP once it has been disabled, perform this task:
This example shows how to globally disable LLDP:
Switch# configure terminal
Switch(config)# no lldp run
Switch(config)# end
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch(config)# no lldp run Disables LLDP.
Step 3 Switch(config)# end Returns to privileged EXEC mode.
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch(config)# lldp run Enables LLDP.
Step 3 Switch(config)# end Returns to privileged EXEC mode.