cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2117
Views
0
Helpful
3
Replies

Show mac command

Ahmed Malik
Level 1
Level 1

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 3

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

It is B

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

HTH

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

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

Review Cisco Networking for a $25 gift card