03-14-2011 02:38 AM - edited 03-06-2019 04:04 PM
Hi CAn u help me pls.I just want to know which port I have connected my pc.
when i do sh ip arp..will get as follows,
Protocol Address Age (min) Hardware Addr Type Interface
Internet 1.1.1.1 13 0026.9914.e63f ARPA Vlan150
Internet 192.168.80.80 158 0026.9914.e63f ARPA Vlan150
Internet 192.168.80.81 227 0026.9914.e67f ARPA Vlan150
Internet 192.168.40.50 103 0026.9914.e63f ARPA Vlan150
Internet 192.168.80.77 114 0026.9914.e67f ARPA Vlan150
Internet 192.168.80.68 181 0026.9914.e63f ARPA Vlan150
Internet 192.168.80.160 106 0026.9914.e63f ARPA Vlan150
Internet 192.168.150.12 50 0027.0d86.9cc1 ARPA Vlan150
since my pc's ip is 192.168.80.160, mac address is 0026.9914.e63f acording to the above details(actually this is not my pc's mac.I checked it) .so now
FirstFloor_SW1#sh mac address-table | include 0026.9914.e63f
20 0026.9914.e63f DYNAMIC Te0/1
31 0026.9914.e63f DYNAMIC Te0/1
33 0026.9914.e63f DYNAMIC Te0/1
50 0026.9914.e63f DYNAMIC Te0/1
60 0026.9914.e63f DYNAMIC Te0/2
70 0026.9914.e63f DYNAMIC Te0/1
80 0026.9914.e63f DYNAMIC Te0/2
150 0026.9914.e63f DYNAMIC Te0/1
And Te0/1 and Te0/2 are uplinks.So what is the solution??How to find the port which I have connected to my pc??
Solved! Go to Solution.
03-14-2011 02:46 AM
Hi,
Once you know your pc mac address then do a sh mac address-table dynamic xxxx.xxxx.xxxx where xxxx.xxxx.xxxx is your PC mac address and then if it's a port connected to other switch then connect to that switch and do the same.Follow this procedure up to the actual switch where the machine is connected.
Regards.
Alain.
03-14-2011 02:46 AM
Hi,
Once you know your pc mac address then do a sh mac address-table dynamic xxxx.xxxx.xxxx where xxxx.xxxx.xxxx is your PC mac address and then if it's a port connected to other switch then connect to that switch and do the same.Follow this procedure up to the actual switch where the machine is connected.
Regards.
Alain.
03-14-2011 03:02 AM
Hi,
You can easily find out the port where your pc is connected with below steps.
Say your pc IP is 192.168.100.40
Login into your SW1 and give command "sh ip arp 192.168.100.40
It will give you the mac address which learning with that IP address.
Say the mac is aaaa.bbbb.cccc
Now give the command "sh mac-a address aaaa.bbbb.cccc"
It will show you the physicall port from where the above mac address is learning.
If the physicall port is uplink port to another switch then in that switch give the above command untill you get the actual switch where the pc is connected.
Hope this clear you...
Please rate the helpfull posts.
Regards,
Naidu.
03-14-2011 03:39 AM
Thanks a lot for everybody.I will explain again.
My pc has connected to an access SW(2900) and this has connected to the core(4500).
03-14-2011 03:48 AM
OK, now give login into your 4500 switch and give command "sh ip arp 192.168.100.40
It will give you the mac address which learning with that IP address.
Say the mac is aaaa.bbbb.cccc
Now login into your 2900 switch and give the command "sh mac-a address aaaa.bbbb.cccc"
It will show you the physicall port from where the above mac address is learning.
The above steps should give you the results...
Hope this clear you...
Please rate the helpfull posts.
Regards,
Naidu.
03-14-2011 05:46 AM
Hi,
You can also use the below command to know were the pc is connected in LAN :
On 4500 ( in enable mode )
traceroute mac
source-mac = mac address of vlan 150, you will get this from show int vlan 150
destination-mac = 0026.9914.e63f
It will trace the L2 path and will give you the port as well the switch were the pc is connected..
Please rate if this info helps..
Regs,
Rahul
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