View previous topic :: View next topic |
Author |
Message |
realshaft n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Dec 2005 Posts: 5
|
Posted: Thu Dec 15, 2005 11:15 pm Post subject: wlan and changing locations [SOLVED] |
|
|
Hi
I'm using wpa_supplicant to connect to my ap. If Im changing my position and would like to connect to another ap, i dont want to edit my /etc/conf.d/net or do the necessary changes manually with. So I read here
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4#doc_chap4
how i can automatically switch between (for example) dhcp and static ip (based on the essid or mac-address).
But what exactly have i to do to get this working? The "important" note doesnt help, the description is too short. Does anybody know where i get the information to write such "rules"?
thx in advance ![Wink ;-)](images/smiles/icon_wink.gif)
Last edited by realshaft on Thu Dec 15, 2005 11:51 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dgaffuri Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Thu Dec 15, 2005 11:25 pm Post subject: |
|
|
What exactly is not clear in the guide? Please, describe what you're trying to do. _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Thu Dec 15, 2005 11:33 pm Post subject: |
|
|
Section 9 seems to describe what you'd need.
Quote: | config_ESSID1=( "192.168.0.3/24 brd 192.168.0.255" )
routes_ESSID1=( "default via 192.168.0.1" )
config_ESSID2=( "dhcp" )
fallback_ESSID2=( "192.168.3.4/24" )
fallback_route_ESSID2=( "default via 192.168.3.1" )
|
You could follow the link for variable names to more understand the naming convention. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
realshaft n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Dec 2005 Posts: 5
|
Posted: Thu Dec 15, 2005 11:39 pm Post subject: |
|
|
dgaffuri wrote: | What exactly is not clear in the guide? Please, describe what you're trying to do. |
If my essid is XXX and i write in my /etc/conf.d/net
Code: |
modules_wlan0=( "!ifconfig" "wpa_supplicant" )
config_XXX=( "xxx.xxx.xxx.xxx netmask [...]")
routes_XXX=( "default gw xxx.xxx.xxx.xxx" )
wpa_supplicant_wlan0="-D wext"
wpa_timeout_wlan0=25
|
and start /etc/init.d/wlan0 and connect to the ap "XXX" i've got the message taht wlan0 isnt configured and it assumes dhcp and starts dhcpcd. How can i set my ips for my AP and when i connect to others, it should use dhcp or another ip, depending what is given in the net conf? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
realshaft n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Dec 2005 Posts: 5
|
Posted: Thu Dec 15, 2005 11:41 pm Post subject: |
|
|
magic919 wrote: | Section 9 seems to describe what you'd need. |
yes, but that doesnt work. See above.
Quote: | You could follow the link for variable names to more understand the naming convention. |
As I said, this info isnt helpful. I dont understand this name convention. :-( |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
realshaft n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Dec 2005 Posts: 5
|
Posted: Thu Dec 15, 2005 11:46 pm Post subject: |
|
|
magic919 wrote: | Section 9 seems to describe what you'd need. |
btw, why section 9? cant find any related topics there.... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
realshaft n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Dec 2005 Posts: 5
|
Posted: Thu Dec 15, 2005 11:51 pm Post subject: |
|
|
im just a bit stupid, i wrote a capital letter instead of a lower case letter ....
Im was working on it for 2 hours ....
anyway -> thank you for help (and sorry for the post ). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Fri Dec 16, 2005 1:19 am Post subject: |
|
|
Glad it worked out. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|