I was having the annoying problem that my wlan0 configuration in /etc/network/interfaces was different at home and at work. This is quite normal really, the essid and the key are expected to be different. The problem was that every time i changed location i had to redit my /etc/network/interfaces file and ifdown wlano, ifup wlan0 in order to connect to the new network.

I now have a solution: ifscheme

I configured it with apt. The versión that i got at the time of writing was 1.3-3.

How to use it

install with apt

edit /etc/network/interfaces

set current scheme with $> ifscheme <scheme name>. In my case at home this is $> ifscheme home

Curious if this is still being checked on. I LOVE ifscheme. Finding this post has made things much easier.

I have run into an issue that I cannot pin down though. I have a home server that is connected to one wifi network part of the day, and a separate network the rest of the day. With dhcp they work perfectly, but if I set them both to have a static IP, I can only get one of the networks to connect at a time. That is, “ping-c 3 http://www.google.com” works with one, but if I switch to the other that command returns unreachable host. It’s not a specific one that is working either. Usually after a reboot I can make the other work, but not the first one.