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

How to Learn switch ports IP?

Hi everybody,

ı want to ask that; On  the switch ı know switch's mac address table.For exaple gi0/11 mac adddres:xxxx.xxxx (show mac-address table).And than ı want to learn this mac adress's IP ?is there command for this?

1 ACCEPTED SOLUTION

Accepted Solutions

How to Learn switch ports IP?

#show mac-address table

Get the mac-adress of devices from here then go to layer 3 device # show ip arp | inc mac-address. Sometimes you might need to ping that ip from layer 3 switch to get the arp.

Thanks

Ajay

7 REPLIES
New Member

How to Learn switch ports IP?

Do a sh arp | inc the mac address and it will tell you what ip is associated with that mac. If the neighbor is another Cisco device and you have cdp enabled do a sh cdp neighbors.

New Member

How to Learn switch ports IP?

Unfourtanately 1.step:Login the Switch and than show inter gi0/1 status and than ı have seen the mac adress.Then I wrote show arp | inc mac adress. But I Haven't seen where is my wrong?

New Member

How to Learn switch ports IP?

sh interface g0/1 status should not show you the mac address for that interface.

If you are looking for the ip address of an interface do a sh int g0/1 or a sh ip int br g0/1

How to Learn switch ports IP?

Show IP arp will get you arp on Layer 3 device could be layer3 switch /router /firewall. So make sure where is your gateway interface vlan / interface with IP address.

Thanks

Ajay

New Member

How to Learn switch ports IP?

I see,ı understood that but mine question is different ı wanted to learn that..After #show mac-address table command.There are  mac-adresses.After I saw this command:Can ı write a command,from the table any mac adress's to learn it's ip?

How to Learn switch ports IP?

#show mac-address table

Get the mac-adress of devices from here then go to layer 3 device # show ip arp | inc mac-address. Sometimes you might need to ping that ip from layer 3 switch to get the arp.

Thanks

Ajay

New Member

Re: How to Learn switch ports IP?

If the ip / MAC mapping is not in the arp table I often look for the MAC address in our DHCP servers lease list.

Sent from Cisco Technical Support iPad App

319
Views
0
Helpful
7
Replies
CreatePlease login to create content