• Home
  • Exams
    Microsoft
    AI-102 (Designing and Implementing) AI-900 (AI Fundamentals) AZ-104 (Administrator) AZ-140 (Configuring and Operating) AZ-204 (Developing Solutions) AZ-305 (Designing Infrastructure Solutions) AZ-400 (DevOps Solutions) AZ-500 (Security Technologies) AZ-700 (Designing and Implementing)
    All Microsoft Exams
    Amazon
    CLF-C01 (Cloud Practitioner) DBS-C01 (Database - Specialty) DVA-C01 (Developer Associate) SCS-C01 (Security - Specialty) SAA-C02 (Solutions Architect Associate) SAA-C03 (Solutions Architect Associate) SAP-C01 (Solutions Architect Professional) SOA-C02 (Certified SysOps Administrator Associate) DOP-C01 (DevOps Engineer Professional)
    All Amazon Exams
    Cisco
    200-201 (CBROPS) 200-301 (CCNA) 200-901 (DEVASC) 300-410 (ENARSI) 300-415 (ENSDWI) 300-420 (ENSLD) 300-425 (ENWLSD) 300-430 (ENWLSI) 300-715 (SISE) 350-401 (ENCOR) 350-501 (SPCOR) 350-601 (DCCOR) 350-701 (SCOR) 350-801 (CLCOR) 400-007 (CCDE)
    All Cisco Exams
    CompTIA
    220-1101 (A+ Core 1) 220-1102 (A+ Core 2) CAS-004 (Advanced Security Practitioner) CS0-002 (CySA+) CV0-003 (Cloud+) FC0-U61 (IT Fundamentals) N10-008 (Network+) PK0-004 (Project+) PT0-002 (PenTest+) SK0-005 (Server+) SY0-601 (Security+) XK0-004 (Linux+)
    All CompTIA Exams
    Google
    Associate Cloud Engineer Cloud Digital Leader Professional Cloud Architect Professional Cloud Security Engineer Professional Data Engineer
    All Google Exams
    Huawei
    H11-851 (HCNA-VC) H12-211 (HCIA Routing&Switching) H12-221 (HCNP-RS-IERN) H12-224 (HCNP-RS Fast Track) H12-711 (HCNA-Security-CBSN) H13-612 (HCNA-Storage-BSSN) H13-629 (HCIE-Storage)
    All Huawei Exams
    Python
    Python Programming (PCAP)
    All Python Exams
    Juniper
    JN0-104 (JNCIA-Junos) JN0-251 (JNCIA-MistAI)
    All Juniper Exams
    Fortinet
    NSE4_FGT-7.0 (FortiOS 7.0) NSE4_FGT-7.2 (FortiOS 7.2) NSE5_FAZ-7.0 (FortiAnalyzer 7.0) NSE5_FCT-7.0 (FortiClient EMS 7.0) NSE5_FMG-7.0 (FortiManager 7.0) NSE7_EFW-7.0 (Enterprise Firewall 7.0) NSE7_SDW-7.0 (SD-WAN 7.0 ) NSE8_812 (Written Exam)
    All Fortinet Exams
  • LabsNew
    CCNA 200-301
    Introduction IOS Operating System IPv4 Address Configure Serial and Loopback Interfaces IPv6 Address Configuration, Verification, and Troubleshooting IPv6 Address Autoconfiguration and EUI-64 Understanding ARP and Proxy ARP Configuring Standard VLANs Configuring VTP Clients and Servers Configuring VTP Transparent Mode Securing VTP Domains Switch Access Port Security Advanced Switch Access Port Security Advanced Static Switch Access Port Security Disabling Auto-negotiation of Trunking Configuring Dynamic Trunking Configuring Default Gateways Cisco Discovery Protocol (CDP) Configuring LLDP on Cisco Devices Configuring Errdisable Recovery Configuring Inter-VLAN Routing with Router on a Stick (RoaS) Inter-VLAN Routing Using Switched Virtual Interfaces (SVI) Configuring Static Routing via Ethernet Interfaces Configuring Static Routing via IP addresses Configuring and Naming Static Routes Configuring Default Static Routes Configuring IPv6 Static Routes Configuring IPv6 Default Routes Configuring IP Floating Static Routes Configuring RIP Version 2 RIPv2 Network Summarization Configuration
  • ToolboxNew
    IPv4 Subnet Calculator
    IPv4 Wildcard Mask Calculator
    HTML Encoder and Decoder
    URL Encoder and Decoder
    Random Password Generator
  • Net Sec ToolsNew
    Cisco Packet Tracer
    GNS3
    EVE-NG
    Wireshark
    Postman
    Nmap
    Curl
    Nessus
    Burp Suite
  • Sign Up
  • Login

  • Logo

    Labs

    • Lab 1: Introduction to CISCO 200-301 Labs
    • Lab 2: Cisco IOS Operating System
    • Lab 3: IPv4 Address Configuration, Verification, and Troubleshooting on Cisco Routers
    • Lab 4: IPv6 Address Configuration, Verification, and Troubleshooting on Cisco Routers
    • Lab 5: IPv6 Address Autoconfiguration and EUI-64 Addressing on Cisco Routers
    • Lab 6: Understanding ARP and Proxy ARP on Cisco Routers
    • Lab 7: Configuring Standard VLANs on Catalyst Switches
    • Lab 8: Configuring VTP Clients and Servers on Cisco Catalyst Switches
    • Lab 9: Configuring VTP Transparent Mode on Cisco Catalyst Switches
    • Lab 10: Securing VTP Domains on Cisco Catalyst Switches
    • Lab 11: Configuring Switch Access Port Security on Cisco Catalyst Switches
    • Lab 12: Configuring Advanced Switch Access Port Security on Cisco Catalyst Switches
    • Lab 13: Configuring Advanced Static Switch Access Port Security on Cisco Catalyst Switches
    • Lab 14: Disabling Auto-negotiation of Trunking on Cisco Catalyst Switches
    • Lab 15: Configuring Dynamic Trunking on Cisco Switchports
    • Lab 16: Configuring Default Gateways for Cisco Routers and Switches
    • Lab 17: Understanding Cisco Discovery Protocol (CDP)
    • Lab 18: Configuring LLDP on Cisco Devices
    • Lab 19: Configuring Errdisable Recovery on Cisco Switches
    • Lab 20: Configuring Inter-VLAN Routing with Router on a Stick (RoaS)
    • Lab 21: Configuring Inter-VLAN Routing Using Switched Virtual Interfaces (SVI)
    • Lab 22: Configuring Static Routing via Ethernet Interfaces on Cisco Routers
    • Lab 23: Configuring Static Routing via IP addresses
    • Lab 24: Configuring and Naming Static Routes on Cisco Routers
    • Lab 25: Configuring Default Static Routes on Cisco Routers
    • Lab 26: Configuring IPv6 Static Routes on Cisco Routers
    • Lab 27: Configuring IPv6 Default Routes on Cisco Routers
    • Lab 28: Configuring IP Floating Static Routes on Cisco Routers
    • Lab 29: Configuring RIP Version 2 on Cisco Routers
    • Lab 30: RIPv2 Network Summarization Configuration on Cisco Routers

    Understanding Cisco Discovery Protocol (CDP)

    Objective

    The objective of this lab exercise is for you to learn and understand how to enable CDP and adjust CDP timers.

    Purpose

    Understanding CDP is a fundamental skill. CDP is a proprietary Cisco protocol used for device discovery and internetwork troubleshooting. As a Cisco engineer, as well as in the Cisco CCNA exam, you will be expected to know how to enable and use CDP in internetwork discovery and troubleshooting.

    Lab Topology

    Use the following topology to complete this lab exercise:

    Router Setup 1

    Task 1: Configure Hostnames

    Objective: Configure hostnames on R1 and SW1 as illustrated in the topology.

    Configuration:

    R1#conf t
    Enter configuration commands, one per line. End with CTRL/Z.
    R1(config)#hostname R1
    
    SW1#conf t
    Enter configuration commands, one per line. End with CTRL/Z.
    SW1(config)#hostname SW1

    Task 2: Configure IP Address on R1

    Objective: Configure an IP address of 172.29.100.1/24 on R1 F0/0.

    Configuration:

    R1#conf t
    Enter configuration commands, one per line. End with CTRL/Z.
    R1(config)#int fa0/0
    R1(config-if)#ip address 172.29.100.1 255.255.255.0
    R1(config-if)#no shut

    Task 3: Configure VLAN200 on SW1

    Objective: Configure VLAN200 on SW1 and name it CDP_VLAN. Configure interface VLAN200 on SW1 and assign it the IP address 172.29.100.2/24. Assign port FastEthernet0/2 on SW1 to this VLAN.

    Configuration:

    SW1#conf t
    Enter configuration commands, one per line. End with CTRL/Z.
    SW1(config)#vlan 200
    SW1(config-vlan)#name CDP_VLAN
    SW1(config-vlan)#exit
    SW1(config)#interface vlan 1
    SW1(config-if)#shut
    SW1(config-if)#exit
    SW1(config)#int vlan 200
    SW1(config-if)#no shut
    SW1(config-if)#ip address 172.29.100.2 255.255.255.0
    SW1(config-if)#exit
    SW1(config)#int f0/2
    SW1(config-if)#switchport mode access
    SW1(config-if)#switchport access vlan 200
    SW1(config-if)#end
    
    SW1#ping 172.29.100.1
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 172.29.100.1, timeout is 2 seconds:
    .!!!!
    Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms
    

    Task 4: Enable and Configure CDP

    Objective: Enable CDP on R1 and SW1 globally (it’s already on by default but you can practice the command). Configure R1 and SW1 to send CDP packets every 10 seconds. The timer command won’t work on Packet Tracer, so use live equipment or GNS3.

    Configuration:

    R1#conf t
    Enter configuration commands, one per line. End with CTRL/Z.
    R1(config)#cdp run
    R1(config)#cdp timer 10
    R1(config)#exit
    R1#show cdp interface fastethernet0/0
    FastEthernet0/0 is up, line protocol is up
      Sending CDP packets every 60 seconds
      Holdtime is 180 seconds
    
    SW1#conf t
    Enter configuration commands, one per line. End with CTRL/Z.
    SW1(config)#cdp run
    SW1(config)#cdp timer 10
    SW1(config)#end
    SW1#show cdp interface fastethernet0/2
    FastEthernet0/2 is up, line protocol is up
      Sending CDP packets every 60 seconds
      Holdtime is 180 seconds

    Task 5: Use CDP for Device Information

    Objective: Use CDP to see detailed information about SW1 from R1. Familiarize yourself with the information provided.

    Configuration:

    R1#show cdp neighbors detail
    
    Device ID: SW1
    Entry address(es):
      IP address : 172.29.100.2
    Platform: cisco 2960, Capabilities: Switch
    Interface: FastEthernet0/0, Port ID (outgoing port): FastEthernet0/2
    Holdtime: 140
    
    Version :
    Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 15.0(2)SE4, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2013 by Cisco Systems, Inc.
    Compiled Wed 26-Jun-13 02:49 by mnguyen
    
    advertisement version: 2
    Duplex: full

    NOTE: The show cdp neighbors detail command provides detailed information about devices. This is a very useful troubleshooting command as you can find out the IP addresses (and more) of connected devices and access them remotely. Try this command on SW1 and see the information you find out about on R1. Familiarize yourself with the contents of this command for both routers and switches.


    Task 6: Disable CDP

    Objective: Now disable CDP on the router interface and disable CDP globally on the switch.

    Configuration:

    R1#conf t
    Enter configuration commands, one per line. End with CTRL/Z.
    R1(config)#int fa0/0
    R1(config-if)#no cdp enable
    R1(config-if)#end
    R1#copy running-config startup-config
    
    SW1(config)#no cdp run
    SW1(config)#end
    SW1#copy running-config startup-config

    NOTE: The CDP entries will still remain until they time out. You can clear the entries with the clear cdp table command, and then issue show commands to check that there are no entries. Knowing how to disable CDP is an important security task for the CCNA exam.


    Cisco Packet Tracer file:
    Load and open the .pkt Lab file in Cisco Packet Tracer from here: Cisco_Discovery_Protocol_CDP.pkt

    © 2025 WinITExam.com
    Terms | Privacy | Refund | Contact