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

IP Addreess and Port Number

we have 4 vlans configured on the catalyst switch. Is there a way to find out which port on the ctalyst switch i m connected to using just my ip address?

I know the range of ports for my vlan but how do i exacty find out which one is for my machine. IP of my machine is static. I can not see the label on the network port frm which I am getting onto the network.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: IP Addreess and Port Number

You can go to the switch, and give a show mac-address-table or show cam dynamic, (command depends on switch). The mac-address of your PC will be associated with the corresponding port on your switch. You can use "ipconfig /all" or winipcfg on your PC (depends on OS) to find out your MAC address. Hope that helps.

3 REPLIES

Re: IP Addreess and Port Number

You can go to the switch, and give a show mac-address-table or show cam dynamic, (command depends on switch). The mac-address of your PC will be associated with the corresponding port on your switch. You can use "ipconfig /all" or winipcfg on your PC (depends on OS) to find out your MAC address. Hope that helps.

New Member

Re: IP Addreess and Port Number

Thanks!

Gold

Re: IP Addreess and Port Number

If you know your MAC address of your NIC, you can just telnet the switch(es) and run one of the following commands:

For Catalyst OS switches like the 4000, 5000, 6000 series:

show cam 01-23-45-67-89-10

For Cisco IOS switches like the 2950, 3500, or 3550 series:

show mac-address-table address 0123.4567.8910

where 012345678910 is the MAC address of your NIC.

If you don't know the MAC address of a machine, but you know its IP address, from a router on the same subnet ping the IP address, then run this command:

show ip arp 10.20.30.40

where 10.20.30.40 is the IP address you are trying to get a MAC address for. Once you get the MAC address, search the tables as described previously.

If the MAC address shows up on a switch port that you know to be a connection to another switch, then you need to trace it on that other switch until you find an access port where that MAC address resides.

Hope this helps.

103
Views
0
Helpful
3
Replies
CreatePlease to create content