CDP Configuration with Packet Tracer

CDP Packet Tracer Example

Packet Tracer CDP Configuration

As we talked about in the previous article, CDP is Cisco specific. In this article, we will discuss how to configure the CDP in Cisco IOS.

You can DOWNLOAD the Packet Tracer example with .pkt format HERE.


For all Packet Tracer Examples and Files, you can check Packet Tracer Labs Page.


For our example, the below topology is used.

CDP Configuration Topology
 

CDP Configuration Topology
Above, there is a L2 swith, a L3 switch, a router, an IP Phone and a PC are connected to the central switch.

We will not talk about the configuration of the central switch, but we will talk about the general CDP configuration commands.

To enable CDP globally, use “cdp run” on the router configuration mode.

Switch(config)# cdp run

To enable CDP on a specific interface, use “cdp enable” command on the interface configuration mode.By default CDP is already enabled. You can also disable CDP by using “no cdp enable” command.

Switch(config-if)# cdp enable
Switch(config-if)# no cdp enable

To configure cdp hello time and hold time, you can use the below commands. Time is mentioned as seconds.

Switch(config)# cdp timer 50
Switch(config)# cdp holdtime 100

To clear the CDP table, use the “clear cdp table” command.

Switch# clear cdp table

To verify CDP, you can use general CDP verification commands below:

Switch# show cdp
Switch# show cdp interface
Switch# show cdp neighbors
Switch# show cdp entry
Switch# show cdp traffic

In our topology, for the central switch, “show cdp neighbours” and “show cdp interface” command outputs are showed below.

Switch>show cdp neighbors 
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID    Local Intrfce   Holdtme    Capability   Platform    Port ID
IP Phone     Fas 0/4          124            H P     7960         
Switch       Fas 0/6          124                    3560        Fas 0/1
Switch       Fas 0/2          124            S       2960        Fas 0/2
Router       Fas 0/5          124            R       C2800       Fas 0/0
Switch       Fas 0/1          124            S       2950        Fas 0/1

For all Packet Tracer Examples and Files, you can check Packet Tracer Labs Page.


We're Sorry!
Full Access is for only IPCisco Crew...
With IPCisco Membership, You Can Access:
• All Certification Courses (Cisco, Juniper, Nokia and Huawei),
• Thousands of Questions (Lesson Quizes and Special Quiz Section),
• Carieer Consultancy, CV/Resume Check, Career Advice Meeting,
• Cheat Sheets, Job Interview Trainings, Network Tools,
You will be Member of a Big IPCisco Community,
You will Learn Network Lessons with Always,
New And Different Learning Styles!
We are waiting for you!

Lesson tags: CDP, neighbor discovery, cisco IOS, packet tracer, cisco packet tracer
Back to: Cisco Hands On Course (With Packet Tracer) > Neighbor Discovery Configurations

Leave a Reply

Your email address will not be published. Required fields are marked *




Cisco Hands On Course (With Packet Tracer)