How to see ip details in switch

Unanswered Question
Jan 31st, 2007

How we can saw which ip is connected to which port which mac address. through sh arp we can got the details of ip ,mac and vlan details but not the port.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Loading.
vijayasankar Wed, 01/31/2007 - 22:18

Hi Pramod,

What switch is this?

Running is what mode? layer 3 or layer 2.

If the switch is running in l2 mode, you wont be able to see any arps for the client PC on user vlans.

If it is running in L3 mode and if you have SVI's configured, show ip arp will provide you the ip to mac mappings which it had learned on the vlans.

Only the SVI interface is ip enabled, and hence only it can see the ip layer.

The switch port to which the host is connected is just a l2 connectivity to the PC.So this switch port can only learn the mac-address of the end host connected to it. It cannot handle/interpret the ARP messages.

If you want to further see where that ip host is connected you have to use the show mac-address-table command to trace where it is located.

If you have an ethernet port on the switch which is running in l3 mode, then you will be able to see the ARP mappings of the end host(s)connected to this port.

Hope this clarifies.

-VJ

pieterddejong Thu, 02/01/2007 - 02:48

Hi,

Not sure of command that gives all these details. You would have to use "show arp", get the associated mac address for that IP and then use "show mac-addr | incl " to see the port. If running Catos use "show cam dynamic" to see mac addresses.

Regards

Pieter

Actions

This Discussion