cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
421586
Views
55
Helpful
10
Replies
scottcummins
Beginner

Commands to find mac-address and IP on a port

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
Mentor

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
Mentor

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
Beginner

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

Rsbell
Beginner

Mac address to IP address on Layer 3 switch -

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