Using /etc/network/interfaces to Connect With Two Different Networks
I've read and reread the man interfaces page, but I'm still a little confused. I have two networks I'd like to specify in /etc/network/interfaces, one is WPA-PSK, the other WEP. According to the man page, I should just be able to:
Code:
auto lo
iface lo inet loopback
mapping wlan0
script /usr/local/sbin/map-scheme
map HOME wlan0-home
map WORK wlan0-work
auto wlan0
iface wlan0-home inet dhcp
wireless-essid XXXXX
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
wireless-rate 54M
iface wlan0-work inet dhcp
wireless-essid XXXXX
wireless-key XXXXX
wireless-rate 54M
Now, all that makes sense to me save one thing: there's no default /usr/local/sbin/map-scheme file. I took that to mean I needed to write my own or find one, but I'm at a loss. Why would the man page be so vague? And, what should go in that map-scheme file?
Help! (Thanks, in-advance.)
EDIT:
Could it be as simple as this? Well, obviously not because I just tried it. Is there more I need to specify in the mapping section?
Last edited by moore.bryan; August 12th, 2009 at 05:23 PM.
Asus EeePC 1005HA: ElementaryOS Luna | Asus X501A: Windows 8.1 & Ubuntu GNOME 14.10 Utopic Unicorn | Apple iMac G4: Ubuntu 12.04 Precise Pangolin | LG Optimus F3: Stock v7 | Nexus 10 Cyanogenmod 11
Bookmarks