Subject: Re: Dynamic configuration...
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Richard Rauch <rauch@rice.edu>
List: netbsd-help
Date: 12/02/2001 23:26:11
On Sat, 1 Dec 2001, Manuel Bouyer wrote:
> On Sat, Dec 01, 2001 at 12:37:06AM -0600, Richard Rauch wrote:
> > I currently have a laptop (on my home networked, dubbed ``odysseus'' since
> > it travels around; (^&). It has one configuration for hooking up to the
[...]
> > The basic problem: I have multiple configurations and presently have to
> > hand-munge some stuff via sudo or as root. What I'd like is something
> > automatic, even if it's as yucky as polling for different possible working
[...]
> Well, you have to hack /etc/rc.d/network for this. I see no other way ...
Err, yes, that would be the script to modify, I suppose. But that's a bit
of a high-level answer. I'm relatively naive when it comes to network
configuration & administration, so what I'd like to know is if there are
any tools (bundled with NetBSD, or tucked into pkgsrc) that would be of
help. I think that my first ideas about how to poll a configuration would
potentially leave my system sleeping for several minutes waiting for
timeouts on the network...but, if the config is correct for the physical
situation, the responseshould come back in milliseconds (or fractions
thereof).
If polling is the only way to go, how could the polling be done in a
reasonable manner? (Hm. it looks like ``ping -r'' may do what I want.
Ideally, I'd like to get a list of hosts directly attached to the same
network...)
``I probably don't know what I'm talking about.'' --rauch@math.rice.edu