Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

CDP confusion


Can some one post the link or good documentation where I can find information about how CDP works and what i can do with the help of it? How CDP learns the hostname of remote devices and all?


Devang Patel

Cisco Employee

Re: CDP confusion


There is not interaction between the hostname resolution used by the router and the hostname received via CDP. So you can't use the CDP hostname to telnet to the remote device unless this hostname is also configured in your DNS or locally on the router using the "ip host" command.


Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600

Re: CDP confusion


Thanks for your input! I had some strange situation in switching environment, under show cdp nei details I was able to see the IP address of VLAN interface but when I tried to telnet it I wasnt able to do that but when I tried using device name I was able to. but the hostname bind to different IP address in DNS system. Finally i did trace route and I found router is trying to telnet the CDP neighbor via WAN link not the directly connected ethernet where it learned neighbor using CDP... so that stuff create confusion in my mind!

thanks again!

Devang Patel

Hall of Fame Super Gold

Re: CDP confusion

Configuring Cisco Discovery Protocol on Cisco Routers and Switches Running Cisco IOS

Hope this helps.

New Member

Re: CDP confusion

Thanks all of you for links! so here we can see the neighbor IP address as well as host name! so I can telnet to device using hostname also there I dont need to have any kind of DNS name server configuration to resolve right? as CDP is learning it using the TLV! right!!!


Devnag Patel

CreatePlease to create content