08-23-2011 12:06 AM - edited 03-07-2019 01:49 AM
Hey all,
What is the method at the command line on a 3750x switch to find out what the IP address of the connected device (Server, PC etc) which is connected to a certain port on the switch?
For example... I know which port it is... 1/0/10
I can see the mac-address, but i'm trying to find out what the IP address is associated with that port/mac.
Thanks in advance.
Solved! Go to Solution.
08-23-2011 12:51 AM
Hi Adnan,
You can get to know the IP address of the host connected to any switch port by using the ARP table feature.
Please follow like below to know the end system ip address whcih is connected to the switch port.
#sh mac-address-table interface GigabitEthernet1/0/3
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
594 0001.6c58.486e DYNAMIC Gi1/0/3
594 0001.6c58.596e DYNAMIC Gi1/0/3
#sh mac-address-table address 0001.6c58.486e
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
594 0001.6c58.486e DYNAMIC Gi1/0/3
Total Mac Addresses for this criterion: 1
#sh ip arp 0001.6c58.486e
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.13.xx.xxx 5 0001.6c58.486e ARPA Vlan594
Please rate the helpful posts.
Regards,
Naidu.
08-23-2011 12:36 AM
You can first find the mac-address of device then run command of sh arp | in mac-address , you can find it through this way
Aman
08-23-2011 12:51 AM
Hi Adnan,
You can get to know the IP address of the host connected to any switch port by using the ARP table feature.
Please follow like below to know the end system ip address whcih is connected to the switch port.
#sh mac-address-table interface GigabitEthernet1/0/3
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
594 0001.6c58.486e DYNAMIC Gi1/0/3
594 0001.6c58.596e DYNAMIC Gi1/0/3
#sh mac-address-table address 0001.6c58.486e
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
594 0001.6c58.486e DYNAMIC Gi1/0/3
Total Mac Addresses for this criterion: 1
#sh ip arp 0001.6c58.486e
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.13.xx.xxx 5 0001.6c58.486e ARPA Vlan594
Please rate the helpful posts.
Regards,
Naidu.
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