Xsanity Sanity for Apple's Xsan and Final Cut Server.
  
Thursday, July 03 2008 @ 08:58 PM EDT
User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User
Who's Online
Guest Users: 7
Sponsorship

Xsanity is proudly sponsored by:

Tekserve
The Old Reliable Mac Shop

Xsan News
Broadcast Pings to Discover IP Addresses

Here's a quicky: We needed to configure someone else's fibre channel switch yesterday, but didn't know its IP address. We did, however, know it was configured in the subnet 192.168.0.x.

So we directly connected our laptop to the FC switch's ethernet port (bypassing the ethernet switch), and configured our own IP as 192.168.0.2 (anything in the same subnet would work). Then we pinged the network broadcast address: ping 192.168.0.255, with this result:

64 bytes from 192.168.0.2: icmp_seq=0 ttl=64 time=0.168 ms
64 bytes from 192.168.0.9: icmp_seq=0 ttl=64 time=0.327 ms (DUP!)

The first response is our own IP, so the second must be the switch! (Press Control-C to stop the once/second repetitions.)

This technique should work on just about any IP device. If you know the subnet, you can find the IP.



Broadcast Pings to Discover IP Addresses | 7 comments | Create New Account
The following comments are owned by whomever posted them.
Broadcast Pings to Discover IP Addresses
Authored by: djidji on Tuesday, June 26 2007 @ 08:45 AM EDT
I only learned this trick when I properly re-read the Xseve user manual, I think it was in the last - xeon - rev. It it the suggested way to find out the ip address of the new xserve units at some point of the remote installation, works great every time ;-)

---
the righteous way is straight as an arrow
take a walk and you'll find it too narrow for the likes of me
--nc

[ Reply to This ]
Broadcast Pings to Discover IP Addresses
Authored by: aaron on Tuesday, June 26 2007 @ 11:28 AM EDT
You can also use this command, especially if you don't know the subnet:
ping 255.255.255.255
But don't use that if you are plugged into an Ethernet switch, or you may flood your network.

---
Aaron Freimark
http://www.tekserve.com/vcard/af.vcf

[ Reply to This ]
Broadcast Pings to Discover IP Addresses
Authored by: ravan46 on Tuesday, June 26 2007 @ 12:44 PM EDT
What about when it's plugged into an ethernet switch you can't easily access, and there is plenty of other devices on the subnet?

Do the broadcast ping again. Then take a look at your arp table (arp -a).

Then lookup the MAC address vendor code on the IEEE list

http://standards.ieee.org/regauth/oui/oui.txt

And find the one in the arp list of MAC address that matches.

For example, QLogic switches will pretty much always start with 00-C0-DD

[ Reply to This ]
Broadcast Pings to Discover IP Addresses
Authored by: matx on Tuesday, June 26 2007 @ 02:48 PM EDT
nmap is favorite way to discover what is where:


Host 10.0.0.200 appears to be up.
MAC Address: 00:0F:B5:4D:77:2B (Netgear)

Host 10.0.0.203 appears to be up.
MAC Address: 00:C0:DD:07:1C:E8 (QLogic)

Host 10.0.0.204 appears to be up.
MAC Address: 00:30:6E:F9:94:76 (Hewlett Packard)

Host 10.0.0.205 appears to be up.
MAC Address: 00:0D:93:01:E0:B9 (Apple Computer)
[ Reply to This ]
  • Broadcast Pings to Discover IP Addresses - Authored by: aaron on Wednesday, June 27 2007 @ 08:10 AM EDT
  • Broadcast Pings to Discover IP Addresses - Authored by: Rupert Watson on Monday, July 02 2007 @ 03:58 PM EDT
  • Broadcast Pings to Discover IP Addresses
    Authored by: seb on Wednesday, October 10 2007 @ 02:59 PM EDT
    The best way to retrieve an ip address from a device (raid chassis, fc switch, etc...) is to connect directly to it (not thru a switch) with a crossover cable and tcpdump your network interface

    On my laptop I use:

    sudo tcpdump -i en0

    Works even if you have no idea what the subnet might be.

    Seb
    [ Reply to This ]
    Story Options
    Best Viewed on a Mac | Suggested Browser: Whatever floats yer boat.