Cisco Systems 3750E manual Disabling and Enabling Lldp on an Interface, 28-5

Models: 3750E

1 1236
Download 1236 pages 40.08 Kb
Page 625
Image 625

Chapter 28 Configuring LLDP and LLDP-MED

Configuring LLDP and LLDP-MED

This example shows how to disable LLDP.

Switch# configure terminal

Switch(config)# no lldp run

Switch(config)# end

This example shows how to enable LLDP.

Switch# configure terminal

Switch(config)# lldp run

Switch(config)# end

Disabling and Enabling LLDP on an Interface

LLDP is enabled by default on all supported interfaces to send and to receive LLDP information.

Note If the interface is configured as a tunnel port, LLDP is automatically disabled.

Beginning in privileged EXEC mode, follow these steps to disable LLDP on an interface.

 

Command

Purpose

Step 1

 

 

configure terminal

Enter global configuration mode.

Step 2

 

 

interface interface-id

Specify the interface on which you are disabling LLDP, and enter

 

 

interface configuration mode.

Step 3

 

 

no lldp transmit

No LLDP packets are sent on the interface.

Step 4

 

 

no lldp receive

No LLDP packets are received on the interface.

Step 5

 

 

end

Return to privileged EXEC mode.

Step 6

 

 

copy running-config startup-config

(Optional) Save your entries in the configuration file.

 

 

 

 

Beginning in privileged EXEC mode, follow these steps to enable LLDP on an interface when it has been

 

disabled:

 

 

 

 

 

Command

Purpose

Step 1

 

 

configure terminal

Enter global configuration mode.

Step 2

 

 

interface interface-id

Specify the interface on which you are enabling LLDP-MED, and

 

 

enter interface configuration mode.

Step 3

 

 

lldp transmit

LLDP packets are sent on the interface.

Step 4

 

 

lldp receive

LLDP packets are received on the interface.

Step 5

 

 

end

Return to privileged EXEC mode.

Step 6

 

 

copy running-config startup-config

(Optional) Save your entries in the configuration file.

 

 

 

This example shows how to enable LLDP on an interface.

Switch# configure terminal

Switch(config)# interface GigabitEthernet1/0/1

Switch(config-if)# lldp transmit

Switch(config-if)# lldp receive

Switch(config-if)# end

Catalyst 3750-E and 3560-E Switch Software Configuration Guide

 

OL-9775-02

28-5

 

 

 

Page 625
Image 625
Cisco Systems 3750E manual Disabling and Enabling Lldp on an Interface, 28-5