Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wlan and changing locations [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
realshaft
n00b
n00b


Joined: 15 Dec 2005
Posts: 5

PostPosted: Thu Dec 15, 2005 11:15 pm    Post subject: wlan and changing locations [SOLVED] Reply with quote

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 ;-)


Last edited by realshaft on Thu Dec 15, 2005 11:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Thu Dec 15, 2005 11:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Thu Dec 15, 2005 11:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
realshaft
n00b
n00b


Joined: 15 Dec 2005
Posts: 5

PostPosted: Thu Dec 15, 2005 11:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
realshaft
n00b
n00b


Joined: 15 Dec 2005
Posts: 5

PostPosted: Thu Dec 15, 2005 11:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
realshaft
n00b
n00b


Joined: 15 Dec 2005
Posts: 5

PostPosted: Thu Dec 15, 2005 11:46 pm    Post subject: Reply with quote

magic919 wrote:
Section 9 seems to describe what you'd need.


btw, why section 9? cant find any related topics there....
Back to top
View user's profile Send private message
realshaft
n00b
n00b


Joined: 15 Dec 2005
Posts: 5

PostPosted: Thu Dec 15, 2005 11:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Fri Dec 16, 2005 1:19 am    Post subject: Reply with quote

Glad it worked out.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum