View previous topic :: View next topic |
Author |
Message |
epsilon72 Guru


Joined: 20 Sep 2007 Posts: 568
|
Posted: Mon Aug 25, 2008 10:45 pm Post subject: Can't figure out - multiple essid's, different configs |
|
|
I've looked at the gentoo-wiki page and the gentoo linux handbook pages for this, but they're both too convoluted for me to figure out.
I have two essid's that I want to connect to with interface wlan0.
Essid #1 is:
1)unsecured
2) needs to use the following configuration settings:
Code: |
config_wlan0= ( "nodns" )
config_wlan0= ( "192.168.0.253/24" )
routes_wlan0=( "default gw 192.168.0.1" )
dns_search_wlan0=( "my_isp_here" )
dns_servers_wlan0=( "my isp's dns servers here" )
|
The above may not be exactly the way it's supposed to be done, but it works on my desktop. (wlan0 is my laptop's wireless)
Essid #2 is:
1)unsecured
2)needs to use dhcp and dhcpcd
Essid #1 needs to be preferred.
How would I set something like this up? The handbook said something about using name variables like config_ESSID#1NAMEHERE or something, but I couldn't get it to work correctly because they don't provide very many examples.
Any help provided would be greatly appreciated! |
|
Back to top |
|
 |
nanoczar Apprentice


Joined: 10 Dec 2002 Posts: 192 Location: Henderson, TN
|
Posted: Tue Aug 26, 2008 8:31 pm Post subject: |
|
|
I have my different connections set up as scripts that I just execute after I boot into my linux laptop.
I have several scripts for different places (home, work, parents, etc.).
-nanoczar _________________ Don't fight the LaTeX. WORK with the LaTeX!! Become one with the LaTeX!!! - JIC |
|
Back to top |
|
 |
epsilon72 Guru


Joined: 20 Sep 2007 Posts: 568
|
Posted: Wed Aug 27, 2008 2:42 am Post subject: |
|
|
I've seen some examples of people doing that too with different runlevels and such. I may try it eventually, but I'd like to see if I can go the fancy conf.d/net file route first though. I know it can be done (gentoo handbook says it can, at least...), I just don't know how to do it. |
|
Back to top |
|
 |
nanoczar Apprentice


Joined: 10 Dec 2002 Posts: 192 Location: Henderson, TN
|
Posted: Thu Aug 28, 2008 2:07 pm Post subject: |
|
|
Good luck. I will keep my eye on this thread because I would like to do the same thing but don't have the time to mess with it. _________________ Don't fight the LaTeX. WORK with the LaTeX!! Become one with the LaTeX!!! - JIC |
|
Back to top |
|
 |
epsilon72 Guru


Joined: 20 Sep 2007 Posts: 568
|
Posted: Mon Sep 29, 2008 9:09 pm Post subject: |
|
|
After dhcpcd 4.0.1_r1 (upgraded to it) broke my wireless capabilities today I was inspired to give this another go again.
As far as I can tell, net.wlan0 (my interface) doesn't even pay attention to my /etc/conf.d/net file whatsoever!
I tried to configure it very simply as a test to see if I could get it to be static no matter what - and no matter what I tried it would not pay attention to the way I was telling it to be configured. It would complain about the configuration being "not set", and would try dhcp'ing.
Maybe I should just be happy with dhcpcd, rather than static at home... (that's dhcpcd 3.2.3 however - 4.0.1_r1 is completely broken!)
EDIT: Actually, if someone knows a command to be able to connect to dns servers, I might be able to manually (line by line) set up my wireless connection differently for home with a shell script. I've found the way to assign a static IP to wlan0, and a way to connect to my router after that, but that's as far as I can get. |
|
Back to top |
|
 |
|