I am fairly new to linux and this is more of a curiosity question than a problem. I haul my laptop between two different places and was wondering how I can set up two different configs, being able to load either quickly. I’m running openSUSE 11.2 and use KDE4, but I don’t use Knetworkmanager to manage my network, I use ifup (although I don’t know too much about that either).
network Manager is the way to go for quickly switching wireless connections.
On 01/07/2010 10:36 PM, rashj3 wrote:
>
> I am fairly new to linux and this is more of a curiosity question than a
> problem. I haul my laptop between two different places and was wondering
> how I can set up two different configs, being able to load either
> quickly. I’m running openSUSE 11.2 and use KDE4, but I don’t use
> Knetworkmanager to manage my network, I use ifup (although I don’t know
> too much about that either).
What you need is to use NetworkManager. You can create a connection for every AP
to which you might connect. If you use ifup, you need to change the
configuration file for every AP change.
Alright, thank you for the replies.
Is it possible then to create another ifcfg-wlan0 with the new router information in a subdirectory called “test” and every time you wanted switch wifi connections, you just did a mv to switch the files?
# mv -u ifcfg-wlan0 /test/ifcfg-wlan0
# ifconfig wlan0 up
then to switch it back you do
#mv -u /test/ifcfg-wlan0 ifcfg-wlan0
#ifconfig wlan0 up
Is my logic correct in doing this? And if so, did I use the correct commands to make this work? Im doing some brainstorming, and figured this might be the easiest way without using the gui network manager.
You can always do such things, but it is not a good idea to log in as root and do such things whenever you want to switch networks.
Another idea is to use Profile manager.
K I’ll definitely have to check out profile manager. But do you happen to know if the commands I used in my previous post will accomplish switching the cfg file and initiating the new file? Not 100% sure if the mv command will forfill that need.
Thank you for your reply!
Your concept is OK. However, you need to first bring down the interface, save the current configuration (with a proper name) and then, move in the new configuration.
Profile manager essentially do these things.