Ok. A DHCP client can send options to a server. A hostname and a preferred IP for example. .222 is a bit outlandish but nothing precludes a network to use that address already. You could request for that address, or at least ping for it and see if it is free.
I am a bit lazy and did not run your script to see what it does (I am sed-impaired.) If I understand right you assume the router to be at address .1 While this is common it is not mandatory. Using "route" would show the gateway, as defined in the static conf or as updated by the DHCP server. Finally, if your intention is to ensure internet access is possible, a ping to the router is not sufficient; pinging one or a few well-known internet addresses could do once setup is final. BTW: -When I have to package machines for friends and family I use to include dnsmasq and avahi in the configuration. I set dnsmasq to query a public external dns, like opendns's or google's + use any dns server sent via a DHCP server. At minimum this ensures the server has a local dns cache. At best it adds local name resolution to the network if clients use this server. - I have seen 1 example of magical network configuration: plug 2 boxes on your network, and they communicate immediately. The trick is to use something like a "222 VLAN". The VLAN space is much less crowded than private class-C networks. Unfortunately this only works if devices are VLAN capable (are the linux-based SBs ?) And in case an old switch is in the way it will break, too. A smart idea, nevertheless. HTH ------------------------------------------------------------------------ epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=95037 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
