port - ip address

Unanswered Question
May 8th, 2007
User Badges:
  • Silver, 250 points or more

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 ...



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
bjornarsb Tue, 05/08/2007 - 04:57
User Badges:
  • Bronze, 100 points or more


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



Jon Marshall Tue, 05/08/2007 - 04:59
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

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.


Martin Parry Tue, 05/08/2007 - 04:59
User Badges:
  • Silver, 250 points or more


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



This Discussion