LLDP Commands

This chapter contains the following sections:

clear lldp statistics

To clear the Link Layer Discovery Protocol (LLDP) statistics, use the clear lldp statistics Privileged EXEC mode command.

Syntax

clear lldp statistics

Parameters

N/A

Default Configuration

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# clear lldp statistics

lldp holdtime-multiplier

To specify how long the receiving device holds a LLDP packet before discarding it, use the lldp holdtime-multiplier Global Configuration mode command.

To revert to its default setting, use the no form of this command.

Syntax

lldp holdtime-multiplier number

no lldp holdtime-multiplier

Parameters

number—The amount of time that LLDP packets are held before the packets are discarded, measured in multiples of the TLV Advertise Interval. (Range: 2 to 10)

Default Configuration

The default LLDP holdtime multiplier is 4.

Command Mode

Global Configuration mode

User Guidelines

The time-to-live (TTL) value (the LLDP transmission interval multiplies the holdtime multiplier) should be smaller than 65535.

The actual TTL value of LLDP frames is calculated by the following formula:

TTL = min (65535, LLDP-Timer * LLDP-hold-multiplier)

For example, if the value of the LLDP timer is 30 seconds, and the value of the LLDP holdtime multiplier is 4, then the value 120 is encoded in the TTL field of the LLDP header.

Example

The following example sets the LLDP holdtime interval to 90 seconds:

switchxxxxxx(config)# lldp timer 30
switchxxxxxx(config)# lldp holdtime-multiplier 3

lldp lldpdu

To specify how to handle LLDP packets when LLDP is globally disabled, use the lldp lldpdu Global Configuration mode command.

Syntax

lldp lldpdu {bridging | filtering | flooding}

Parameters

bridging—Bridges LLDP packets (bridging LLDP PDU to VLAN member ports) when LLDP is globally disabled.

filtering—Filters (deletes) LLDP packets when LLDP is globally disabled.

flooding—Floods (forwards) LLDP packets to all interfaces when LLDP is globally disabled.

Default Configuration

LLDP packets are flooded when LLDP is globally disabled.

Command Mode

Global Configuration mode

User Guidelines

If the STP mode is set to MSTP, the LLDP packet-handling mode cannot be set to flooding. The STP mode cannot be set to MSTP if the LLDP packet-handling mode is flooding. If LLDP is globally disabled, and the LLDP packet-handling mode is flooding, LLDP packets are treated as data packets with the following exceptions:

  • VLAN ingress rules are not applied to LLDP packets. LLDP packets are trapped on all ports for which the STP state is Forwarding.

  • Default deny-all rules are not applied to LLDP packets.

  • VLAN egress rules are not applied to the packets. LLDP packets are flooded to all ports for which the STP state is Forwarding.

  • LLDP packets are sent as untagged.

Example

switchxxxxxx(config)# lldp lldpdu flooding

lldp med

To enable LLDP Media Endpoint Discovery (MED) on an interface, use the lldp med Interface Configuration mode command.

To disable LLDP MED on an interface, use the no form of this command.

Syntax

lldp med {enable | disable}

no lldp med

Parameters

enable—Enables LLDP MED on the interface.

disable—Disables LLDP MED on the interface.

Default Configuration

LLDP MED is enabled with the network-policy TLV.

Command Mode

Interface Configuration (Ethernet) mode

Example

switchxxxxxx(config)# interface gi3
switchxxxxxx(config-if)# lldp med enable

lldp med fast-start-repeat-count

When an interface comes up, LLDP can send packets more quickly than usual using its fast start mechanism. To configure the number of packets that is sent during the activation of the fast start mechanism, use the lldp med fast-start-repeat-count Global Configuration mode command.

To revert to its default setting, use the no form of this command.

Syntax

lldp med fast-start-repeat-count number

no lldp med fast-start-repeat-count

Parameters

number—The number of times that the fast start LLDPDU is being sent during the activation of the fast start mechanism. (Range: 1 to 10)

Default Configuration

The default value is 3.

Command Mode

Global Configuration mode

Example

switchxxxxxx(config)# lldp med fast-start-repeat-count 4

lldp med location

To configure the LLDP MED location for an interface, use the lldp med location Interface Configuration mode command.

To remove the LLDP MED location for an interface, use the no form of this command.

Syntax

lldp med location {civic-address data | coordinate data | ecs-elin data}

no lldp med location {civic-address | coordinate | ecs-elin}

Parameters

civic-address data—Specifies the location data as a civic address in hexadecimal format.

coordinate data—Specifies the location data as coordinates in hexadecimal format.

ecs-elin data—Specifies the location data as an Emergency Call Service Emergency Location Identification Number (ECS ELIN) in hexadecimal format.

Default Configuration

The location is not configured.

Command Mode

Interface Configuration (Ethernet) mode

Example

switchxxxxxx(config)# interface gi2
switchxxxxxx(config-if)# lldp med location civic-address 616263646566

lldp med network-policy voice auto

To automatically create an LLDP MED network policy for voice application, if the voice VLAN operation mode is auto voice VLAN, use the lldp med network-policy auto Global Configuration mode command. The voice VLAN, 802.1p priority, and the DSCP value of the voice VLAN are used in the policy.

To disable this feature, use the no form of this command.

Syntax

lldp med network-policy voice auto

no lldp med network-policy voice auto

Parameters

N/A

Default Configuration

Enabled

Command Mode

Global Configuration mode

User Guidelines

A network policy for voice LLDP packets can be created by using the lldp med network-policy (global) command. The lldp med network-policy auto Global Configuration mode command allows you to use the configuration of the voice application to create the network policy instead of having to manually configure it.

In the Auto mode, the voice VLAN feature determines on which interfaces to advertise the network policy TLV with the application type voice, and controls the parameters of that TLV.

To enable auto generation of a network policy based on the auto voice VLAN, there must be no manual preconfigured network policies for the voice application. In the Auto mode, you cannot manually define a network policy for the voice application using the lldp med network-policy (global) command.

Example

switchxxxxxx(config)# lldp med network-policy voice auto

lldp med network-policy (Global)

To manually define an LLDP MED network policy, use the lldp med network-policy Global Configuration mode command.

To delete an LLDP MED network policy, use the no form of this command.

Syntax

lldp med network-policy number app {voice | voice-signaling | guest-voice | guest-voice-signaling | softphone-voice | streaming-video | video-conferencing | video-signaling} vlan vlan-id vlan-type { tag | untag } priority priority dscp value

no lldp med network-policy number

Parameters

number—Network policy index number. (Range: 1 to 32)

app—Specifies the type of the application defined for this network policy. Available application types are:

  • voice

  • voice-signaling

  • guest-voice

  • guest-voice-signaling

  • softphone-voice

  • video-conferencing

  • streaming-video

  • video-conferencing

  • video-signaling

    vlan vlan-id—Specifies the VLAN identifier for the application.

    vlan-type {tag | untag} —Specifies if the application is using a tagged or an untagged VLAN.

    priority priority—Specifies the user priority used for the specified application.

    dscp value—Specifies the DSCP value used for the specified application.

Default Configuration

No network policy is defined.

Command Mode

Global Configuration mode

User Guidelines

This command creates the network policy, which can be attached to a port by using the lldp med network-policy (interface) command.

Use the lldp med network-policy Interface Configuration mode command to attach a network policy to a port.

Up to 32 network policies can be defined.

Example

This example creates a network policy for the voice-signaling application and attaches it to gi1. LLDP packets sent on gi1 will contain information defined in the network policy.

switchxxxxxx(config)# lldp med network-policy 1 app voice-signaling vlan 1 vlan-type untagged priority 1 dscp 2
switchxxxxxx(config)# interface gi1
switchxxxxxx(config-if)# lldp med network-policy add 1

lldp med network-policy (Interface)

To attach (or remove) an LLDP MED network policy to (or from) an interface, use the lldp med network-policy Interface Configuration mode command.

Syntax

lldp med network-policy {add | remove} number

Parameters

add number—Attaches the specified network policy to the interface.

remove number—Removes the specified network policy to the interface.

Default Configuration

No network policy is attached to the interface.

Command Mode

Interface Configuration (Ethernet) mode

User Guidelines

For each interface, only one network policy per application can be defined. Network policies are created by using the lldp med network-policy (global) command.

Example

This example creates a network policy for the voice-signaling application and attaches it to fa11. LLDP packets sent on fa11 will contain information defined in the network policy.

switchxxxxxx(config)# lldp med network-policy 1 app voice-signaling vlan 2 vlan-type untag priority 1 dscp 2
switchxxxxxx(config)# interface gi11
switchxxxxxx(config-if)# lldp med network-policy add 1

