Re: how to switch between different network configurations?
Zhengquan Zhang mailing list [EMAIL PROTECTED] 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 networking. Since you are already using /etc/network/interfaces take a look at man ifup Especially see ifup eth0=home On my laptop, the analogue is ifup eth1=home because the wireless interface is eth1. The next suggestion I have *not* tested, but it is also in man ifup -i FILE, --interfaces=FILE Read interface definitions from FILE instead of from /etc/net- work/interfaces. 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. -- Hugh Lawson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
how to switch between different network configurations?
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 networking. Is there any easier and smarter way of doing this? Thank you! Regards: Zhang -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to switch between different network configurations?
On Wed, 2007-03-21 at 21:56 +0800, Zhengquan Zhang mailing list wrote: 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 networking. Is there any easier and smarter way of doing this? Try guessnet and related tools, see http://www.debian-administration.org/articles/312 -- Cheers, Sven Arvidsson http://www.whiz.se PGP Key ID 760BDD22 signature.asc Description: This is a digitally signed message part
Re: how to switch between different network configurations?
Zhengquan Zhang mailing list wrote: 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 networking. Is there any easier and smarter way of doing this? Take a look at network-manager. You can switch between different profiles. -HS Thank you! Regards: Zhang -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to switch between different network configurations?
H.S. wrote: Zhengquan Zhang mailing list wrote: 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 networking. Is there any easier and smarter way of doing this? Take a look at network-manager. You can switch between different profiles. -HS IIRC wpasupplicant can handle multiple networks. Just put the different networks in a conf file, point /etc/network/interfaces to this file and it *should* do the rest. No need to enter anything unless the keys change. HTH Wackojacko Thank you! Regards: Zhang -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to switch between different network configurations?
On Wed, 21 Mar 2007 21:56:13 +0800 Zhengquan Zhang mailing list [EMAIL PROTECTED] wrote: 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 networking. Is there any easier and smarter way of doing this? Thank you! ifscheme Celejar -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to switch between different network configurations?
Wackojacko wrote: H.S. wrote: Zhengquan Zhang mailing list wrote: 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 networking. Is there any easier and smarter way of doing this? Take a look at network-manager. You can switch between different profiles. -HS IIRC wpasupplicant can handle multiple networks. Just put the different networks in a conf file, point /etc/network/interfaces to this file and it *should* do the rest. No need to enter anything unless the keys change. HTH Wackojacko So if I were to go to an internet cafe, I would need to put that network's configuration in the conf file as well, wouldn't I? And is that conf file writable only by root? -HS -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to switch between different network configurations?
H.S. wrote: Wackojacko wrote: H.S. wrote: Zhengquan Zhang mailing list wrote: 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 networking. Is there any easier and smarter way of doing this? Take a look at network-manager. You can switch between different profiles. -HS IIRC wpasupplicant can handle multiple networks. Just put the different networks in a conf file, point /etc/network/interfaces to this file and it *should* do the rest. No need to enter anything unless the keys change. HTH Wackojacko So if I were to go to an internet cafe, I would need to put that network's configuration in the conf file as well, wouldn't I? Yes, but the OP talked about three different but frequently used networks, for this I think wpasupplicant would be better. And is that conf file writable only by root? I'm not sure, but as you can put the conf file anywhere I suppose it may be possible to put it in home and make it user editable. Untested though :) HTH Wackojacko -HS -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to switch between different network configurations?
Zhengquan Zhang mailing list wrote: Is there any easier and smarter way of doing this? There should be no need to edit interfaces every time you want to change network profiles - there are lots of tools out there to try, or you could use something a little simpler, such as native debian networking initialization tools like logical interfaces or scripted interface mapping: http://www.debian.org/doc/manuals/reference/ch-gateway.en.html#s-net-reconf I use mapping for my wireless interface with the Automatic WLAN Picker Script below for roughly a dozen locations and a fallback for any open AP - works beautifully: https://help.ubuntu.com/community/WifiDocs/WiFiHowTo Kind Regards, Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to switch between different network configurations?
On Wed, Mar 21, 2007 at 09:56:13PM +0800, Zhengquan Zhang mailing list wrote: 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 networking. Is there any easier and smarter way of doing this? Thank you! Regards: Zhang Packages: network-manager-gnome / network-manager-kde Executables: nm-applet / kdenetworkmanager You'll need a system tray to be able to use those programs though, if you're using Window Maker try wmsystray, GNOME/KDE/Xfce have them by default and I believe Fluxbox has it as well. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to switch between different network configurations?
On 3/21/07, Michael Pobega [EMAIL PROTECTED] wrote: On Wed, Mar 21, 2007 at 09:56:13PM +0800, Zhengquan Zhang mailing list wrote: 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 networking. Is there any easier and smarter way of doing this? Thank you! Regards: Zhang Packages: network-manager-gnome / network-manager-kde Executables: nm-applet / kdenetworkmanager You'll need a system tray to be able to use those programs though, if you're using Window Maker try wmsystray, GNOME/KDE/Xfce have them by default and I believe Fluxbox has it as well. In kde, Executables is knetworkmanager -- L.V.Gandhi http://lvgandhi.tripod.com/ linux user No.205042
Re: how to switch between different network configurations?
On Wed, Mar 21, 2007 at 07:41:56PM -0700, L.V.Gandhi wrote: On 3/21/07, Michael Pobega [EMAIL PROTECTED] wrote: Packages: network-manager-gnome / network-manager-kde Executables: nm-applet / kdenetworkmanager You'll need a system tray to be able to use those programs though, if you're using Window Maker try wmsystray, GNOME/KDE/Xfce have them by default and I believe Fluxbox has it as well. In kde, Executables is knetworkmanager Woops, excuse my mistake on that one. I personally don't use KDE so I really can't remember much about the week I spent in it. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]