You are not logged in.

#1 2016-03-21 20:15:01

Nagefire
Member
Registered: 2016-03-21
Posts: 11

dhcpcd cannot secure a DHCP lease

I was using wifi-menu to connect to my relative's wifi, and it worked fine, until I rebooted, so I know that there were no errors before. I also moved to an area of the house with a weaker connection and dhcpcd began failing to secure a IPv6 address, and then didn't secure a DHCP lease. When I found out that my ping wasn't working due to IPv6 not working, I killed all network related processes, and ran wpa_supplicant with the appropriate arguments and then ran dhcpcd.
Here is the configuration file for netctl:

Description='Automatically generated profile by wifi-menu'
Interface=wlp2s0
Connection=wireless
Security=wpa
ESSID=ATTg9kwjdS
IP=dhcp
Key=twb54m5gvip7

Here is a link to the error log:
sudo dhcpcd -6 -d -t 0 -L wlp2s0 -j "~/dhcpcd.log"
dhcpcd-6.10.1 starting
wlp2s0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
wlp2s0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' CARRIER
DUID 00:01:00:01:1e:56:05:4a:64:5a:04:81:0b:3c
wlp2s0: IAID 04:81:0b:3c
wlp2s0: delaying IPv6 router solicitation for 0.1 seconds
wlp2s0: soliciting an IPv6 router
wlp2s0: sending Router Solicitation
wlp2s0: sending Router Solicitation
wlp2s0: Router Advertisement from fe80::be4d:fbff:fe9d:f9d2
wlp2s0: ignoring RA from fe80::be4d:fbff:fe9d:f9d2 (no public prefix, no managed address)
wlp2s0: reading lease `/var/lib/dhcpcd/dhcpcd-wlp2s0-suddenlink.net-F9D0.lease6'
wlp2s0: soliciting a DHCPv6 lease
wlp2s0: delaying SOLICIT6 (xid 0x73085b), next in 0.1 seconds
wlp2s0: broadcasting SOLICIT6 (xid 0x73085b), next in 1.0 seconds
wlp2s0: broadcasting SOLICIT6 (xid 0x73085b), next in 1.9 seconds
wlp2s0: broadcasting SOLICIT6 (xid 0x73085b), next in 3.7 seconds
wlp2s0: Router Advertisement from fe80::be4d:fbff:fe9d:f9d2
wlp2s0: ignoring RA from fe80::be4d:fbff:fe9d:f9d2 (no public prefix, no managed address)
wlp2s0: sending Router Solicitation
received SIGINT, stopping
wlp2s0: removing interface
wlp2s0: adding route to fd00:8494:8c33:f7a2::/64
wlp2s0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' STOPPED
dhcpcd exited

As far as I can figure, dhcpcd fails because I can't secure an IPv6 address, and this only occurs because the hooks will not accept the RA's. The error resolved when I came closer to the access point, and I have no idea why it occured. The router brand was suddenlink, and I've had the same problem with dhclient on debian, with only the suddenlink router brand.

Offline

#2 2016-03-22 00:06:52

branch
Member
Registered: 2014-03-16
Posts: 209

Re: dhcpcd cannot secure a DHCP lease

Nagefire wrote:

wlp2s0: delaying SOLICIT6 (xid 0x73085b), next in 0.1 seconds
wlp2s0: broadcasting SOLICIT6 (xid 0x73085b), next in 1.0 seconds
wlp2s0: broadcasting SOLICIT6 (xid 0x73085b), next in 1.9 seconds
wlp2s0: broadcasting SOLICIT6 (xid 0x73085b), next in 3.7 seconds

This means dhcpcd is not getting a response from a DHCPv6 server. Do you have one running? If not, it may have been working before with SLAAC (see below).

Nagefire wrote:

wlp2s0: ignoring RA from fe80::be4d:fbff:fe9d:f9d2 (no public prefix, no managed address)

This means that you are receiving a router advertisement, but it neither contains a prefix suitable for SLAAC nor instructs clients to configure over DHCPv6. So the router is essentially saying it can't help you configure IPv6.

My best guess is that it was working over SLAAC but now your router is not getting a prefix to delegate, and so can no longer facilitate SLAAC. You can see the RA's your client receives with radvdump from the radvd package.

Offline

#3 2016-03-22 13:05:07

Nagefire
Member
Registered: 2016-03-21
Posts: 11

Re: dhcpcd cannot secure a DHCP lease

I did reconfigure the netctl config for SLAAC, but that failed as well, for unknown reasons (I was unable to get output pertinent to SLAAC). I think it may have something to do with another error I'm receiving with wifi-menu. When I run it directly after booting, it fails, and this appears in dmesg:
IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
If I wait a minute and try again, wifi-menu runs fine and nothing appears in dmesg. Changing the state of wlp2s0 with
ip link set wlp2s0 (up|down)
seems to have no effect on this either. The error doesn't occur when I configure wireless with
sudo netctl start wlp2s0-"wifi-name"
for some reason, but the message still appears if I look in dmesg. I will try radvdump when I next have this error and paste output then, the error appears to happen sporadically.

Offline

#4 2016-03-22 15:32:06

Nagefire
Member
Registered: 2016-03-21
Posts: 11

Re: dhcpcd cannot secure a DHCP lease

Update:
An error occured with IPv6 addresses again, I was able to get the output from dmesg and radvdump this time:
dmesg | tail:
[   45.848436] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   46.876128] wlp2s0: authenticate with 88:f0:77:be:08:63
[   46.896507] wlp2s0: send auth to 88:f0:77:be:08:63 (try 1/3)
[   46.897961] wlp2s0: authenticated
[   46.898607] wlp2s0: associate with 88:f0:77:be:08:63 (try 1/3)
[   46.902030] wlp2s0: RX AssocResp from 88:f0:77:be:08:63 (capab=0x431 status=0 aid=155)
[   46.902321] wlp2s0: associated
[   46.902342] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
[   47.024199] wlp2s0: Limiting TX power to 20 dBm as advertised by 88:f0:77:be:08:63
[  218.436557] wlp2s0: deauthenticating from 88:f0:77:be:08:63 by local choice (Reason: 2=PREV_AUTH_NOT_VALID)
[  222.727698] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[  223.753262] wlp2s0: authenticate with 88:f0:77:be:35:e3
[  223.769794] wlp2s0: send auth to 88:f0:77:be:35:e3 (try 1/3)
[  223.772090] wlp2s0: authenticated
[  223.772694] wlp2s0: associate with 88:f0:77:be:35:e3 (try 1/3)
[  223.776664] wlp2s0: RX AssocResp from 88:f0:77:be:35:e3 (capab=0x431 status=0 aid=54)
[  223.776932] wlp2s0: associated
[  223.776948] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
[  223.920314] wlp2s0: Limiting TX power to 20 dBm as advertised by 88:f0:77:be:35:e3

radvdump:
(ran with sudo after I got errors with Operation Not Permitted, it ran for a while but no output appeared)

After the first error, which occured after I used "sudo netctl start wlp2s0-Central_Wifi_BYOD," I tried pinging the network, 100% packet loss

Offline

#5 2016-03-22 18:03:14

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: dhcpcd cannot secure a DHCP lease

@Nagefire, please use code tags when posting output.

https://wiki.archlinux.org/index.php/Fo … s_and_code

Offline

Board footer

Powered by FluxBB