cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
684210
Views
70
Helpful
10
Replies

Commands to find mac-address and IP on a port

scottcummins
Level 1
Level 1

Can someone show me the commands to find a mac-address on a switch and if I know the port I am looking to find it on, also how i find the IP address on that port

1 Accepted Solution

Accepted Solutions

Mark Malone
VIP Alumni
VIP Alumni

sh mac address-table interface gigabitEthernet x/x

Then on layer 3 device to resolve it to ip address take the mac from above and run

show ip arp x.x.x

View solution in original post

10 Replies 10

Mark Malone
VIP Alumni
VIP Alumni

sh mac address-table interface gigabitEthernet x/x

Then on layer 3 device to resolve it to ip address take the mac from above and run

show ip arp x.x.x

you don't need layer 3 device, will work fine on layer 2 switch as long ip & gateway are configured.

For eg. on Cisco 2960G switch.

c2960#sh mac address-table interface gi0/3
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
  32    68b5.99fc.d1df    DYNAMIC     Gi0/3
Total Mac Addresses for this criterion: 1
c2960#sh ip arp  68b5.99fc.d1df
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  10.10.32.6              0   68b5.99fc.d1df  ARPA   Vlan32
c2960#

Gentlemen

Thank you very much, that was it..

I have ip address of one of my remote server I cannot login remotely. I have the IP address and I and trying to find the mac address or interface that connected to the server.
could you tell me the command or the way to find the Switch port or mac address if you only have ip address.

regards

Star

sh arp

Hello Patrick,

Thank you for the reply.

 

how to config switch as long ip & gateway are configured

thanks guy ! it helped me a lot.

 

Star_sulaiman
Level 1
Level 1

Use this command, show mac address inter g1/0/x

Armymanryno
Level 1
Level 1

Mac address to IP address on Layer 3 switch -

#sh ip arp | include <all or last 4 of mac address>

Review Cisco Networking for a $25 gift card