cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3590
Views
15
Helpful
4
Replies

Mapping MAC to switch port

gamage123
Level 1
Level 1

I have a switch network with a vtp domain and vlans.

The edge switches are cisco 2960.

The PCs get ips through a DHCP server.

I also have the list of MAC addresses of the PCs.

My question is, Is there a way that I can trace from the switch the exact switch port to wich a perticular PC is connected without tracing the cables physically.

I tried "show mac-address-table"

But It gives the mac addresses it has learned from uplinks only.

Please advise me.

1 Accepted Solution

Accepted Solutions

lamav
Level 8
Level 8

A switch learns the MAC addresses of each device that is connected to one of its ports by examining the source MAC address of the packets being received from the device when it first starts sending data. The switch dynamically learns the address and enters it into CAM.

Have each PC send traffic, if they haven't already.

HTH

VL

View solution in original post

4 Replies 4

lamav
Level 8
Level 8

A switch learns the MAC addresses of each device that is connected to one of its ports by examining the source MAC address of the packets being received from the device when it first starts sending data. The switch dynamically learns the address and enters it into CAM.

Have each PC send traffic, if they haven't already.

HTH

VL

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Prasanga,

from the router / default gateway ping the PC ip address

sh ip arp to get the MAC address

on the switches

sh mac-address-table address

CAM entries last only 300 seconds with default timers so you need to have the PCs to generate traffic in order to locate them

Hope to help

Giuseppe

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:

Review Cisco Networking products for a $25 gift card