This section describes the command you use to configure Link Layer Discovery Protocol (LLDP), which is defined in the IEEE 802.1AB specification. LLDP allows stations on an 802 LAN to advertise major capabilities and physical descriptions. The advertisements allow a network management system (NMS) to access and display this information.
lldp transmit
Use this command to enable the LLDP advertise capability on an interface or a range of interfaces.
Default: disabled
Format: lldp transmit
Mode: Interface Config
no lldp transmit
Use this command to return the local data transmission capability to the default.
Format: no lldp transmit
Mode: Interface Config
lldp receive
Use this command to enable the LLDP receive capability on an interface or a range of interfaces.
Default: disabled
Format: lldp receive
Mode: Interface Config
no lldp receive
Use this command to return the reception of LLDPDUs to the default value.
Format: no lldp receive
Mode: Interface Config
lldp timers
Use this command to set the timing parameters for local data transmission on ports enabled for LLDP. The interval-seconds determines the number of seconds to wait between transmitting local data LLDPDUs. The range is 1-32768 seconds. The hold-value is the multiplier on the transmit interval that sets the TTL in local data LLDPDUs. The multiplier range is 2-10. The reinit-seconds is the delay before re-initialization, and the range is 1-0 seconds.
Use this command to return any or all timing parameters for local data transmission on ports enabled for LLDP to the default values.
Format: no lldp timers [interval] [hold] [reinit]
Mode: Global Config
lldp transmit-tlv
Use this command to specify which optional type length values (TLVs) in the 802.1AB basic management set are transmitted in the LLDPDUs from an interface or range of interfaces. Use sys-name to transmit the system name TLV. To configure the system name, see "snmp-server" on page 137. Use sys-desc to transmit the system description TLV. Use sys-cap to transmit the system capabilities TLV. Use port-desc to transmit the port description TLV. To configure the port description, see See "description" on page 274.
Use this command to remove an optional TLV from the LLDPDUs. Use the command without parameters to remove all optional TLVs from the LLDPDU.
Format: no lldp transmit-tlv [sys-desc] [sys-name] [sys-cap] [port-desc]
Mode: Interface Config
lldp transmit-mgmt
Use this command to include transmission of the local system management address information in the LLDPDUs. This command ca be used to configure a single interface or a range of interfaces.
Format: lldp transmit-mgmt
Mode: Interface Config
no lldp transmit-mgmt
Use this command to include transmission of the local system management address information in the LLDPDUs. Use this command to cancel inclusion of the management information in LLDPDUs.
Format: no lldp transmit-mgmt
Mode: Interface Config
lldp notification
Use this command to enable remote data change notifications on an interface or a range of interfaces.
Default: disabled
Format: lldp notification
Mode: Interface Config
no lldp notification
Use this command to disable notifications.
Default: disabled
Format: no lldp notification
Mode: Interface Config
lldp notification-interval
Use this command to configure how frequently the system sends remote data change notifications. The interval parameter is the number of seconds to wait between sending notifications. The valid interval range is 5-3600 seconds.
Default: 5
Format: lldp notification-interval <5-3600>
Mode: Global Config
no lldp notification-interval
Use this command to return the notification interval to the default value.
Format: no lldp notification-interval
Mode: Global Config
clear lldp statistics
Use this command to reset all LLDP statistics, including MED-related information.
Format: clear lldp statistics
Mode: Privileged Exec
clear lldp remote-data
Use this command to delete all information from the LLDP remote data table, including MED-related information.
Format: clear lldp remote-data
Mode: Global Config
show lldp
Use this command to display a summary of the current LLDP configuration.
Format: show lldp
Mode: Privileged Exec
The display parameters for above command are:
Transmit Interval: How frequently the system transmits local data LLDPDUs, in seconds.
Transmit Hold Multiplier: The multiplier on the transmit interval that sets the TTL in local data LLDPDUs.
Re-initialization Delay: The delay before re-initialization, in seconds.
Notification Interval: How frequently the system sends remote data change notifications, in seconds.
show lldp interface
Use this command to display a summary of the current LLDP configuration for a specific interface or for all interfaces.
Format: show lldp interface {unit/slot/port | all}
Mode: Privileged Exec
The display parameters for above command are:
Interface: The interface in a unit/slot/port format.
Link: Shows whether the link is up or down.
Transmit: Shows whether the interface transmits LLDPDUs.
Receive: Shows whether the interface receives LLDPDUs.
Notify: Shows whether the interface sends remote data change notifications.
TLVs: Shows whether the interface sends optional TLVs in the LLDPDUs. The TLV codes can be 0 (Port Description), 1 (System Name), 2 (System Description), or 3 (System Capability).
Mgmt: Shows whether the interface transmits system management address information in the LLDPDUs.
show lldp statistics
Use this command to display the current LLDP traffic and remote table statistics for a specific interface or for all interfaces.
Format: show lldp statistics {unit/slot/port | all}
Mode: Privileged Exec
The display parameters for above command are:
Last Update: The amount of time since the last update to the remote table in days, hours, minutes, and seconds.
Total Inserts: Total number of inserts to the remote data table.
Total Deletes: Total number of deletes from the remote data table.
Total Drops: Total number of times the complete remote data received was not inserted due to insufficient resources.
Total Ageouts: Total number of times a complete remote data entry was deleted because the Time to Live interval expired.
The table contains the following column headings:
Interface: The interface in unit/slot/port format.
Transmit Total: Total number of LLDP packets transmitted on the port.
Receive Total: Total number of LLDP packets received on the port.
Discards: Total number of LLDP frames discarded on the port for any reason.
Errors: The number of invalid LLDP frames received on the port.
Ageouts: Total number of times a complete remote data entry was deleted for the port because the Time to Live interval expired.
TVL Discards: The number of TLVs discarded.
TVL Unknowns: Total number of LLDP TLVs received on the port where the type value is in the reserved range, and not recognized.
show lldp remote-device
Use this command to display summary information about remote devices that transmit current LLDP data to the system. You can show information about LLDP remote data received on all ports or on a specific port.
Format: show lldp remote-device {unit/slot/port | all}
Mode: Privileged EXEC
The display parameters for above command are:
Local Interface: The interface that received the LLDPDU from the remote device.
RemID: An internal identifier to the switch to mark each remote device to the system.
Chassis ID: The ID that is sent by a remote device as part of the LLDP message, it is usually a MAC address of the device.
Port ID: The port number that transmitted the LLDPDU.
System Name: The system name of the remote device.
show lldp remote-device detail
Use this command to display detailed information about remote devices that transmit current LLDP data to an interface on the system.
Format: show lldp remote-device detail <unit/slot/port>
Mode: Privileged EXEC
The display parameters for above command are:
Local Interface: The interface that received the LLDPDU from the remote device.
Remote Identifier: An internal identifier to the switch to mark each remote device to the system.
Chassis ID Subtype: The type of identification used in the Chassis ID field.
Chassis ID: The chassis of the remote device.
Port ID Subtype: The type of port on the remote device.
Port ID: The port number that transmitted the LLDPDU.
System Name: The system name of the remote device.
System Description: Describes the remote system by identifying the system name and versions of hardware, operating system, and networking software supported in the device.
Port Description: Describes the port in an alpha-numeric format. The port description is configurable.
System Capabilities Supported: Indicates the primary function(s) of the device.
System Capabilities Enabled: Shows which of the supported system capabilities are enabled.
Management Address: For each interface on the remote device with an LLDP agent, lists the type of address the remote LLDP agent uses and specifies the address used to obtain information related to the device.
Time To Live: The amount of time (in seconds) the remote device's information received in the LLDPDU should be treated as valid information.
show lldp local-device
Use this command to display summary information about the advertised LLDP local data. This command can display summary information or detail for each interface.
Format: show lldp local-device {unit/slot/port | all}
Mode: Privileged EXEC
The display parameters for above command are:
Interface: The interface in a unit/slot/port format.
Port ID: The port ID associated with this interface.
Port Description: The port description associated with the interface.
show lldp local-device detail
Use this command to display detailed information about the LLDP data a specific interface transmits.
Format: show lldp local-device detail <unit/slot/port>
Mode: Privileged EXEC
The display parameters for above command are:
Interface: The interface that sends the LLDPDU.
Chassis ID Subtype: The type of identification used in the Chassis ID field.
Chassis ID: The chassis of the local device.
Port ID Subtype: The type of port on the local device.
Port ID: The port number that transmitted the LLDPDU.
System Name: The system name of the local device.
System Description: Describes the local system by identifying the system name and versions of hardware, operating system, and networking software supported in the device.
Port Description: Describes the port in an alpha-numeric format.
System Capabilities Supported: Indicates the primary function(s) of the device.
System Capabilities Enabled: Shows which of the supported system capabilities are enabled.
Management Address: The type of address and the specific address the local LLDP agent uses to send and receive information.