List of Mac address

Unanswered Question
Nov 26th, 2008
User Badges:

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
User Badges:

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
User Badges:
  • Blue, 1500 points or more

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
User Badges:

Hi Ranga,

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

HTH

DAK

Richard Burts Thu, 11/27/2008 - 13:05
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

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