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.

Silver

port - ip address

Hi Experts ,

Is there any command where i can see ip address and corresponding port in L3 switch ?

I think sh arp , show mac-address won't give port - ipaddress mapping ...

Thanks,

Satish

3 REPLIES
Bronze

Re: port - ip address

Hi,

Yes, first you must do a sh arp to get the mac, the sh mac gives you the port.

Regards,

Bjornarsb

Hall of Fame Super Blue

Re: port - ip address

Hi Satish

As far as i am aware it is a two step process to work this out. Get the mac to IP addressing and then the mac to port mapping.

It could be scripted with perl/tcl but i don't know of any one command on the switch that would do what you want.

Jon

Re: port - ip address

Hi

Ping the IP address you want fromt hat switch. Then do a show arp | include xxx.xxx.xxx.xxx (Where xxx.xxx.xxx.xxx is your IP address). This will give you the mac address. Once you have the mac, you can do a show mac-address-table | incl 1234.1234.1234 (Where 1234.1234.1234 is your mac address). This will then show you which port on the switch the mac-address was learned, and therefore you will be able to trace the IP. If the mac-address has been learned through an uplink port, repeat the show mac-address-table | incl statement, until you find the access port.

Hope this helps

Martin

278
Views
0
Helpful
3
Replies
CreatePlease login to create content