Re: Different Network Environments
<kasper.ronning@hut.fi> writes:
> Hi
>
> What package do you recommend for managing different network
> environments? I don't like waiting for ages trying to get a DHCP address
> when I'm at home. I also have three NICs, two of which are WLAN cards.
> Is there some application that can eaasily map a predefined list of
> network settings (including DNS resolving, wireless settings, etc.) to
> interfaces, and then at either bootup or at runtime, choose the network
> environment I'm in?
If you don't mind doing things all-manual, and all you want to change
is your NIC settings and a couple of controlled things, you can do it
all with normal ifupdown. For example:
iface eth0 inet dhcp
iface net-home inet static
address 18.101.2.59
netmask 255.255.255.240
broadcast 18.101.2.63
gateway 18.101.2.49
wireless_essid default
dns-search mit.edu
dns-nameservers 18.72.0.3
Then if I run 'ifup eth0', it tries to get DHCP; if I run 'ifup
eth0=net-home', it will bring itself up on the specified static
address, set the 802.11 ESSID, and specify some DNS parameters (using
the 'resolvconf' package in unstable).
--
David Maze dmaze@debian.org http://people.debian.org/~dmaze/
"Theoretical politics is interesting. Politicking should be illegal."
-- Abra Mitchell
Reply to: