[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

Show cdp neighbor quick ip

hello is there an easy way to do a show cdp neighbor to where i can get just the ip of my neighbors?

i know show cdp neighbor brief works, but i still get other information. all that i want is the ip address of the neighbors is that possible
0
mrbayIt
Asked:
mrbayIt
  • 3
  • 2
1 Solution
 
RafaelCommented:
Try this

device#sh cdp neighbors detail | inc IP    


Yes the IP is uppercase so make sure you type it as above.


HTH
-Rafael
0
 
mrbayItAuthor Commented:
fast and correct thank you so much
0
 
mrbayItAuthor Commented:
one more thing, is it possible to get the name of the switch alongside the ip as well?
0
 
RafaelCommented:
sh cdp neighbors detail | inc Device ID

there is a way to get them on the same command but I believe it is based on the IOS.  Let me check my lab.
0
 
mrbayItAuthor Commented:
ok thank you, i am using ios-xe
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now