Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wireless wpa problem (yet another...)
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
nadi
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 280
Location: Norway

PostPosted: Wed Aug 10, 2005 2:19 am    Post subject: wireless wpa problem (yet another...) Reply with quote

Hei dudes,

I have looked and looked in the forum nad the wiki, and did not resolve the problem:

1. I want to use wireless ONLY if eth0 failes, i.e. if my regular lan is not connected. This way I don't need to wait 40 seconds until it scans the ath0 and does not find any wireless. Moreover, I don't want any wireless if I have lan cable connected.
2. How do I use wireless without ssid , I mean, I want to use wireless in a cafe or in hte university, so the ssid changes all the time (or was it essid? sorry, I am quite a n00b in wireless). it is an unsecure connection also. How do I do that, I mean, how the configuration file etc/wpa-suuplicant.conf should look like?

Thanks a lot
Nadi
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Aug 10, 2005 9:03 am    Post subject: Reply with quote

Get ifplugd to control your wired interface. This is well documented.

A combination of baselayout-1.12.0_pre4 and wpa_supplicant-0.4.x will allow net.ath0 launching wpa_supplicant, and timing out after 1 second but we stay active scanning for AP's and when one comes in range we configure the interface correctly. Any earlier version of baselayout or wpa_supplicant won't do this.

I'm not sure if wpa_supplicant allows connecting to a non-defined ESSID yet.
Back to top
View user's profile Send private message
nadi
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 280
Location: Norway

PostPosted: Wed Aug 10, 2005 10:32 am    Post subject: Reply with quote

thanks UberLord. I will look into it today. I think I read that essid will work on the other method (iwconfig), so I will give it a try.

N
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Aug 10, 2005 10:42 am    Post subject: Reply with quote

Although iwconfig (via baselayout) can connect to any publically available access point and configure for it there are some drawbacks

1) It's one time only - scanning and association only happen when net.xxx is run so you have to manually restart it to try and connect to something else
2) It will delay your boot times. baselayout-1.12.x supports backgrounding iwconfig scanning and connection, but this is experimental and may not work to your tastes.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
rapolder
n00b
n00b


Joined: 19 Mar 2005
Posts: 28

PostPosted: Mon Aug 22, 2005 1:35 pm    Post subject: Reply with quote

Hi,

I recently upgraded to baselayout 1.12.x, too. I have to network interface: eth0 and ath0. ath0 is my builtin atheros wireless card. I use /etc/init.d/net.eth0 and /etc/init.d/net.ath0 as symlink to net.lo since a while.

Code:
egrep "^\s*[^#]" /etc/conf.d/net
modules=( "wpa_supplicant" )
wpa_supplicant_ath0="-Dmadwifi" # For Atheros based cards
associate_timeout_ath0=20
config_ath0=( "dhcp" )
dhcpcd_ath0="-N -t 10"
config_eth0=( "dhcp" )
dhcpcd_eth0="-N -t 20"


I use net.ath0 in a different runlevel and it shouldn't start up for default.
But since baselayout 1.12 net.ath0 starts up too. thereis the ath0 device, it is connected to my AP and net.ath0 -status says: started

rc-status does not show net.ath0 to be started.

So what's the problem?

Thank you in advance[/code]
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Aug 22, 2005 1:39 pm    Post subject: Reply with quote

If you don't want hotplug to start your network card, you have to tell hotplug to blacklist your module.

Oh and hotplug will do this by default - it just has to be on your system.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
rapolder
n00b
n00b


Joined: 19 Mar 2005
Posts: 28

PostPosted: Mon Aug 22, 2005 3:05 pm    Post subject: Reply with quote

hm, hotplug is installed!?
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