lldp med tlv-select

To specify which LLDP MED TLVs are included, use the lldp med tlv-select Interface Configuration mode command.

To remove all selected LLDP MED TLVs, use the no form of this command.

Syntax

lldp med tlv-select medtlv1 [medtlv2… medtlv4]

no lldp med tlv-select

Parameters

medtlv—TLVs that should be included or excluded. Available TLVs are network-policy, location, poe-pse, and inventory. The capabilities TLV is always included if LLDP MED is enabled.

Default Configuration

Network-policy TLV

Command Mode

Interface Configuration (Ethernet) mode

Example

The following example enables LLDP MED with the location TLV on gi5:

switchxxxxxx(config)# interface gi5
switchxxxxxx(config-if)# lldp med tlv-select location

lldp receive

To enable receiving LLDP frames on an interface, use the lldp receive Interface Configuration mode command.

To stop receiving LLDP frames on an interface, use the no form of this command.

Syntax

lldp receive

no lldp receive

Parameters

N/A

Default Configuration

Enabled

Command Mode

Interface Configuration (Ethernet) mode

User Guidelines

LLDP manages LAG ports individually. LLDP data received through the LAG ports is stored individually per port.

LLDP operation on a port is not dependent on the STP state of a port. For example, LLDP frames are received on the blocked ports.

If a port is controlled by 802.1x, LLDP operates only if the port is authorized.

Example

switchxxxxxx(config)# interface gi1
switchxxxxxx(config-if)# lldp receive

lldp reinit

To specify the minimum time that an LLDP-enabled port waits before reinitializing the LLDP transmission, use the lldp reinit Global Configuration mode command.

To revert to its default settings, use the no form of this command.

Syntax

lldp reinit seconds

no lldp reinit

Parameters

seconds—The minimum time in seconds that a LLDP port waits before reinitializing the LLDP transmission. (Range: 1 to 10)

Default Configuration

2 seconds

Command Mode

Global Configuration mode

Example

switchxxxxxx(config)# lldp reinit 4

lldp run

To enable LLDP globally on the switch, use the lldp run Global Configuration mode command.

To disable LLDP globally on the switch, use the no form of this command.

Syntax

lldp run

no lldp run

Parameters

N/A

Default Configuration

LLDP is enabled by default.

Command Mode

Global Configuration mode

Example

switchxxxxxx(config)# lldp run

lldp tlv-select 802.1

To specify which 802.1x parameters will be advertised, use the lldp tlv-select 802.1 Interface Configuration mode command.

Syntax

lldp tlv-select 802.1 pvid enable

lldp tlv-select 802.1 pvid disable

lldp tlv-select 802.1 vlan-name add vlan-id

lldp tlv-select 802.1 vlan-name remove vlan-id

Parameters

pvid enable—Specifies that the PVID is advertised.

pvid disable—Specifies that the PVID is not advertised.

vlan-name add vlan-id—Specifies that the VLAN ID is advertised. (Range: 1 to 4094)

vlan-name remove vlan-id—Specifies that the VLAN ID is not advertised. (Range: 1 to 4094)

Default Configuration

802.1 pvid TLV is transmitted.

Command Mode

Interface Configuration (Ethernet) mode

Example

switchxxxxxx(config)# interface gi11
switchxxxxxx(config-if)# lldp tlv-select 802.1 pvid enable

lldp tlv-select TLV

To specify which optional TLVs are transmitted, use the lldp tlv-select TLV Interface Configuration (Ethernet) mode command.

To remove all selected LLDP optional TLVs, use the no form of this command.

Syntax

lldp tlv-select TLV [TLV ] [TLV ] [TLV ] [TLV ] [TLV ] [TLV ] [TLV ]

no lldp tlv-select

Parameters

TLV—(Optional) Available optional TLVs are port-desc, sys-name, sys-desc, sys-cap, mac-phy, lag, max-frame-size, and management-addr.

Default Configuration

The sys-name and sys-cap TLVs are selected.

Command Mode

Interface Configuration mode

Example

switchxxxxxx(config)# interface gi20
switchxxxxxx(config-if)# lldp tlv-select port-desc sys-name sys-desc

lldp transmit

To enable transmitting LLDP frames on an interface, use the lldp transmit Interface Configuration mode command.

To stop transmitting LLDP frames on an interface, use the no form of this command.

