List of Mac address

Unanswered Question
Nov 26th, 2008

I have 4 switches connected like: Router->A->B->C->D. I need to get Mac-Address of machines connected to only switch-B ports.

When I do

Switch-B#show Mac-address

It will showing all the mac-address of other switches connected machine IP address.

Thanks in Advance

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
ariesc_33 Wed, 11/26/2008 - 22:03

Use this command on switch B

show mac-address-table interface fastEthernet

OR just

show mac-address-table

and make note of ports that are connected to another switch

johnlloyd_13 Wed, 11/26/2008 - 23:35

in addition to the show mac-address-table interface, in switch B do a show cdp neighbor to know the interface connections of your peer devices (if it's cisco).

Davy Ad Thu, 11/27/2008 - 07:15

Hi Ranga,

Do "show arp" it will show you tha Mac and IP address

HTH

DAK

Richard Burts Thu, 11/27/2008 - 13:05

DAK

Assuming that these are layer 2 switches, then show arp will only show addresses (IP and MAC) of devices that have been accessed by the management interface of that switch). This is likely to be much less than all the switches connected to B. And it would show any address on A or C or D that had been accessed by the management interface.

Ranga

If these switches are daisy chained as shown in your post (through A to get to B, through A and B to get to C, through A and B and C to get to D) then it is in the nature of layer 2 switching that the mac address table on B will include all devices connected to any of the switches. The only thing you can do is show mac-address-table and exclude any address that is associated with the interface to A or to C. I do not know an automated way to do this.

HTH

Rick

Actions

This Discussion