Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get wireless working?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
wisemonkey
n00b
n00b


Joined: 14 Mar 2013
Posts: 45

PostPosted: Wed Apr 03, 2013 2:56 pm    Post subject: Reply with quote

I've kept the topic open, since currently I'm using 2 step process: 1. Connect, 2. get IP and wanted to see if I can let any one of these tools handle it automatically.

If wpa_supplicant can't handle getting IP over dhcp then this thread should be closed as resolved.

Thanks :)
Back to top
View user's profile Send private message
khayyam
Veteran
Veteran


Joined: 07 Jun 2012
Posts: 1545

PostPosted: Wed Apr 03, 2013 3:59 pm    Post subject: Reply with quote

wisemonkey wrote:
If wpa_supplicant can't handle getting IP over dhcp then this thread should be closed as resolved.

wisemonkey ... from your previous it looks like you are running wpa_supplicant from /etc/init.d and not via /etc/init.d/net.${IFACE} ... for this reason dhcpcd isn't started as its not configured to do so.

The following is an example of how it migh be configured via /etc/conf.d/net

Code:
modules_wlan0="!plug wpa_supplicant dhcpcd"
wpa_supplicant_wlan0="-Dnl80211 -qq"
wpa_timeout_wlan0="15"
config_wlan0="dhcp"
enable_ipv6_wlan0="false"

This informs /etc/init.d/net.wlan0 to use wpa_supplicant and dhcpcd to configure the interface, wpa_supplicant is passed '-Dnl80211' as the driver and '-qq' (quiet). With such a configuration when /etc/init.d/net.wlan0 is started wpa_supplicant will be also, and dhcpcd will be started subsequently to aquire an IP address.

The fact that there is a /etc/init.d/wpa_supplicant is perhaps a source of confusion, as net.${IFACE} can be configured to start wpa_supplicant on the interface via /etc/conf.d/net.

HTH & best ... khay
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6251
Location: Goose Creek SC

PostPosted: Wed Apr 03, 2013 5:29 pm    Post subject: Reply with quote

if you coose to follow khay's excellent advice you will need to remake /etc/init.d/net.wlan0, to do so:
Code:
ln -s cd /etc/init.d/net.lo /etc/init.d/net.wlan0
get rid of wicd and networkmanager
Code:
emerge -C wicd networkmanager
clean up runlevels, if you get responses indicating specific actions were already accomplished, that's fine
Code:
rc-update del wicd
rc-update del dhcpcd
rc-update del networkmanager
rc-update del wpa_supplicant
rc-update add net.lo  boot
rc-update add net.wlan0 default[

edit /etc/wpa_supplicant/wpa_supplicant.conf to include
Quote:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
ap_scan=0
update_config=1

reboot to your desktop and use wpa_gui to setup your network.

http://wiki.gentoo.org/wiki/Wpa_supplicant refers
_________________
Defund the FCC.


Last edited by DONAHUE on Sat Apr 06, 2013 2:56 am; edited 1 time in total
Back to top
View user's profile Send private message
wisemonkey
n00b
n00b


Joined: 14 Mar 2013
Posts: 45

PostPosted: Sat Apr 06, 2013 2:14 am    Post subject: Reply with quote

DONAHUE wrote:
if you coose to follow khay's excellent advice you will need to remake /etc/init.d/net.wlan0, to do so:
Code:
ln -s cd /etc/init.d/net..lo /etc/init.d/net.wlan0
get rid of wicd and networkmanager
Code:
emerge -C wicd networkmanager
clean up runlevels, if you get responses indicating specific actions were already accomplished, that's fine
Code:
rc-update del wicd
rc-update del dhcpcd
rc-update del networkmanager
rc-update del wpa_supplicant
rc-update add net.lo  boot
rc-update add net.wlan0 default[

edit /etc/wpa_supplicant/wpa_supplicant.conf to include
Quote:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
ap_scan=0
update_config=1

reboot to your desktop and use wpa_gui to setup your network.

http://wiki.gentoo.org/wiki/Wpa_supplicant refers


Thanks got it working :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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