Operating System - HP-UX
1836840 Members
2213 Online
110110 Solutions
New Discussion

Re: How to find the machines connected to perticular switch

 
Prasad Joshi
Regular Advisor

How to find the machines connected to perticular switch

Hi All,

I want to find the machines which are connected to perticular switch.

I have an IP Addresss of the switch and i want to find the machines which are connected to this switch

Can any one help.

Thanks in advance
Regards.
Prasad
7 REPLIES 7
RAC_1
Honored Contributor

Re: How to find the machines connected to perticular switch

Pinging the brodcast address.
There is no substitute to HARDWORK
Jean-Yves Picard
Trusted Contributor

Re: How to find the machines connected to perticular switch

Hello,

connect to the switch, and use its OS to know IP/mac address connected.

for cisco's this sounds like show IP or show it.

Jean-Yves Picard
Arunvijai_4
Honored Contributor

Re: How to find the machines connected to perticular switch

Hi Prasad,

You can use # traceroute command. Probably, the first entry will be your switch/gateway

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Prasad Joshi
Regular Advisor

Re: How to find the machines connected to perticular switch

Actually, My problem is

At my work place, we have a large network setup. Which is not properly managed.

From this setup one switch is giving some error.

I know IP Address of that switch, but do not know where it is physically placed.

Is there any way i can identify this switch.

I thought if i could get the machines connected to it then i can follow the wire to get the exact switch.

I might be wrong, but i am in learning phase and just started job. All can understand this.

So can you help?

Thanks & regards.
Prasad
Prasad Joshi
Regular Advisor

Re: How to find the machines connected to perticular switch

Hi All,

Pl. help.

Once i find any one machine connected to the switch, i will eject its cd-rom and find that machine.

Will then follow the wire and find the switch.

Thanks & regards.
Prasad
Gavin Clarke
Trusted Contributor

Re: How to find the machines connected to perticular switch

Hi Prasad,

If it is a Cisco switch you can use

show mac-address-table

This will give you all the hardware addresses of cards connected to that switch.

What do you do then?

arp -a

From your machine.

And look for those hardware addresses, if you're lucky that will give you an IP address of a machine connected to that switch.

From there you can ping -a IPAddress

to get the machine's hostname or connect directly to the machine and eject the CD drive.

Thing is switches use Hardware Addresses (OSI level 2) and IP addresses are level 3.

For a better chance you need a switch expert. Still a list of hardware addresses could be a little handy.
Prasad Joshi
Regular Advisor

Re: How to find the machines connected to perticular switch

Thanks a lot for all the replays