Tuesday, December 5, 2017

Finding out what port devices are plugged into: Cisco

Telnet to switch
login,
(it would be a good idea to enable logging before running these)
enable

switch#>sh arp

this will give the mac/ip list

switch#>show mac address-table

This will give mac/port

I enabled logging so I had a notepad with all the data.
Manually went in and made it a CSV, there might be a way to do this automatically, but I didn't do it that way...

In the end, after manipulating the data in excel, I ended up with a workable list of IP, MAC, and Port numbers.  I figured nslookup is easy enough to find out what the device is via the IP, but I guess you could go to DNS/DHCP also.

No comments:

Post a Comment

Samsung refrigerator not making ice

How I got my stupid fridge to work again. Normally, I press/hold the blue button till it chimes. Well that didn’t work this time. Darn. I re...