Oops... I forgot to say that I don't have the IP address of the attached device. I have ALL IP addresses, but I don't know whom is attached to whom... And yes, I can control the setup, but my ultimate goal is to manage less. The only way I see this possible, is by broadcasting "something" to the wire, that doesn't go beyond the next radio, and returns the MACs of the "wired" devices. Thanks! ET Tony Wasson writes: > On Tue, Apr 14, 2009 at 10:52 AM, kitepilot@kitepilot.com > wrote: >> So I want to map my network "on the fly". >> This is what I already know: >> Radios are Wiligear (embedded Linux) >> I have a script that logs in into every radio and downloads its >> configuration file, MAC and IP address. >> >>  From the configuration file I can tell APs from bridges. >> >> I can login in every AP and grab the list of MAC addresses associated to >> that AP. >> I can find the corresponding IP address of a MAC with a lookup into the ARP >> table of the firewall. >> Now I can login to those bridges too. >> So far so good... >> >> Now the challenge: >> When I login to the bridge, I need to know the MAC address of the device >> attached to the eth0 interface. >> How do I find the MAC address of the device in the other side of the wire? >> Thanks! >> ET > > SNMP can help here. See if you can snmpwalk the units. (change the IP > and community name) > > $ snmpwalk -v1 -c your-community-name 192.168.1.50 1.3.6.1 > > On a typical SNMP device you can get the forwarding tables like so: > > $ snmpwalk -v1 -c your-community-name 192.168.1.50 1.3.6.1.2.1.17.4.3.1.2 > > You can usually tie that information together with the interface names > located at this OID: > 1.3.6.1.2.1.2.2.1.2 > > I've got a script that will dump the mappings I can share offlist if > you're interested. I use it to dump all the MAC to port mappings into > a database table and then generate a map. If that isn't working, you > could also dump the arp tables of the WiFi units periodically. Doing > that in conjuction with an nmap ping sweep will allow you to "find" a > good chunk of devices. > > Hope this helps, > Tony Wasson > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change your mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss