cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2478
Views
0
Helpful
5
Replies

how to find the switchh port which has connected to a pc

WEERAKOO69BA
Level 1
Level 1

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??

1 Accepted Solution

Accepted Solutions

cadet alain
VIP Alumni
VIP Alumni

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.

Don't forget to rate helpful posts.

View solution in original post

5 Replies 5

cadet alain
VIP Alumni
VIP Alumni

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.

Don't forget to rate helpful posts.

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.

WEERAKOO69BA
Level 1
Level 1

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).

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.

Rahul Kukreja
Level 1
Level 1

Hi,

You can also use the below command to know were the pc is connected in LAN :

On 4500 ( in enable mode )

traceroute mac vlan 150         [ As your host is in vlan 150 ]

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

Review Cisco Networking products for a $25 gift card