Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpcd does not start automatically
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
poseidon1157
n00b
n00b


Joined: 27 Jun 2011
Posts: 8

PostPosted: Tue Jul 12, 2011 10:35 pm    Post subject: dhcpcd does not start automatically Reply with quote

Hi all,

Looks like dhcpcd doesn't start properly after wpa_supplicant association. Here are my configs:
/etc/conf.d/net
Code:
#modules=( "iproute2" )

modules=( "wpa_supplicant" )
wpa_supplicant_wlan="-iwlan"

modules=( "dhcpcd" )

config_wlan=( "dhcp" )
dhcpcd_wlan="-t 5"
#routes_wlan=( "192.168.0.0/24 via 192.168.0.1" )

config_eth=( "dhcp" )
dhcpcd_eth="-t 5"


/etc/dhcpcd.conf
Code:

hostname
option domain_name
option classless_static_routes
require dhcp_server_identifier


dmesg|tail -n 9
Code:

[ 2801.791398] cfg80211: Calling CRDA to update world regulatory domain
[ 2802.042718] ADDRCONF(NETDEV_UP): wlan: link is not ready
[ 2803.284585] wlan: authenticate with 00:24:7b:f3:c1:18 (try 1)
[ 2803.287223] wlan: authenticated
[ 2803.287265] wlan: associate with 00:24:7b:f3:c1:18 (try 1)
[ 2803.291112] wlan: RX AssocResp from 00:24:7b:f3:c1:18 (capab=0x411 status=0 aid=2)
[ 2803.291115] wlan: associated
[ 2803.299646] ADDRCONF(NETDEV_CHANGE): wlan: link becomes ready
[ 2813.447926] wlan: no IPv6 routers present


This is a minor issue, however it requires me to run the command "dhcpcd wlan" every time I restart /etc/init.d/net.wlan . After that connectivity works fine. Any advice?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Wed Jul 13, 2011 12:03 am    Post subject: Reply with quote

Quote:
modules="dhcpcd"
modules_wlan0="wpa_supplicant"
wpa_supplicant_wlan0="-Dwext"
wpa_timeout_wlan0=15
iwconfig_wlan0_mode="Managed"
dhcpcd_wlan0="-t 10"

modules_eth0="ifconfig"
dhcpcd_eth0="-t 10"
unless ifconfig really sees your interfaces as eth and wlan instaed of eth0 and wlan0
_________________
Defund the FCC.
Back to top
View user's profile Send private message
poseidon1157
n00b
n00b


Joined: 27 Jun 2011
Posts: 8

PostPosted: Wed Jul 13, 2011 2:30 am    Post subject: Yup Reply with quote

It does, compliments of udev. :)

Also, -Dwext breaks wpa_supplicant on my wireless chipset (AR9285). wpa_supplicant isn't the problem here.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1783

PostPosted: Wed Jul 13, 2011 2:56 am    Post subject: Reply with quote

Since you're using just dhcpcd anyway, you can try to remove net.eth and net.wlan from the default runlevel and instead add wpa_supplicant and dhcpcd services - see if that works

(just make sure the corresponding configuration in /etc/conf.d is correct)
_________________
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Back to top
View user's profile Send private message
poseidon1157
n00b
n00b


Joined: 27 Jun 2011
Posts: 8

PostPosted: Wed Jul 13, 2011 2:04 pm    Post subject: Fixed Reply with quote

That did work. As I understand it, /etc/conf.d/net is no longer used for anything now. Is that accurate? Will activating wpa_supplicant and dhcpcd directly from init create conflicts if I, for example, try to use dhcpd [sic] on eth? Can I still configure eth independently via conf.d/net?
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Wed Jul 13, 2011 2:10 pm    Post subject: Reply with quote

this might be relevant:
https://forums.gentoo.org/viewtopic-t-885752-highlight-dhcpcd.html
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3809
Location: Hamburg

PostPosted: Wed Jul 13, 2011 3:58 pm    Post subject: Reply with quote

There was recently a bug in a wpa_supplicant's script file - re-emerge it if nexessary.
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