Syntax

lldp transmit

no lldp transmit

Parameters

N/A

Default Configuration

Transmitting LLDP is enabled on each interface.

Command Mode

Interface Configuration (Ethernet) mode

User Guidelines

LLDP manages LAG ports individually. LLDP sends separate advertisements on each port in a LAG.

LLDP operation on a port is not dependent on the STP state of a port. For example, LLDP frames are sent on the blocked ports.

If a port is controlled by 802.1x, LLDP operates only if the port is authorized.

Example

switchxxxxxx(config)# interface gi5
switchxxxxxx(config-if)# lldp transmit

lldp tx-delay

To set the delay time between two successive LLDP frame transmissions initiated by value or status changes in the LLDP local system MIB, use the lldp tx-delay Global Configuration mode command.

To revert to its default setting, use the no form of this command.

Syntax

lldp tx-delay seconds

no lldp tx-delay

Parameters

seconds—The delay time in seconds. (Range: 1 to 8191 seconds)

Default Configuration

The default delay time is 2 seconds.

Command Mode

Global Configuration mode

User Guidelines

We recommend that the tx-delay is less than 0.25 of the LLDP timer interval.

Example

switchxxxxxx(config)# lldp tx-delay 10

lldp timer

To specify how often the system sends the LLDP updates, use the lldp timer Global Configuration mode command.

To revert to its default setting, use the no form of this command.

Syntax

lldp timer seconds

no lldp timer

Parameters

seconds—The minimum time in seconds that an LLDP port transmits the advertisement periodically. (Range: 5 to 32767)

Default Configuration

30 seconds

Command Mode

Global Configuration mode

User Guidelines

LLDP transmission interval multiplies the holdtime multiplier should be smaller than 65535.

The tx-delay cannot be larger than 0.25 of the LLDP transmission interval.

Example

switchxxxxxx(config)# lldp timer 30

show lldp

To show the LLDP status, use the show lldp Privileged EXEC mode command.

Syntax

show lldp

Parameters

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show lldp
 State: Enabled
 Timer: 30 Seconds
 Hold multiplier: 4
 Reinit delay: 2 Seconds
 Tx delay: 2 Seconds
 LLDP packet handling: Flooding
 Port     |  State | Optional TLVs  | Address
 -------- + ------ + -------------- + --------
      gi1 |  RX,TX |         SN, SC |192.168.1.254
      gi2 |  RX,TX |         SN, SC |192.168.1.254
      gi3 |  RX,TX |         SN, SC |192.168.1.254
      gi4 |  RX,TX |         SN, SC |192.168.1.254
      gi5 |  RX,TX |         SN, SC |192.168.1.254
      gi6 |  RX,TX |         SN, SC |192.168.1.254
      gi7 |  RX,TX |         SN, SC |192.168.1.254
      gi8 |  RX,TX |         SN, SC |192.168.1.254
      gi9 |  RX,TX |         SN, SC |192.168.1.254
     gi10 |  RX,TX |         SN, SC |192.168.1.254
     gi11 |  RX,TX |         SN, SC |192.168.1.254
     gi12 |  RX,TX |         SN, SC |192.168.1.254
     gi13 |  RX,TX |         SN, SC |192.168.1.254
     gi14 |  RX,TX |         SN, SC |192.168.1.254
     gi15 |  RX,TX |         SN, SC |192.168.1.254
     gi16 |  RX,TX |         SN, SC |192.168.1.254
     gi17 |  RX,TX |         SN, SC |192.168.1.254
     gi18 |  RX,TX |         SN, SC |192.168.1.254
     gi19 |  RX,TX |         SN, SC |192.168.1.254
     gi20 |  RX,TX |         SN, SC |192.168.1.254
     gi21 |  RX,TX |         SN, SC |192.168.1.254
     gi22 |  RX,TX |         SN, SC |192.168.1.254
     gi23 |  RX,TX |         SN, SC |192.168.1.254
     gi24 |  RX,TX |         SN, SC |192.168.1.254
     gi25 |  RX,TX |         SN, SC |192.168.1.254
     gi26 |  RX,TX |         SN, SC |192.168.1.254
     gi27 |  RX,TX |         SN, SC |192.168.1.254
     gi28 |  RX,TX |         SN, SC |192.168.1.254
