cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

121488
Views
35
Helpful
9
Replies
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
VIP Mentor

sh mac address-table

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

9 REPLIES 9
VIP Mentor

sh mac address-table

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

Beginner

you don't need layer 3 device

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#

Beginner

Gentlemen

Gentlemen

Thank you very much, that was it..

Highlighted
Beginner

Re: Gentlemen

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

Re: Gentlemen

sh arp
Beginner

Re: Gentlemen

Hello Patrick,

Thank you for the reply.

 

Re: you don't need layer 3 device

how to config switch as long ip & gateway are configured

Beginner

Re: Commands to find mac-address and IP on a port

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

Beginner

Re: Commands to find mac-address and IP on a port

Mac address to IP address on Layer 3 switch -

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

Everyone's tags (1)
CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards