Operating System - HP-UX
1824808 Members
4185 Online
109674 Solutions
New Discussion юеВ

How to check the MAC address of hub and all devices connected to it?

 
Joshua Goi
Frequent Advisor

How to check the MAC address of hub and all devices connected to it?

Hi,

How do I check the MAC address of the network hub I'm connected to and all other network devices connected to it?

And how do I check for the IP address for the same devices? Thanks!
4 REPLIES 4
Sanjay_6
Honored Contributor

Re: How to check the MAC address of hub and all devices connected to it?

Hi Joshua,

Try "arp -a"

do man arp for more help on this command.

Hope this helps.

Regds
Alzhy
Honored Contributor

Re: How to check the MAC address of hub and all devices connected to it?

ping the network address.
ping a.b.c.0 if Class D
ping a.b.0.0 if Class C...

then do arp -a.

Hakuna Matata.
Ron Kinner
Honored Contributor

Re: How to check the MAC address of hub and all devices connected to it?

The hub may not have a MAC or an IP unless it is a managed hub.

You can use a ping to try and get them to responds then use arp -a to see them but this is not totally reliable.

Better to use something like getif (for WindowsNT/2K/XP)

http://www.wtcs.org/snmp4tpc/getif.htm

and use its IP Discovery to sweep the range of possible IP addresses and see what comes up. Then look at the arp.

Ron
Patrick Wallek
Honored Contributor

Re: How to check the MAC address of hub and all devices connected to it?

If it is a managed hub, and the hub itself has an IP address, you *MAY* be able to telnet to the hub itself and have it display its arp table or port list. It may be able to show you the MAC addresses and *possibly* (no guarantee though) IP addresses of everything that is conencted to it.

This is *highly dependent* on the hub you have though. If it is a $30 hub from CompUSA or something, you will probably be out of luck.