Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Show mac command

hi,

can anyone tell me the exact answer to this question.

Which command will show the MAC addresses of stations connected to switch ports?

A. show mac-address
B. show arp
C. show table
D. show switchport

now the option A cant be selected because only half of it is given so you ppl think answer B is right or still A must be chosen ?

Regards,

3 REPLIES
VIP Super Bronze

Show mac command

Hi,

It is B

BTW, there in no "show mac-address". The correct command is show mac address-table

HTH

Silver

Show mac command

Hi,

The question is unfortunately slightly misleading as you may find with more cisco focused tests (so please do not feel frustrated).

In my view the correct answer can only be "A".

The original form of the command in question was "show mac-address-table" which was later changed to "show mac address-table". But even the current IOS releases (there is quite different command used within CatOS) accept both versions of this command. So "show mac-address" can be viewed as the abbreviated version of the earlier version of the command (you can even use "show mac-" only if you wish to get the requested result).

The other answers are clearly nonsense, the "B" because if you have e.g. L2 switch then "sh arp" command will show you both the IP and MAC addresses of the stations recently contacted via the managment vlan ONLY.

Best regards,

Antonin

Show mac command

Hi Ahmed;

In addition to you A nd B commands you can use below command as well.

if CDP enabled in your network then, you can try below command to Identify machines connected to switches,

#traceroute mac xxxx.xxxx.xxxx  xxxx.xxxx.xxxx (the x is the end user PC mac)

the abouve command will give the o/p as below

#traceroute mac 0000.0000.0000 0000.0000.0000
Source 0000.0000.0000 found on switch5
1 switch5 (10.11.12.5) : Gi0/43 => Gi0/43
Destination 0000.0000.0000 found on switch5
Layer 2 trace completed

Regards,

KodandaRao - Please rate helpful posts

1500
Views
0
Helpful
3
Replies
CreatePlease login to create content