- Index
- Preface
- Overview
- Using the Command-Line Interface
- Assigning the Switch IP Address and Default Gateway
- Configuring Cisco IOS CNS Agents
- Clustering Switches
- Administering the Switch
- Configuring SDM Templates
- Configuring Switch-Based Authentication
- Configuring IEEE 802.1x Port-Based Authentication
- Configuring Interface Characteristics
- Configuring Smartports Macros
- Configuring VLANs
- Configuring VTP
- Configuring Voice VLAN
- Configuring STP
- Configuring MSTP
- Configuring Optional Spanning-Tree Features
- Configuring IGMP Snooping and MVR
- Configuring Port-Based Traffic Control
- Configuring CDP
- Configuring LLDP
- Configuring UDLD
- Configuring SPAN
- Configuring RMON
- Configuring System Message Logging
- Configuring SNMP
- Configuring QoS
- Configuring EtherChannels
- Troubleshooting
- Supported MIBs
- Working with the Cisco IOS File System, Configuration Files, and Software Images
- Recommendations for Upgrading a Catalyst 2950 Switch to a Catalyst 2960 Switch
- Unsupported Commands in Cisco IOS Release 12.2(37)EY
Configuring LLDP
This chapter describes how to configure the Link Layer Discovery Protocol (LLDP) on the Catalyst 2960 switch.
Note
For complete syntax and usage information for the commands used in this chapter, see the command reference for this release and the "System Management Commands" section in the Cisco IOS Configuration Fundamentals Command Reference, Release 12.2.
This chapter consists of these sections:
•
Monitoring and Maintaining LLDP
Understanding LLDP
The Cisco Discovery Protocol (CDP) is a device discovery protocol that runs over Layer 2 (the data link layer) on all Cisco-manufactured devices (routers, bridges, access servers, and switches). CDP allows network management applications to automatically discover and learn about other Cisco devices connected to the network.
To support non-Cisco devices and to allow for interoperability between other devices, the switch supports the IEEE 802.1AB Link Layer Discovery Protocol (LLDP). LLDP is a neighbor discovery protocol that is used for network devices to advertise information about themselves to other devices on the network. This protocol runs over the data-link layer, which allows two systems running different network layer protocols to learn about each other.
LLDP supports a set of attributes that it uses to discover neighbor devices. These attributes contain type, length, and value descriptions and are referred to as TLVs. LLDP supported devices can use TLVs to receive and send information to their neighbors. Details such as configuration information, device capabilities, and device identity can be advertised using this protocol.
The switch supports these basic management TLVs. These are mandatory LLDP TLVs.
•
Port description TLV
•
System name TLV
•
System description
•
System capabilities TLV
•
Management address TLV
•
Port VLAN ID TLV ((IEEE 802.1 organizationally specific TLVs)
•
MAC/PHY configuration/status TLV(IEEE 802.3 organizationally specific TLVs)
Note
A switch stack appears as a single switch in the network. Therefore, LLDP discovers the switch stack, not the individual stack members.
Configuring LLDP
This section contains this configuration information:
•
Configuring LLDP Characteristics
•
Disabling and Enabling LLDP Globally
•
Disabling and Enabling LLDP on an Interface
•
Monitoring and Maintaining LLDP
Default LLDP Configuration
Table 21-1 shows the default LLDP configuration. To change the default settings, use the LLDP global configuration and LLDP interface configuration commands.
Configuring LLDP Characteristics
You can configure the frequency of LLDP updates, the amount of time to hold the information before discarding it, and the initialization delay time. You can also select the LLDP TLVs to be sent and received.
Beginning in privileged EXEC mode, follow these steps to configure these characteristics:
Note
Steps 2 through 5 are all optional and can be performed in any order.
Use the no form of each of the LLDP commands to return to the default setting.
This example shows how to configure LLDP characteristics.
Switch# configure terminal
Switch(config)# lldp holdtime 120
Switch(config)# lldp reinit 2
Switch(config)# lldp timer 30
Switch(config)# end
For additional LLDP show commands, see the "Monitoring and Maintaining LLDP" section.
Disabling and Enabling LLDP Globally
LLDP is enabled by default.
Beginning in privileged EXEC mode, follow these steps to disable LLDP:
|
|
|
|
|---|---|---|
Step 1 |
configure terminal |
Enter global configuration mode. |
Step 2 |
no lldp run |
Disable LLDP. |
Step 3 |
end |
Return to privileged EXEC mode. |
Beginning in privileged EXEC mode, follow these steps to enable LLDP when it has been disabled:
|
|
|
|
|---|---|---|
Step 1 |
configure terminal |
Enter global configuration mode. |
Step 2 |
lldp run |
Enable LLDP. |
Step 3 |
end |
Return to privileged EXEC mode. |
This example shows how to disable LLDP.
Switch# configure terminal
Switch(config)# no lldp run
Switch(config)# end
This example shows how to enable LLDP.
Switch# configure terminal
Switch(config)# lldp run
Switch(config)# end
Disabling and Enabling LLDP on an Interface
LLDP is enabled by default on all supported interfaces to send and to receive LLDP information.
Note
If the interface is configured as a tunnel port, LLDP is automatically disabled.
Beginning in privileged EXEC mode, follow these steps to disable LLDP on an interface.
Beginning in privileged EXEC mode, follow these steps to enable LLDP on an interface when it has been disabled:
This example shows how to enable LLDP on an interface.
Switch# configure terminal
Switch(config)# interface GigabitEthernet0/1
Switch(config-if)# lldp transmit
Switch(config-if)# lldp receive
Switch(config-if)# end
Monitoring and Maintaining LLDP
To monitor and maintain LLDP on your device, perform one or more of these tasks, beginning in privileged EXEC mode.
Feedback