Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mac Addresses and Interfaces

Status
Not open for further replies.

dangerousdom

Programmer
Oct 9, 2002
72
GB
Is it possible to see which MAC addresses are contected to which Interfaces on the Switch??

Thanks a lot
 
sh mac-address-table

This will tell you what MACs are on the other end of the switch interface...

sh int

This will tell you the physical MAC of each physical switchport interface.

Burt
 
If you know a MAC address and want to know which interface it is connected to, you can use:

sh mac-address-table | in xxxx.xxxx.xxxx
 
If you are lazy you can type "sh mac- | inc zzzz"
where the mac address is xxxx.yyyy.zzzz.

If you know the interface on which the mac address appears (or this example it will be g0/2, you can type "sh mac- | inc 0/2".

Also if you want to see all the mac addresses directly connected to a specific switch, use the exclude command on the uplink port g0/1...."sh mac- | exc 0/1".
 
one other trick is if you know the ip address...ping the ip address and then do a show arp...this displays the mac address..then you can do what jdeisenm says to do...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top