CDP and LLDP configuration 3​

Topology

Tasks:

A company has deployed a hybrid network infrastructure that includes two Cisco switches and end devices from different vendors. SW1 and SW2, the switches must be configured to support both vendor-specific and vendor-neutral neighbor discovery protocols based on the type of connection and device.

  1. Configure the Fa0/2 interface on both switches for neighbor discovery using the vendor-neutral standard protocol currently disabled.
  2. Configure Fa0/1 on both switches for neighbor discovery using the Cisco proprietary protocol currently diabled.
  3. Configure the Fa0/3 interface on both switches to only receive information using vendor-neutral standard protocol

Solution:

Task 1: Configure the Fa0/2 interface on both switches for neighbor discovery using the vendor-neutral standard protocol currently disabled.

The Fa0/2 interface on both switches will be configured to use LLDP for neighbor discovery. LLDP (Link Layer Discovery Protocol) is the standard discovery protocol and it is vendor neutral, which means it is supported by devices of all vendors.

On SW1:

SW1# configure terminal
SW1(config)# lldp run
SW1(config)# interface f0/2
SW1(config-if)# lldp transmit
SW1(config-if)# lldp receive
SW1(config-if)# exit

On SW2:

SW2# configure terminal
SW2(config)# lldp run
SW2(config)# interface f0/2
SW2(config-if)# lldp transmit
SW2(config-if)# lldp receive
SW2(config-if)# exit

LLDP is disabled by default on Cisco switches. LLDP is enabled by using lldp run command and LLDP is enabled on the interface using lldp transmit and lldp receive commands.

 

Task 2: Configure Fa0/1 on both switches for neighbor discovery using the Cisco proprietary protocol.

CDP (Cisco discovery protocol) is a Cisco proprietary protocol which is not vendor neutral and is only supported by Cisco devices. It is used for discovering and communicating with other Cisco devices.

On SW1:

SW1(config)# cdp run
SW1(config-if)# interface f0/1
SW1(config-if)# cdp enable
SW1(config-if)# exit

On SW2:

SW2(config)# cdp run
SW2(config-if)# interface f0/1
SW2(config-if)# cdp enable
SW2(config-if)# exit

CDP is enabled by using cdp run command it is enabled on the interface using cdp enable command.

 

Task 3: Configure the Fa0/3 interface on both switches to only receive information using vendor-neutral standard protocol

The lldp transmit and lldp receive commands enable the interface to transmit and receive neighbour information. To configure the interface to only receive information we need to disable the transmit command.

On SW1:

SW1(config-if)# interface f0/3
SW1(config-if)# no lldp transmit
SW1(config-if)# exit

On SW2:

SW2(config-if)# interface f0/3
SW2(config-if)# no lldp transmit
SW2(config-if)# exit

Now exit the configuration mode and save the configuration.

SW1(config)# end
SW1# write memory

SW2(config)# end
SW2# write memory

 

Packet Tracer File

Clicking this button will begin the download of a ZIP file. Inside the ZIP file, you'll find a Packet Tracer Activity (.pka) file, which will automatically track your progress as you configure the network.