I have a network made up of 2950s and 3508s. There's six TCs, each with a pile of 2950s connected together via GigaStack, and the closets are connected together via the 3508s with fiber on a GBIC.
Every time I need to track down the port that a client is on (starting only from the IP address), I have a rather lengthy procedure that I follow:
- Get on the first 3508 and ping the IP address.
- Look at the ARP table on the switch to find the MAC address.
- Look at the MAC address table to see which port the MAC is assigned to. If a switch isn't connected to that port, I've found my port.
- Look at the CDP neighbors table to see which switch is connected to the port the MAC address is connected to. (If it's on the GigaStack link, this could take a while since you don't know WHICH switch in the stack you're looking for.)
- Jump over to that switch, look at the MAC address table. If it's connected to another switch, repeat until the end port is found.
This works, but it takes a while. Every time I do this I end up thinking "You know, there has to be an easier way to do this..."
Is there? :)