05-08-2007 04:48 AM - edited 03-05-2019 03:56 PM
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
05-08-2007 04:57 AM
Hi,
Yes, first you must do a sh arp to get the mac, the sh mac gives you the port.
Regards,
Bjornarsb
05-08-2007 04:59 AM
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
05-08-2007 04:59 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide