(ETA: What if you can't get to the Console port? How do you get the IP address of the switch in order to SSH or (if you must) Telnet in?)Ĭouldn't you just use CDP? #show cdp nei detail will show you the ip of the connected devices. The amazing thing to me is, this far into the 21st Century, this is still the only way I could find to get this information - i.e.
#Cmd show mac address mac
Also, 'sh ip arp | i 0/24' will show just the MAC address(es) on that port.) If you're all Cisco, 'show cdp neighbor' (or 'sh cdp nei') will get you to the next switch. (Small tip: When you see a large number of MAC addresses showing up on a single port, there's a switch on that port into which those MAC addresses are connected. The command ' show mac address-table' displays the mac address associated with each switch port and how each mac address has been learned. It helps to Ping the subnet's broadcast address (e.g. To see the switch base MAC address only, the simplest command to use is, SW2show version include ethernet. However, computers connected to the same TCP/IP local network can determine each others MAC addresses. Possible values are described in the Enabled Field section under Common Output Fields Description. Simply stated, a computers own hardware configuration determines its MAC address while the configuration of the network it is connected to determines its IP address. Table 1: show interfaces mac-database Output Fields.
![cmd show mac address cmd show mac address](https://cdn.appuals.com/wp-content/uploads/2017/08/Find-MAC-Address-2.png)
![cmd show mac address cmd show mac address](https://networkinterview.com/wp-content/uploads/2020/04/WAYS-TO-FIND-MAC-ADDRESS-command1.jpg)
:^D After beating Google to death over it, hoping for some useful tool, I ended up using exactly the same process (plus the online MAC address lookup to ID the device manufacturer), so I can affirm this works perfectly, if you work it.Īs you can see, the 'sh arp' or 'sh ip arp' commands also give you the MAC addresses, so essentially the 'sh mac add' is only to get the port in which the device is connected. These two addresses originate from different sources. Thanks for posting this *after* I finished a "What's Connected Where" jihad on our network.