View previous topic :: View next topic |
Author |
Message |
wisemonkey n00b
Joined: 14 Mar 2013 Posts: 45
|
Posted: Wed Apr 03, 2013 2:56 pm Post subject: |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Wed Apr 03, 2013 3:59 pm Post subject: |
|
|
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Apr 03, 2013 5:29 pm Post subject: |
|
|
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 |
|
|
wisemonkey n00b
Joined: 14 Mar 2013 Posts: 45
|
Posted: Sat Apr 06, 2013 2:14 am Post subject: |
|
|
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 |
|
|
|