Configuring LLDP

Configuring Interface LLDP Commands

This example shows how to configure the global LLDP hold time to 200 seconds:

switch# configure terminal switch(config)# lldp holdtime 200 switch(config)#

This example shows how to to enable LLDP to send or receive the management address TLVs:

switch# configure terminal

switch(config)# lldp tlv-selectmanagement-addressswitch(config)#

Configuring Interface LLDP Commands

To configure the LLDP feature for a physical Ethernet interface, perform this task:

Procedure

 

Command or Action

Purpose

Step 1

switch# configure terminal

Enters configuration mode.

Step 2

switch(config)# interface type slot/port

Selects the interface to change.

Step 3

switch(config-if)# [no] lldp {receive

Sets the selected interface to either receive or

 

transmit}

transmit.

 

 

The no form of the command disables the LLDP

 

 

transmit or receive.

Step 4

(Optional)switch#show lldp

Displays LLDP configurations.

This example shows how to set an interface to transmit LLDP packets:

switch# configure terminal switch(config)# interface ethernet 1/2 switch(config-if)# lldp transmit

This example shows how to configure an interface to disable LLDP:

switch# configure terminal switch(config)# interface ethernet 1/2 switch(config-if)# no lldp transmit switch(config-if)# no lldp receive

This example shows how to display LLDP interface information:

switch# show lldp interface ethernet 1/2 tx_enabled: TRUE

rx_enabled: TRUE

dcbx_enabled: TRUE

Port MAC address: 00:0d:ec:a3:5f:48 Remote Peers Information

No remote peers exist

This example shows how to display LLDP neighbor information:

switch# show lldp neighbors LLDP Neighbors

Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)

OL-26590-01

129

Page 143
Image 143
Cisco Systems N3KC3064TFAL3, N3KC3048TP1GE manual Configuring Interface Lldp Commands, Transmit