CCNA Course in Urdu Lab 3 Part 1 Cisco Internetworking Operating System (IOS)

 

CCNA Course in Urdu Lab 3 Part 1 Cisco Internetworking Operating System (IOS)



LAB#03

CISCO DISCOVERY PROTOCOL (CDP) & TELNET

 

 

By the help of CDP, we can gather information about the neighbouring and remote devices attached to our Cisco router. CDP is a proprietary protocol used to gather software and protocol information about the neighbouring and remote devices.

 

CDP timerà how often the CDP packets are transmitted out all active interfaces

CDP holdtimeà amount of time that the device will hold packets received from neighbour device

 

Router#show cdp

Global CDP information:

            Sending CDP packets every 60 seconds

            Sending a holdtime value of 180 seconds

            Sending CDPv2 advertisements is enabled

 

Router#cdp timer ?

            <5-254>   Rate at which CDP packets are sent (in  sec)

Router#cdp holdtime ?

            <10-255> Length of time (in sec) that receiver must keep this packet

 

Click Here To View Video Lecture in Urdu:

 

Lab 3 Video

 

 

GATHERING NEIGHBOUR INFORMATION


Router#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater
 
Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
lab-7206         Eth 0              157          R        7206VXR   Fas 0/0/0
lab-as5300-1     Eth 0              163          R        AS5300    Fas 0
lab-as5300-2     Eth 0              159          R        AS5300    Eth 0
lab-as5300-3     Eth 0              122          R        AS5300    Eth 0
lab-as5300-4     Eth 0              132          R        AS5300    Fas 0/0
lab-3621         Eth 0              140         R S       3631-telcoFas 0/0
008024 2758E0    Eth 0              132          T        CAT3000   1/2
 

Note: cdp packet can’t pass through switch; therefore, we can’t see the devices attached to an intermediate switch with our router.

 

Router#sh cdp neighbors detail          Or        sh cdp entry * protocols         Or            sh cdp entry * version

 

This will give detailed information about the neighbours.

 

 


GATHERING INTERFACE TRAFFIC INFORMATION

 

router# show cdp traffic
 
Total packets output: 543, Input: 333
Hdr syntax: 0, Chksum error: 0, Encaps failed: 0
 
No memory: 0, Invalid: 0, Fragmented: 0
CDP version 1 advertisements output: 191, Input: 187
CDP version 2 advertisements output: 352, Input: 146

 

 

GATHERING PORT & INTERFACE INFORMATION

 
 
To display information about the interfaces on which Cisco Discovery Protocol is enabled.
 
Router#sh cdp interface
Serial0/1/0 is up, line protocol is up, encapsulation is SMDS
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
FastEthernet0/0 is up, line protocol is up, encapsulation is ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
 
 

DISABLING CDP ON AN INTERFACE

 

By default, CDP is enabled on all interfaces of a router, to disable it on a particular interface, we have to issue this command:

 

Router#config t

Router(config)#interface serial 0/1/0

Router(config-if)#no cdp enable

Router(config-if)#do show cdp interface

FastEthernet0/0 is up, line protocol is up, encapsulation is ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds

 

We can see that the serial 0/1/0 is no more included in the output.

Click Here To View Video Lecture in Urdu:

 

Lab 3 Video