12-19-2009 08:42 AM - edited 03-06-2019 09:01 AM
Hi seniors,
I am new in networking field and studying Cisco stuff on daily basis. Questions are -
1- How to know the port of the device if IP is know but MAC is unknow ?
2- Say there are 8 switches attached in a stack, and one PC is attached to a switch , only IP is know, how to know what is that particular switch the PC is attached to ?
Thanks you all.
Tahir.
Solved! Go to Solution.
12-19-2009 09:36 AM
tahir1234 wrote:
Hi seniors,
I am new in networking field and studying Cisco stuff on daily basis. Questions are -
1- How to know the port of the device if IP is know but MAC is unknow ?
2- Say there are 8 switches attached in a stack, and one PC is attached to a switch , only IP is know, how to know what is that particular switch the PC is attached to ?
Thanks you all.
Tahir.
Tahir
If you only know the IP then you need to go to the L3 device ie. router or L3 switch that is the default-gateway for the client. Then
1) "sh arp | include
then log onto one of the switches and
2) "sh cam
the result will either be the port the device is attached to or it may be a trunk port. If it is a trunk port then you will need to find out the switch on the other end of the trunk link, log onto that switch and then repeat step 2.
You can use CDP to find details of device attached via trunk ie.
sh cdp neigh
Jon
12-19-2009 09:36 AM
tahir1234 wrote:
Hi seniors,
I am new in networking field and studying Cisco stuff on daily basis. Questions are -
1- How to know the port of the device if IP is know but MAC is unknow ?
2- Say there are 8 switches attached in a stack, and one PC is attached to a switch , only IP is know, how to know what is that particular switch the PC is attached to ?
Thanks you all.
Tahir.
Tahir
If you only know the IP then you need to go to the L3 device ie. router or L3 switch that is the default-gateway for the client. Then
1) "sh arp | include
then log onto one of the switches and
2) "sh cam
the result will either be the port the device is attached to or it may be a trunk port. If it is a trunk port then you will need to find out the switch on the other end of the trunk link, log onto that switch and then repeat step 2.
You can use CDP to find details of device attached via trunk ie.
sh cdp neigh
Jon
12-19-2009 10:28 AM
Jon thanks for reply.
One think I forgot to ask in previous post,
-for the same scenarious , what would if switches are CATOS running on them,,
Thanks again.
12-19-2009 10:27 AM
Hi,
login into switch then issue a command show arp after wards with mac you can issue show mac-address | in specific mac .
Hope that helps
Regards
Ganesh.H
12-19-2009 11:11 AM
Hello Tahir,
For Cat OS you use
sh cam
For native IOS you use
sh mac-address-table
HTH
Reza
12-19-2009 02:30 PM
Good explainations.
Thanks for all.
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