01-10-2005 05:25 AM - edited 03-05-2019 11:23 AM
Hi, Have a Catalyst 2948. I have the ip address of a server which is infected. By which command can I see on which switchport this server is attached?
Show cam, sh mac.. I just can't find it...
Thx,
Peter
01-10-2005 06:02 AM
x.x.x.x -> IP address of server
yyyy.yyyy.yyyy -> mac address of server
1) Telnet to switch
2) Ping x.x.x.x
3) Show arp | include x.x.x.x (to see mac address of server)
4) Show mac-address-table | include yyyy.yyyy.yyyy
Sorry,
This is when using IOS.
I just remembered that 2948 is CatOS.
Try show arp.
01-10-2005 06:05 AM
hi,
I don't know the catalyst 2948, but i think it's a layer 2 switch & I don't you can find any layer 3 information on it.
You have to the "match" the IP address with the mac-address on a layer 3 by "sh ip arp" command for example. After, with the correct mac-address, you will be able to find the port where your server is.
Regards,
--
MB
Don't forget to rate...
01-10-2005 08:24 AM
The first thing you will need to do is get the MAC address of the server. You can accomplish this by looking at the ARP table of the router for the subnet that the server is on. You can narrow down the amount of info that you get with the command:
show arp | include
Once you have the mac address, you need to login to the Cat2948 and issue the command:
sh cam XX-XX-XX-XX-XX-XX
where XX-XX-XX-XX-XX-XX is the MAC address that was returned from ARP tables of the router. If this does not return the port that the server is connected to, you may need to ping it from the switch. It is possible that the CAM table entry can age out if there is no traffic to/from the server. I would guess that will not be the case here however since the server is infected with something.
Steve
01-11-2005 02:11 AM
Thanks all for your replies. Serverport found
01-13-2005 05:35 AM
This isn't really true , if you have a switch just hooked to one segment and the switch is not trunked , just ping the address and then do a show arp on the 2948 or any catos switch and it will tell you the ip address, the mac address and what port it is on . On a switch that is trunked it will not work though .
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide