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
Requirements
- 1CDP runs on the switch
- 2LLDP runs on the switch
- 3LLDP messages are sent every 20 seconds and held for 60
- 4CDP is disabled on Gi0/2, the link to the provider
- 5LLDP is disabled in both directions on Gi0/2
- 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.