Mapping MAC to switch port

Answered Question
Jul 28th, 2008
User Badges:

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.


Correct Answer by lamav about 8 years 9 months ago

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




  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
lamav Mon, 07/28/2008 - 08:29
User Badges:
  • Blue, 1500 points or more

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 Mon, 07/28/2008 - 08:53
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

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

Actions

This Discussion