Port ID: gi1
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi2
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi3
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi4
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi5
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi6
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi7
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi8
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi9
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi10
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi11
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi12
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi13
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi14
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi15
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi16
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi17
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi18
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi19
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi20
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi21
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi22
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi23
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi24
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi25
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi26
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi27
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled
Port ID: gi28
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled

show lldp interfaces

To show the LLDP configuration for specific interfaces, use the show lldp interfaces Privileged EXEC mode command.

Syntax

show lldp interfaces interface-id

Parameters

interface-id—An interface ID or a list of interface IDs.

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show lldp interfaces gi11
 State: Enabled
 Timer: 30 Seconds
 Hold multiplier: 4
 Reinit delay: 2 Seconds
 Tx delay: 2 Seconds
 LLDP packet handling: Flooding
 Port     |  State | Optional TLVs  | Address
 -------- + ------ + -------------- + --------
     gi11 |  RX,TX |         SN, SC |192.168.1.254
Port ID: gi11
802.3 optional TLVs:
802.1 optional TLVs
PVID: Enabled

show lldp interfaces tlvs-overloading

To show the status of LLDP TLVs overloading for specific interfaces, use the show lldp interfaces tlvs-overloading Privileged EXEC mode command.

Syntax

show lldp interfaces interface-id tlvs-overloading

Parameters

interface-id—An interface ID or a list of interface IDs.

Command Mode

Privileged EXEC mode

User Guidelines

When an LLDP packet contains too much information for one packet, this is called overloading.

The command calculates the overloading status of the current LLDP configuration, not for the last LLDP packet that was sent.

Example

switchxxxxxx# show lldp interfaces gi11 tlvs-overloading
gi11:
          TLVs Group          |  Bytes  |      Status
 ---------------------------- + ------- + ----------------
                    Mandatory |      22 |    Transmitted
        LLDP-MED Capabilities |       9 |    Transmitted
    LLDP-MED Network Policies |      10 |    Transmitted
                     Optional |      20 |    Transmitted
                        802.1 |       8 |    Transmitted
Total: 69 bytes
Left: 1419 bytes

show lldp local-device

To show LLDP information that is advertised from specific interfaces, use the show lldp local-device Privileged EXEC mode command.

Syntax

show lldp [interfaces interface-id] local-device

Parameters

interfaces interface-id—(Optional) Specifies an interface ID or a list of interface IDs. If not specified, the command displays some common information of local device.

Command Mode

Privileged EXEC mode

Examples

Example 1—The following example displays the LLDP local device information that is advertised from fa11:

switchxxxxxx# show lldp interfaces gi11 local-device
Device ID: 00:E0:4C:86:70:01
Port ID: gi11
System Name: switchxxxxxx
Capabilities: Bridge
System description: 28-Port Gigabit PoE Smart Switch
Port description:
Time To Live: 120
802.1 PVID: 1
LLDP-MED capabilities: Capabilities, Network Policy
LLDP-MED Device type: Network Connectivity

Example 2—The following example displays the LLDP local device information:

switchxxxxxx# show lldp local-device
LLDP Local Device Information:
 Chassis Type : Mac Address
 Chassis ID   : DE:AD:BE:EF:01:02
 System Name  : SwitchEF0102
 System Description  :
 System Capabilities Support : Bridge
 System Capabilities Enable  : Bridge
 Management Address : 192.168.1.254(IPv4)

show lldp med

To display the LLDP MED configuration for specific interfaces, use the show lldp med Privileged EXEC mode command.

Syntax

show lldp [interfaces interface-id] med

Parameters

interfaces interface-id—(Optional) Specifies an interface ID or a list of interface IDs. If not specified, the command displays information for all interfaces.

Command Mode

Privileged EXEC mode

Examples

Example 1—The following example shows the LLDP MED configuration for all interfaces:

