cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Join Customer Connection to register!
7762
Views
4
Helpful
2
Replies
adnan.akbar
Beginner

IP address of connected devices to switch ports

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

2 REPLIES 2

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

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.

View solution in original post