LLDP (802.1AB) Commands

Use these commands to configure Link Layer Discovery Protocol (LLDP), which is defined in the IEEE 802.1AB specification.

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

M4250

M4350

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

M4250

M4350

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

M4250

M4350

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 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 reinitialization, and the range is 1–0 seconds.

Default

interval—30 seconds

hold—4

reinit—2 seconds

Format lldp timers [interval interval-seconds] [hold hold-value] [reinit reinit-seconds]
Mode Global Config

no lldp timers

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

M4250

M4350

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. 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 description (Interface Config).

Default no optional TLVs are included
Format lldp transmit-tlv [sys-desc] [sys-name] [sys-cap] [port-desc]
Mode Interface Config

no lldp transmit-tlv

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-tlv vlan

M4250

M4350

Use this command to specify if the LLDP Port VLAN (PVID) TLV or LLDP VLAN Name TLV are transmitted in the LLDPDUs from an interface or range of interfaces.

Default no optional TLVs are included
Format lldp transmit-tlv vlan {port-vlan | vlan-name}
Mode Interface Config

no lldp transmit-tlv vlan

Use this command to remove the LLDP Port VLAN (PVID) TLV or LLDP VLAN Name TLV from the LLDPDUs.

Format no lldp transmit-tlv vlan {port-vlan | vlan-name}
Mode Interface Config

lldp transmit-tlv max-frame-size

M4250

M4350

Use this command to specify if the Maximum Frame Size TLV is transmitted in the LLDPDUs from an interface or range of interfaces.

Default no optional TLVs are included
Format lldp transmit-tlv max-frame-size
Mode Interface Config

no lldp transmit-tlv max-frame-size

Use this command to remove the Maximum Frame Size TLV from the LLDPDUs.

Format no lldp transmit-tlv max-frame-size
Mode Interface Config

lldp transmit-mgmt

M4250

M4350

Use this command to include transmission of the local system management address information in the LLDPDUs. This command can 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

M4250

M4350

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

M4250

M4350

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 interval
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

lldp portid-subtype

M4250

M4350

Use this command to set the LLDP port ID subtype for the show lldp local-device detail command as an interface name (use the interface-name keyword) or a MAC address (use the mac-address keyword).

Default mac-address
Format lldp portid-subtype [interface-name | mac-address]
Mode Interface Config

no lldp portid-subtype

Use this command to reset the LLDP port ID subtype for the show lldp local-device detail command to the default (the mac-address keyword).

Format no lldp portid-subtype
Mode Interface Config

clear lldp statistics

M4250

M4350

Use this command to reset all LLDP statistics, including MED-related information.

Format clear lldp statistics
Mode Privileged EXEC

clear lldp remote-data

M4250

M4350

Use this command to delete all information from the LLDP remote data table, including MED-related information.

Format clear lldp remote-data
Mode Privileged EXEC

show lldp

M4250

M4350

Use this command to display a summary of the current LLDP configuration.

Format show lldp
Mode Privileged EXEC
Term Definition
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 reinitialization, in seconds.
Notification Interval How frequently the system sends remote data change notifications, in seconds.

show lldp interface

M4250

M4350

Use this command to display a summary of the current LLDP configuration for a specific interface or for all interfaces. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command description and format.
Format show lldp interface {unit/slot/port | all}
Mode Privileged EXEC
Term Definition
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

M4250

M4350

Use this command to display the current LLDP traffic and remote table statistics for a specific interface or for all interfaces. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command description and format.
Format show lldp statistics {unit/slot/port | all}
Mode Privileged EXEC
Term Definition
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.

Term Definition
Interface The interface.
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.
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.
TLV MED The total number of LLDP-MED TLVs received on the interface.
TLV 802.1 The total number of LLDP TLVs received on the interface which are of type 802.1.
TLV 802.3 The total number of LLDP TLVs received on the interface which are of type 802.3.

show lldp remote-device

M4250

M4350

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. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command description and format.
Format show lldp remote-device {unit/slot/port | all}
Mode Privileged EXEC
Term Definition
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.

Command example:

CODE
(NETGEAR switch) #show lldp remote-device all

LLDP Remote Device Summary

Local
Interface RemID    Chassis ID            Port ID             System Name
-------  -------   --------------------  ------------------  ------------------
0/1
0/2
0/3
0/4
0/5
0/6
0/7        2       00:FC:E3:90:01:0F     00:FC:E3:90:01:11
0/7        3       00:FC:E3:90:01:0F     00:FC:E3:90:01:12
0/7        4       00:FC:E3:90:01:0F     00:FC:E3:90:01:13
0/7        5       00:FC:E3:90:01:0F     00:FC:E3:90:01:14
0/7        1       00:FC:E3:90:01:0F     00:FC:E3:90:03:11
0/7        6       00:FC:E3:90:01:0F     00:FC:E3:90:04:11
0/8
0/9
0/10
0/11
0/12

show lldp remote-device detail

M4250

M4350

Use this command to display detailed information about remote devices that transmit current LLDP data to an interface on the system. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command description and format.
Format show lldp remote-device detail unit/slot/port
Mode Privileged EXEC
Term Definition
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.

Command example:

CODE
(NETGEAR switch) #show lldp remote-device detail 0/7

LLDP Remote Device Detail

Local Interface: 0/7

Remote Identifier: 2
Chassis ID Subtype: MAC Address
Chassis ID: 00:FC:E3:90:01:0F
Port ID Subtype: MAC Address
Port ID: 00:FC:E3:90:01:11
System Name:
System Description:
Port Description:
System Capabilities Supported:
System Capabilities Enabled:
Time to Live: 24 seconds

show lldp local-device

M4250

M4350

Use this command to display summary information about the advertised LLDP local data. This command can display summary information or detail for each interface. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command description and format.
Format show lldp local-device {unit/slot/port | all}
Mode Privileged EXEC
Term Definition
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

M4250

M4350

Use this command to display detailed information about the LLDP data a specific interface transmits. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command description and format.
Format show lldp local-device detail unit/slot/port
Mode Privileged EXEC
Term Definition
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.