-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thierry de Coulon wrote:
Hello,
I'm running 10.2 on a Thinkpad X60. I've setup the network to *not* use networkmanager. I've setup the wired network and the wifi card to use fixed IPs because that's what I am using on my network.
As obviously I could not get both cards to run at the same time (it seems this should be feasible if I understand right but it did not work), so I've created two scripts than either turn the wired eth0 card off and the wifi card eth1 on, or the other way round, then two icons in kicker, all that remains is to enter the root password to let them run.
This setup works fine for me (provided I remember to use the slider that locks the wifi off of course, I always forget that one).
Now, my problem is this: I will soon be back at work, where I can hook myself on a wireless network that uses DHCP *and* requires me to use the right DNS values. Now:
- is it possible to easily specify several wifi configurations, if possible including DNS values? Mac OS X does do that, you can save several configs and load the one you need here or there. Do we have anything approaching?
- should I go for a bunch of scripts that would ifconfig everything each time I turn a network device on (if I remember correctly I should be able to use ifconfig to setup IP or DHCP, and route to add the gateway. I don't know if I can change the gateway "on the fly" however).
Anyone has experience with such stuff?
Regards, Thierry
It is relatively straightforward to change IP related settings on an extant wired device, but a bit more problematic with secure wireless connections (in any environment with any OS BTW). In linux WPA support is usually a function of wpa_supplicant, I have not explored how this is used in SuSE 10.2 in any depth, but have been forced to work with it directly in 9.x. The key file for this is in /etc/sys/config/network and usually named as following form (this may vary as I suspect the wlan bit is a interface device spec and if you are using ethx it will probably be eth).. ifcfg-wlan-id-<card mac address> the ifcfg bit seems to be an indicator for the if tools which use the parameters in this file, the mac address is the unique identifier. There is a template for this file somewhere but I cannot remember where I found it. A simple trick would be to write a small script which .... a) ifdown current WiFi connection... b) copies appropriate WiFi config to the ifcfg file c) ifup WiFi connection I do not use this now because some quirks in my hardware mean I need to use hwup and hwdown rather than ifup and ifdown (or whatever the new equivalent is) so I cannot verify whether this would work with 10.x but I did do this when I had 9.x on this machine and it worked then. - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGuszxasN0sSnLmgIRAqazAKDyPmD3CyGeK6ubjOnyw04W/4F/NACfcQwK LZCWiKQ2X2V/flTLWKW4gf4= =49z8 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org