Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Mapping MAC to switch port

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
Blue

Re: Mapping MAC to switch port

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

4 REPLIES
Blue

Re: Mapping MAC to switch port

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

New Member

Re: Mapping MAC to switch port

thanks

Hall of Fame Super Silver

Re: Mapping MAC to switch port

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

New Member

Re: Mapping MAC to switch port

thanks

270
Views
0
Helpful
4
Replies