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

how to find ip --switching

tahir1234
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

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 "   will give you the mac-address

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 detail

Jon

View solution in original post

5 Replies 5

Jon Marshall
Hall of Fame
Hall of Fame

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 "   will give you the mac-address

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 detail

Jon

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.

Ganesh Hariharan
VIP Alumni
VIP Alumni

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

Reza Sharifi
Hall of Fame
Hall of Fame

Hello Tahir,

For Cat OS you use

sh cam

For native IOS you use

sh mac-address-table

HTH

Reza

Good explainations.

Thanks for all.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card