Scenario

SW1 connects to your own distribution switch SW2 on Gi0/1 and to a provider's equipment on Gi0/2. CDP is on by default, which is Cisco-only. Your monitoring tool needs LLDP as well, the open standard, which is off by default. LLDP messages should go out every 20 seconds and be held for 60. Neither protocol should reveal anything to the provider on Gi0/2, because they announce the model, software version and addresses of your switch.

Topology

SW2SW1Provider

Requirements

  1. 1CDP runs on the switch
  2. 2LLDP runs on the switch
  3. 3LLDP messages are sent every 20 seconds and held for 60
  4. 4CDP is disabled on Gi0/2, the link to the provider
  5. 5LLDP is disabled in both directions on Gi0/2
  6. 6CDP and LLDP both stay active on Gi0/1, the link to SW2

SW1 runs CDP with default timers and LLDP is off. Type ? for the commands you can use. Start with: enable

SW1> show running-config

CCNA lab · about 10 min

CDP and LLDP: discover neighbours, hide from outsiders

Run LLDP next to CDP, tune its timers, keep both protocols on the link to your own switch and switch them off on the port that faces an outside network.

This lab is included in the CCNA plans and in the free trial.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

SW1 connects to your own distribution switch SW2 on Gi0/1 and to a provider's equipment on Gi0/2. CDP is on by default, which is Cisco-only. Your monitoring tool needs LLDP as well, the open standard, which is off by default. LLDP messages should go out every 20 seconds and be held for 60. Neither protocol should reveal anything to the provider on Gi0/2, because they announce the model, software version and addresses of your switch.

About 10 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Is this a real Cisco switch?

No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one switch, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

What is the difference between CDP and LLDP?

CDP is Cisco-proprietary and on by default on Cisco gear. LLDP is the IEEE 802.1AB open standard and works between vendors. Both are Layer 2 protocols that only reach directly connected neighbours.

Why disable discovery protocols on some ports?

They reveal model, software, addresses and VLANs to anyone on the link. It is good practice to switch them off on ports facing users, other organisations or the Internet.

What does show cdp neighbors tell me?

The directly connected devices: their name, the local and remote interface, the hold time, the platform and the capability (router, switch). It is a quick way to check which cable goes where.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.