Subject: Dynamic configuration...
To: None <netbsd-help@netbsd.org>
From: Richard Rauch <rauch@rice.edu>
List: netbsd-help
Date: 12/01/2001 00:37:06
I currently have a laptop (on my home networked, dubbed ``odysseus'' since
it travels around; (^&).  It has one configuration for hooking up to the
Rice campus network when I'm on-campus, and another configuration for
hooking up to the LAN in my apartment.  Now, I've finally got DSL up and
running at home, and will need to reconfigure stuff some more.  (I may
also be able to use DHCP to use certain other parts of the Rice
network---in the lan that covers my office, I have a static IP, but other
networks on Rice use DHCP...)

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
configurations.  Given that there is nothing constant about these
configurations except that they use TCP/IP over ethernet, is there a nice
way to do this?

Somewhare (Daily Daemon News?) someone posted some discussion about how
they did this with interactive bootscripts, I think.  (A default behavior,
but they could override it if they were at the console during boot.)  That
sounds little, if any, better than what I currently have.

Suggestions?


(Oh, BTW, re. my previous questions pppoe and configurations...everything
is working pretty well, now---but for some reason, the defaultroute option
doesn't seem to take effect in /etc/ppp/options and I have to manually add
the route.  Prodigy's pppoe is using PAP for authentication.  tcpdump and
pppd's kdebug (plus man ascii; (^&) were helpful...)


  ``I probably don't know what I'm talking about.'' --rauch@math.rice.edu