switchxxxxxx# show lldp med
Fast Start Repeat Count: 3
 lldp med network-policy voice: auto
 Port   | Capabilities  | Network Policy | Location | Inventory | POE
 ------ + ------------- + -------------- + -------- + ----------+ -----
    gi1 |           Yes |            Yes |       No |        No |   No
    gi2 |           Yes |            Yes |       No |        No |   No
    gi3 |           Yes |            Yes |       No |        No |   No
    gi4 |           Yes |            Yes |       No |        No |   No
    gi5 |           Yes |            Yes |       No |        No |   No
    gi6 |           Yes |            Yes |       No |        No |   No
    gi7 |           Yes |            Yes |       No |        No |   No
    gi8 |           Yes |            Yes |       No |        No |   No
    gi9 |           Yes |            Yes |       No |        No |   No
   gi10 |           Yes |            Yes |       No |        No |   No
   gi11 |           Yes |            Yes |       No |        No |   No
   gi12 |           Yes |            Yes |       No |        No |   No
   gi13 |           Yes |            Yes |       No |        No |   No
   gi14 |           Yes |            Yes |       No |        No |   No
   gi15 |           Yes |            Yes |       No |        No |   No
   gi16 |           Yes |            Yes |       No |        No |   No
   gi17 |           Yes |            Yes |       No |        No |   No
   gi18 |           Yes |            Yes |       No |        No |   No
   gi19 |           Yes |            Yes |       No |        No |   No
   gi20 |           Yes |            Yes |       No |        No |   No
   gi21 |           Yes |            Yes |       No |        No |   No
   gi22 |           Yes |            Yes |       No |        No |   No
   gi23 |           Yes |            Yes |       No |        No |   No
   gi24 |           Yes |            Yes |       No |        No |   No
   gi25 |           Yes |            Yes |       No |        No |   No
   gi26 |           Yes |            Yes |       No |        No |   No
   gi27 |           Yes |            Yes |       No |        No |   No
   gi28 |           Yes |            Yes |       No |        No |   No

Example 2—The following example shows the LLDP MED configuration for gi11:

switchxxxxxx# show lldp interfaces gi11 med
 Port   | Capabilities  | Network Policy | Location | Inventory | POE
 ------ + ------------- + -------------- + -------- + ----------+ -----
   gi11 |           Yes |            Yes |       No |        No |   No
Port ID: gi11
Network policies:

show lldp neighbor

To show information about neighboring devices discovered using LLDP, use the show lldp neighbor Privileged EXEC mode command.

Syntax

show lldp [interfaces interface-id] neighbor

Parameters

interfaces interface-id—(Optional) Specifies an interface ID or a list of interface IDs. If not specified, the command displays information for all interfaces.

Command Mode

Privileged EXEC mode

User Guidelines

A TLV value that cannot be displayed as an ASCII string is displayed as an hexadecimal string.

Example

switchxxxxxx# show lldp neighbor
Port | Device ID  |  Port ID   |  SysName      |  Capabilities  |  TTL
---- + ---------- + ---------- + ------------ + ------------ + -----

The following table describes the significant fields shown in the example:

Field

Description

Port

Local port number.

Device ID

The neighbor device’s configured ID (name) or MAC address.

Port ID

The neighbor device’s port ID.

SysName

The neighbor device’s administratively assigned name.

Capabilities

The capabilities discovered on the neighbor device. Possible values are:

  • B - Bridge

  • R - Router

  • W - WLAN Access Point

  • T - Telephone

  • D - DOCSIS cable device

  • H - Host

  • r - Repeater

  • O - Other

TTL

Time interval in seconds after which the information for this neighbor is deleted.

show lldp statistics

To show the LLDP statistics for specific interfaces, use the show lldp statistics Privileged EXEC mode command.

Syntax

show lldp [interfaces interface-id] statistics

Parameters

interfaces interface-id—(Optional) Specifies an interface ID or a list of interface IDs. If not specified, the command displays information for all interfaces.

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show lldp interfaces gi1-2 statistics
LLDP Port Statistics:
        | TX Frames |         RX Frames          |          RX TLVs         | RX Ageouts
  Port  |   Total   | Total | Discarded | Errors | Discarded | Unrecognized |    Total
--------+-----------+-------+-----------+--------+-----------+--------------+----------
    gi1 |         0 |     0 |         0 |      0 |         0 |            0 |        0
    gi2 |         0 |     0 |         0 |      0 |         0 |            0 |        0

The following table describes the significant fields shown in the example:

Field

Description

Port

Identifier of interface.

TX Frames Total

Total number of transmitted frames.

RX Frames Total

Total number of received frames.

RX Frames Discarded

Total number of received frames that were discarded.

RX Frames Errors

Total number of received frames with errors.

RX TLVs Discarded

Total number of received TLVs that were discarded.

RX TLVs Unrecognized

Total number of received TLVs that were unrecognized.

RX Ageouts Total

Number of neighbor age outs on the interface.