Hot Downloads



The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: show cdp neighbor detail

show cdp neighbor detail 15 years 4 months ago #2484

  • indebluez
  • indebluez's Avatar Topic Author
  • Offline
  • Distinguished Member
  • Distinguished Member
  • Posts: 114
  • Thank you received: 0
hey guys whats the difference betwn
show ip route AND
show cdp neighbor detail....

also one more thing.....
how many valid host ip addresses in class B network??
i thawt it was 2^8 + 2^8....but its not is it...

thanx lotsssssssss again

Re: show cdp neighbor detail 15 years 4 months ago #2485

Question one :
Show cdp neigh det will show you all the neighbouring Cisco hardware (routers and switches).. it uses a protocol called Cisco Discovery Protocol (CDP) to give you information on the type of device, what interface its connected to, how much RAM it has, etc etc.

sho ip route on the other hand shows you your routers internal routing table for the IP protocol. This will show you every single network it knows how to reach.. and it doesn't matter if the other routers it knows about are Cisco or not.

Furthermore CDP sends out information every few seconds to update its CDP database whereas show IP route relies on the routing protocol to build the routing entries.

They are two very very different concepts.. make sure you get the fundamentals correct. IP routing tables are the heart of the routing.. CDP is usually turned off because (IMNSHO) it just generates a bunch of traffic that you really don't need.

I've been nice enough to set up a lab in Boson router sim and show you the output from both the commands in a really simple setup (I'll expect the cheque within 15 days ;)):

Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route

Gateway of last resort is not set
C is directly connected,
R [120/1] via, 00:03:21, Ethernet0

and now

Router#sho cdp neigh det
Device ID: Router
Entry address(es):
IP address:
Platform: Boson 2516 , Capabilities: Router
Interface: Eth0, Port ID (outgoing port): 4
Holdtime: 161 sec

Version :
Boson Operating System Software
Software, Version 12.0(16), RELEASE SOFTWARE (fc2)
Copyright (c) 1986-2001 by Systems, Inc.
Compiled Fri 02-Mar-01 17:34 by dchih

See the difference ?

As far as question two is concerned :

65,536 possible IP's not excluding the ones you cant use.
The formula should be 2^8 * 2^8.. thats 256 into 256... the reason your formula is wrong is as follows :

lets say the IP is 172.16.x.y
your formula says that there can only be 256x + 256y = 512 possible IPs.. but in reality for every value of x you can have 256 possible y values.. if you get what I mean. Thus you multiply.

in other words :

uhmm.. I think you've got it by now ;)[/code]
Sahir Hidayatullah. Staff - Associate Editor & Security Advisor
  • Page:
  • 1
Time to create page: 0.114 seconds


Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V


  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup