Determine Port a Server is connected to

Hi,

Is there a way to determine which port on a Catalyst 4000 switch a particular server is attached to? I have the servers IP address and I am logged into the switch via Hyper terminal.

I have about 50 servers attached to this switch, but the cables are not marked and I need to figure out which port a SUN server is attached to.

Any help would be appreciated.

Mike

Reply to
michael.r.felkins
Loading thread data ...

mike, using the IP address you need to find associated mac address. The easiest way to do this is to go to the router connected to the switchand show arp to see the ip addresses and mac addresses. This will tell you the mac address you need. Then go to the switch and show mac address table and see what port the mac address is on. This will show you which port the server with the designated ip address is connected to.

Reply to
datakazam

Thanks, there is NO router involved. This is a Administrative net that does not attach to the outside world.

Is there a Show ARP command on the switch itself?

Can you tell when a new port is connected? A log of some sort?

Mike

Reply to
michael.r.felkins

If the management IP address of the switch is on the same subnet as the Sun server -- then yes, you can use the arp table of the switch to help you.

If you can login to the Sun box, you can run snoop to decode the CDP frames the switch sends -- it's a neat trick that will give you the switch and port (and many other things):

solaris$ snoop -d qfe0 -x0 01:00:0c:cc:cc:cc

Or, other boxes may have tcpdump:

linux$ tcpdump -i eth0 ether host 01:00:0c:cc:cc:cc

Reply to
Rex Johnson

CatOS or IOS?

Reply to
Walter Roberson

reboot the server and see which port goes down:-)) Check the logs as the interface will flap. The arp and mac address is the best way of course but brute force works too.

Reply to
Gary

Get the MAC address, then

If it's CatOS, try sh cam dyn ? If it's IOS, try sh mac ?

Reply to
ESM

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.