cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1165
Views
10
Helpful
4
Replies

How to find out the destination of a switch port

springman
Level 1
Level 1

A few of our network drop was mislabeled. I need to find out which computer is connected to a certain switch port. Please help.

2 Accepted Solutions

Accepted Solutions

JORGE RODRIGUEZ
Level 10
Level 10

Springman, if you have IOS base switch you can

retreave MAC address off a port from the switc arp table.

e.g. for a machine connected to port 24 do:

switch#show mac-address-table dynamic interface fastethernet0/24

For CATOS switches:

PC connected to port 12 on module 3.

switch(enable) show cam dynamic 3/12

after retreaving MAC address you can reference the arp table from your upstream routers that are directly connected to the switches to get their mapped IP address.

e.g

router#show ip arp xxxx.xxxx.xxxx

where x is the mac address you retreaved from the switches.

With this info you can then trace back from the port switch to the patch pannel .

HTH

Jorge

Jorge Rodriguez

View solution in original post

Get the MAC address of the computer connected to a certain port using the command;

On CatOS switches: show cam dynamic (port#)

On IOS switches: show mac-address-table dynamic interface (port#)

If you have a database of MAC to Computer name you could then use that information. If you don't have that info then you need to get the IP of the Computer from the ARP table on the gateway router/L3 switch by issuing the command.

Router/L3 switch:

show ip arp (mac_address)

Hopefully with the IP address you can identify the actual Computer.

HTH

Sundar

Jorge I just noticed you responded to this post barely mins before I posted. I am sure our responses should address the original poster's concern.

View solution in original post

4 Replies 4

JORGE RODRIGUEZ
Level 10
Level 10

Springman, if you have IOS base switch you can

retreave MAC address off a port from the switc arp table.

e.g. for a machine connected to port 24 do:

switch#show mac-address-table dynamic interface fastethernet0/24

For CATOS switches:

PC connected to port 12 on module 3.

switch(enable) show cam dynamic 3/12

after retreaving MAC address you can reference the arp table from your upstream routers that are directly connected to the switches to get their mapped IP address.

e.g

router#show ip arp xxxx.xxxx.xxxx

where x is the mac address you retreaved from the switches.

With this info you can then trace back from the port switch to the patch pannel .

HTH

Jorge

Jorge Rodriguez

Get the MAC address of the computer connected to a certain port using the command;

On CatOS switches: show cam dynamic (port#)

On IOS switches: show mac-address-table dynamic interface (port#)

If you have a database of MAC to Computer name you could then use that information. If you don't have that info then you need to get the IP of the Computer from the ARP table on the gateway router/L3 switch by issuing the command.

Router/L3 switch:

show ip arp (mac_address)

Hopefully with the IP address you can identify the actual Computer.

HTH

Sundar

Jorge I just noticed you responded to this post barely mins before I posted. I am sure our responses should address the original poster's concern.

Thank you all for the answer. This is exactly what I am looking for. Very helpful. Thanks a lot.

Im glad we could be of help, please rate all helpfull posts.

Jorge Rodriguez
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco