You are not logged in.
Pages: 1
Hi everybody,
I had a problem with netctl and dhcpcd.
I was using netctl and wifi-menu to connect to wirelless networks with dhcp.
It worked fine at home, then i went to a friend where it also worked but then i went back home and it failed at every try with those error messages:
dhcpcd[2718]: version 6.0.5 starting
dhcpcd[2718]: wlp9s0: rebinding lease of 192.168.1.154
dhcpcd[2718]: wlp9s0: reject NAK via 192.168.178.1
dhcpcd[2718]: wlp9s0: soliciting a DHCP lease
dhcpcd[2718]: wlp9s0: offered 192.168.178.44 from 192.168.178.1
dhcpcd[2718]: timed out
network[2659]: DHCP IP lease attempt failed on interface 'wlp9s0'
systemd[1]: netctl@wlp9s0\xxx.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Failed to start Automatically generated profile by wifi-menu.
systemd[1]: Unit netctl@xxx.service entered failed state.
I figured that dhcpcd tried to rebind an ip that my router rejected and didn't accept the ip that it offered instead.
The solution was to delete:
/var/lib/dhcpcd/dhcpcd-wlp9s0.lease
now how can i configure netctl and or dhcpcd so that won't happen again and that it accepts all ips offered by routers?
Last edited by Samy (2013-09-04 13:32:13)
Offline
See if you can either increate the timeout of the dhcpcd process or simply disable the timeout altogether. This can be done in the network profile generated by wifi-menu (in /etc/netctl). See the netctl.profile for more info.
Offline
I've had this happen now and again. You can rebind the lease yourself with:
$ dhcpcd --rebind You could also try increasing the timeout by adding
TimeoutDHCP= to your netctl profile/s - see netctl.profile(5) as WonderWoofy suggests. Although I haven't tried the latter.
Last edited by youngdm (2013-09-01 22:01:05)
Offline
Hi thank you all for your replies, i added TimeoutDHCP=15s to my netctl proflies and now it seems to work.
Offline
Thanks for the information. I've had the same issue with my home wireless network. Adding the same line to the netctl profile seems to work for me too.
Offline
Pages: 1