Switching Network Configurations
I use my notebook mainly on two places: work and home. Each of this places has different network configurations — at work I have a fixed IP, at home I have a DHCP server.
Actually there is a very nice application for changing network configurations (or, if you like, profiles) — QuickSwitch (emerge quickswitch
).
Everything is also explained in a tutorial and a Gentoo newsletter (btw. two years old ;).
And one more thing about the network configurations: I have to use two mail servers, so for my Thunderbird I defined only one mailserver — I called it mailserver
. Then I have two hosts
files: /etc/hosts.home
and /etc/hosts.work
, where an alias is set, e.g.:
-
123.456.789.012 mail.chello.sk mailserver
In a QuickSwitch configuration the hosts file can be set with the usehosts=/etc/hosts.home
line. It will create a symbolic link.
The actual configuration is changed very easily:
switchto home
or
switchto work
Nice, isn’t it? :)