MAC Address – How to Trace on a Switched LAN

layer2mac address

How to trace a MAC address on a switched LAN?

I want to be able to find out a switch port's MAC address.

  • No device uses IP, therefore no address resolution and no SNMP.
  • No device runs CDP, therefore no Cisco L2 traceroute.
  • No fancy tools on my laptop available.

Topology: There are 10 switches. One is in the center. It is connected to four other switches. Each of those four switches is connected to another switch. Each switch in the third row has three end devices attached. All devices are connected via switching port, except end devices which use their NIC. I cannot change the topology. But I can hang on to whatever device I want and change its configuration as far as I do not assign an IP address to a switch or enable CDP.

Firmware: Cisco Catalyst 2950-24 IOS C2950-I6Q4L2-M 12.1(22)EA4. That's the one Packet Tracer simulates.

Yes, I did read the question Locate a host on Network. This question may be answered with a simple no.

Best Answer

If you have an end-to-end vlan topology, where vlans are not terminated on switches, you can use somethink like this algorithm:

On the root switch get the mac address table, use filter output:

sh mac add | i 8a06

1    0015.5d02.8a06   dynamic ip,ipx,assigned,other TenGigabitEthernet4/5 

Now you know, that mac is behind interface TenGigabitEthernet4/5. Connect to the switch behind this interface, and repeat sh mac add | i 8a06. You will find your host in the end.

Related Topic