Re: how to switch between different network configurations?
Zhengquan Zhang mailing list <email@example.com> writes:
> I have to switch the network configurations between the lab, the dorm and the
> home ones. Normally I manullay edit /etc/network/interfaces and restart the
Since you are already using /etc/network/interfaces take a look at
Especially see "ifup eth0=home"
On my laptop, the analogue is
because the wireless interface is eth1.
The next suggestion I have *not* tested, but it is also in
-i FILE, --interfaces=FILE
Read interface definitions from FILE instead of from /etc/net-
If this means what it seems to mean, you can write a different file
for each of your configurations, and start ifup with the i option.
ifup is part of the package (in stable) ifupdown.
See also man ifdown.