LLDP (Link Layer Discovery Protocol) Commands
Use these M4500 CLI commands to configure LLDP and LLDP-MED transmission, notifications, TLVs, and DCBX, and display local and remote device information.
show lldp
This command is used to display a summary of the current LLDP configuration.
| Default | None |
| Format | show lldp |
| Mode | Privileged Exec |
Display Message
| Term | Definition |
|---|---|
| Transmit Interval | Shows how frequently the system transmits local data LLDPDUs, in seconds. |
| Transmit Hold Multiplier | Shows the multiplier on the transmit interval that sets the TTL in local data LLDPDUs. |
| Reinit Delay | Shows the delay before re-initialization, in seconds. |
| Notification Interval | Shows how frequently the system sends remote data change notifications, in seconds. |
| Transmit Delay | Shows how frequently the system transmits local data LLDPDUs after a change is made in a TLV (type, length, or value) element in LLDP, in seconds. |
| Management-address Source Interface | Shows the source of the management interface |
show lldp interface
This command is used to display a summary of the current LLDP configuration for a specific interface or for all interfaces.
| Default | None |
| Format | show lldp interface [<slot/port>] |
| Mode | Privileged Exec |
Display Message
| Term | Definition |
|---|---|
| Interface | Shows the interface in a 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
This command is used to display the current LLDP traffic and remote table statistics for a specific interface or for all interfaces.
| Default | None |
| Format | show lldp statistics [<slot/port>] |
| Mode | Privileged Exec |
Display Message
| Term | Definition |
|---|---|
| Last Update | Shows 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. |
| Interface | Shows the interface in slot/port format. |
| Tx Total | Total number of LLDP packets transmitted on the port. |
| Rx 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. |
| Ageout | Total number of times a complete remote data entry was deleted for the port because the Time to Live interval expired. |
| TLV Discards | Shows the number of TLVs discarded. |
| TLV Unknowns | Total number of LLDP TLVs received on the port where the type value is in the reserved range, and not recognized. |
| TLV 802.1 | Total number of LLDP TLVs received on the port where the type value is 127 and OUI type is 00-80-C2. |
| TLV 802.3 | Total number of LLDP TLVs received on the port where the type value is 127 and OUI type is 00-12-0F. |
show lldp remote-device
This command is used 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.
| Default | None |
| Format | show lldp remote-device [<slot/port>] |
| Mode | Privileged Exec |
Display Message
| Term | Definition |
|---|---|
| Local Interface | Identifies the interface that received the LLDPDU from the remote device. |
| Rem ID | Shows the ID of the remote device. |
| 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 | Shows the port number that transmitted the LLDPDU. |
| System Name | Shows the system name of the remote device |
show lldp remote-device detail
This command is used to display detailed information about remote devices that transmit current LLDP data to an interface on the system.
| Default | None |
| Format | show lldp remote-deveice detail <slot/port> |
| Mode | Privileged Exec |
Display Message
| Term | Definition |
|---|---|
| Local Interface | Identifies 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 | Shows the type of identification used in the Chassis ID field. |
| Chassis ID | Identifies the chassis of the remote device. |
| Port ID Subtype | Identifies the type of port on the remote device. |
| Port ID | Shows the port number that transmitted the LLDPDU. |
| System Name | Shows 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 | Shows the amount of time (in seconds) the remote device's information received in the LLDPDU should be treated as valid information. |
| MAC/PHY Configuration/Status |
Auto-Negotitation: Identifies the auto-negotiation support and current status of the remote device. PMD Auto-Negotitation Advertised Capabilities: The duplex and bit-rate capability of the port of the remote device. Operational MAU Type: Displays the MAU type. The MAU performs physical layer functions, including digital data conversion from the Ethernet interfaces’ collision detection and bit injection into the network. |
| Power Via MDI |
MDI Power Support: The MDI power capabilities and status. PSE Power Pair: Indicates the way of feeding the voltage to the data cable. Power Class: PoE power class. |
| Link Aggregation |
Aggregation Status: Indicates the link aggregation capabilities and the current aggregation status. Aggregation Port Id: Aggregated port identifier. |
| Maximum Frame Size | Shows the maximum frame size capability of the implemented MAC and PHY of the remote device. |
| Port VLAN Identity | Shows the PVID of the connected port of the remote device. |
| Protocol VLAN |
Status: Indicates the port and protocol VLAN capability and status. ID: The PPVID number for the port of the remote device. |
| VLAN Name | Shows the name of the VLAN which the connected port is in. |
| Protocol Identity | Shows the particular protocols that are accessible through the port of the remote device. |
show lldp local-device
This command is used to display summary information about the advertised LLDP local data. This command can display summary information or detail for each interface.
| Default | None |
| Format | show lldp local-device [<slot/port>] |
| Mode | Privileged Exec |
Display Message
| Term | Definition |
|---|---|
| Interface | Identifies the interface in a slot/port format. |
| Port ID | Shows the port ID associated with this interface. |
| Port Description | Shows the port description associated with the interface. |
show lldp local-device detail
This command is used to display detailed information about the LLDP data a specific interface transmits.
| Default | None |
| Format | show lldp local-deveice detail <slot/port> |
| Mode | Privileged Exec |
Display Message
| Term | Definition |
|---|---|
| Interface | Identifies the interface that sends the LLDPDU. |
| Chassis ID Subtype | Shows the type of identification used in the Chassis ID field. |
| Chassis ID | Identifies the chassis of the local device |
| Port ID Subtype | Identifies the type of port on the local device. |
| Port ID | Shows the port number that transmitted the LLDPDU. |
| System Name | Shows 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. 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 | The type of address and the specific address the local LLDP agent uses to send and receive information. |
| MAC/PHY Configuration/Status |
Auto-Negotitation: Identifies the auto-negotiation support and current status of the local device. PMD Auto-Negotitation Advertised Capabilities: The duplex and bit-rate capability of the port of the local device. Operational MAU Type: Displays the MAU type. The MAU performs physical layer functions, including digital data conversion from the Ethernet interfaces’ collision detection and bit injection into the network. |
| Power Via MDI |
MDI Power Support: The MDI power capabilities and status. PSE Power Pair: Indicates the way of feeding the voltage to the data cable. Power Class: PoE power class. |
| Link Aggregation |
Aggregation Status: Indicates the link aggregation capabilities and the current aggregation status. Aggregation Port Id: Aggregated port identifier. |
| Maximum Frame Size | Shows the maximum frame size capability of the implemented MAC and PHY of the local device. |
| Port VLAN Identity | Shows the PVID of the port. |
| VLAN Name | Shows the name of the VLAN which the port is in. |
| Protocol Identity | Shows the particular protocols that are accessible through the port. |
show lldp dcbx interface
This command is used to display the local Data Center Bridging Capability Exchange (DCBX) control status of an interface on the system.
| Default | None |
| Format | show lldp dcbx interface [<slot/port> [detail]] |
| Mode | Privileged Exec |
Display Message
| Term | Definition |
|---|---|
| Is configuration source selected | Is any interface configured configuration source or not. |
| Configuration source port | The interface that is configured as the configuration source. |
| Interface | Specifies all the ports on which DCBX can be configured. |
| Status | Specifies the DCBX status of the interfaces. |
| Role | Specifies the DCBX role on the interfaces. |
| Version | Specifies the DCBX version on the interfaces. |
| DCBX Tx | Total number of transmitted DCBX TLV(s) on the interfaces. |
| DCBX Rx | Total number of received DCBX TLV(s) on the interfaces. |
| DCBX Error | Total number of error DCBX TLV(s) on the interfaces. |
| unknown TLV | Total number of unknown DCBX TLV(s) on the interfaces. |
| DCBX operational status | Specifies the DCBX status of the interface. |
| Configured DCBX version | Specifies the DCBX version on this interface. |
| Peer DCBX version | Specifies the DCBX version of the peer device. |
| Peer MAC | Specifies the MAC address of the peer device. |
| Peer Description | Specifies the description of the peer device. |
| Auto-configuration Port Role | Specifies the DCBX role on this interface. |
| Peer Is configuration Source | Is peer device configured configuration source or not. |
| Error counters | Total number of error DCBX TLV(s) on this interface. |
| PFC incompatible configuration | Total number of PFC incompatible configuration on this interface. |
| Disappearing neighbor | Total number of Disappearing neighbor on this interface. |
| Multiple neighbors detected | Total number of Multiple neighbors detected on this interface. |
| Local configuration | Specifies the configuration of the local device. |
| PFC configuration | Specifies the PFC configuration of the local device. |
| Application priority (Tx enabled/disabled) | Specifies the mapping of the specific application to the priority of the local device. |
| Peer configuration | Specifies the configuration of the peer device. |
| PFC configuration | Specifies the PFC configuration of the peer device. |
| Application priority (Tx enabled/disabled) | Specifies the mapping of the specific application to the priority of the peer device. |
Local DCBX configuration shown is configured according to:
(1) Configuration set by user via PFC commands (priority-flow-control) for manual ports. (Note: We currently do not provide command to manually configure local application priority) (2) Configuration propagated internally by the configuration source for auto-down ports and auto-up ports not selected as configuration source. (3) Configuration received from peer for manually selected or auto-detected configuration source.
show lldp tlv-select interface
This command is used to display the DCBX TLV configuration of an interface on the system.
| Default | None |
| Format | show lldp tlv-select interface [<slot/port>] |
| Mode | Privileged Exec |
Display Message
| Term | Definition |
|---|---|
| Interface | Specifies all the ports on which DCBX TLV can be configured. |
| PFC | Specifies the DCBX priority flow control TLV on the interfaces. |
| App priority | Specifies the DCBX application-priority TLV on the interfaces. |
show lldp remote-comparison
This command is used to display LLDP comparison between remote & local interface on the system.
| Default | None |
| Format | show lldp remote-comparison [<slot/port>] |
| Mode | Privileged Exec |
Display Message
| Term | Definition |
|---|---|
| LLDP Comparison | Specifies all the difference of TLVs between remote interface & local interface. |
lldp notification
This command is used to enable remote data change notifications.
| Default | Disabled |
| Format | lldp notification |
| Mode | Interface Config |
no lldp notification
This command is used to disable notifications.
| Format | no lldp notification |
| Mode | Interface Config |
lldp notification-interval
This command is used to configure how frequently the system sends remote data change notifications. The <interval-seconds> 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 <interval-seconds> |
| Mode | Global Config |
no lldp notification-interval
This command is used to return the notification interval to the default value.
| Format | no lldp notification-interval |
| Mode | Global Config |
lldp receive
This command is used to enable the LLDP receive capability.
| Default | Enable |
| Format | lldp receive |
| Mode | Interface Config |
no lldp receive
This command is used to return the reception of LLDPDUs to the default value.
| Format | no lldp receive |
| Mode | Interface Config |
lldp transmit
This command is used to enable the LLDP advertise capability.
| Default | Enable |
| Format | lldp transmit |
| Mode | Interface Config |
no lldp transmit
This command is used to return the local data transmission capability to the default.
| Format | no lldp transmit |
| Mode | Interface Config |
lldp transmit-mgmt
This command is used to include transmission of the local system management address information in the LLDPDUs.
| Default | None |
| Format | lldp transmit-mgmt |
| Mode | Interface Config |
no lldp transmit-mgmt
This command is used to cancel inclusion of the management information in LLDPDUs.
| Format | no lldp transmit-mgmt |
| Mode | Interface Config |
lldp transmit-tlv
This command is used to specify which optional type length values (TLVs) in the 802.1AB basic management set are transmitted in the LLDPDUs. Use sys-name to transmit the system name TLV. To configure the system name, please refer to “snmp-server” command. Use sys-descto 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, please refer to “description” command. Use org-spec to transmit the organization specific TLV.
| Default | None |
| Format | lldp transmit-tlv [sys-desc] [sys-name] [sys-cap] [port-desc] [org-spec] |
| Mode | Interface Config |
no lldp transmit-tlv
This command is used 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] [org-spec] |
| Mode | Interface Config |
lldp timers
This command is used 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 5-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-10 seconds.
| Default |
Interval-seconds 30 Hold-value 4 Reinit-seconds 2 |
| Format | lldp timers [interval <interval-seconds>] [hold <hold-value>] [reinit <reinit-seconds>] |
| Mode | Global Config |
no lldp timers
This command is used 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 tx-delay
This command is used to set the timing parameters for data transmission delay on ports enabled for LLDP. The <delay-seconds> determines the number of seconds to wait between transmitting local data LLDPDUs. The range is 1-8192 seconds.
| Default | 2 |
| Format | lldp tx-delay <delay-seconds> |
| Mode | Global Config |
no lldp tx-delay
This command is used to return the transmit delay to the default value.
| Format | no lldp tx-delay |
| Mode | Global Config |
lldp dcbx version
This command is used to support a specific version of the DCBX protocol or to detect the peer version and match it. DCBX can be configured to operate in IEEE mode or CEE mode or CIN. In auto mode, version detection is based on the peer device DCBX version. The switch operates in either IEEE or one of the legacy modes on each interface. In auto mode, the switch will attempt to jump start the exchange by sending an IEEE frame, followed by a CEE frame followed by a CIN frame. The switch will parse the received response and immediately switch to the peer version.
| Default | Auto |
| Format | lldp dcbx version <auto | cee | cin | ieee> |
| Mode | Global Config |
| Term | Definition |
|---|---|
| auto | Configure the switch to auto detect the peer DCBX version. |
| cee | Configure the switch to operate according to standard cee 1.06. |
| cin | Configure the switch to operate according to DCBX standard CIN 1.0. |
| ieee | Configure the switch to operate according to standard IEEE 802.1Qaz. |
version PFC ETS ETS Application
Configuration Recommend Priority
CEE O O O X CIN O O O X IEEE O O O O
no lldp dcbx version
Use the no lldp dcbx version to reset the value to default.
| Format | no lldp dcbx version |
| Mode | Global Config |
lldp dcbx port-role
This command is used to configure configure the port role to manual, auto-upstream, auto-downstream and configuration source. In order to reduce configuration flapping, ports that obtain configuration information from a configuration source port will maintain that configuration for 2x the LLDP timeout, even if the configuration source port becomes operationally disabled.
| Default | Manual |
| Format | lldp dcbx port-role <auto-down | auto-up | configuration-source | manual> |
| Mode | Interface Config |
| Term | Definition |
|---|---|
| auto-down | Configure interface as auto-down stream. Advertises a configuration but is not willing to accept one from the link partner. However, the port will accept a configuration propagated internally by the configuration source. An auto-downstream port that receives an internally propagated configuration overwrites its local configuration with the new parameter values. These ports have the willing bit set to disabled. Selection of a port based upon compatibility of the received configuration is suppressed. These ports should be connected to a trusted FCF. |
| auto-up | Configure interface as auto-up stream. Advertises a configuration, but is also willing to accept a configuration from the link-partner and propagate it internally to the auto-downstream ports as well as receive configuration propagated internally by other auto-upstream ports. A port that receives an internally propagated configuration overwrites its local configuration with the new parameter values. The first auto-upstream that is capable of receiving a peer configuration is elected as the configuration source. These ports have the willing bit enabled. These ports should be connected to FCFs. |
| configuration-source | Configure interface as configuration source. In this role, the port has been manually selected to be the configuration source. Configuration received over this port is propagated to the other auto-configuration ports. Selection of a port based upon compatibility of the received configuration is suppressed. These ports should be connected to a trusted FCF. These ports have the willing bit enabled. Note that coexistence of configuration sources is not allowed. |
| manual | Configure interface as manual port. Ports operating in the Manual role do not have their configuration affected by peer devices or by internal propagation of configuration. These ports will advertise their configuration to their peer if DCBX is enabled on that port. The willing bit is set to disabled on manual role ports. |
no lldp dcbx port-role
Use the no lldp dcbx port-role to reset this function to default.
| Format | no lldp dcbx port-role |
| Mode | Interface Config |
lldp tlv-select dcbxp
This command is used to send specific DCBX TLVs if LLDP is enabled to transmit on the given interface.
| Default | PFC and application priority |
| Format | lldp tlv-select dcbxp [pfc | application-priority] |
| Mode |
Global Config Interface Config |
| Term | Definition |
|---|---|
| pfc | Transmit DCBX priority flow control TLV. |
| application-priority | Transmit DCBX application-priority TLV. |
no lldp tlv-select
Use the no lldp tlv-select to disable LLDP from sending all or individual DCBX TLVs, even if LLDP is enabled for transmission on the given interface.
| Format | no lldp tlv-select dcbxp [pfc | application-priority] |
| Mode |
Global Config Interface Config |
lldp mgmt-address
This command is used to specify which management address is transmitted in the LLDPDUs.
| Default | serviceport |
| Format | lldp mgmt-address {vlan | serviceport | sys-mac} |
| Mode | Global Config |
| Term | Definition |
|---|---|
| vlan | Configure the IP address on VLAN 1 as the management address |
| serviceport | Configure the IP address on service port as the management address |
| sys-mac | Configure the system MAC as the management address |
no lldp mgmt-address
Use the no lldp mgmt-address to reset this function to default value.
| Format | no lldp mgmt-address |
| Mode | Global Config |
lldp portid-subtype
This command is used to configure the port ID subtype field which is used to indicate how the port is being referenced in the Port ID field in LLDPDU.
| Default | Interface-name |
| Format | lldp portid-subtype {interface-alias | interface-name | mac-address} |
| Mode | Interface Config |
| Term | Definition |
|---|---|
| interface-alias | Interface alias name (configured by “description” CLI command) |
| interface-name | Interface system name |
| mac-address | MAC address of the physical port |
no lldp portid-subtype
Use the no lldp portid-subtype to reset this function to default value.
| Format | no lldp portid-subtype |
| Mode | Interface Config |
data-center-bridging
This command enables the data-center bridging mode. In order to use the Data Center Bridging Capability Exchange (DCBX) command, you must first enable this mode.
| Default | Disabled |
| Format | data-center-bridging |
| Mode | Interface Config |