Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#36455 - [dhcpcd] cant get an Ip after updating to 6.0.4/6.0.5
Attached to Project:
Arch Linux
Opened by Jan Bickel (rosenrot) - Thursday, 08 August 2013, 13:18 GMT
Last edited by Ronald van Haren (pressh) - Friday, 31 January 2014, 14:56 GMT
Opened by Jan Bickel (rosenrot) - Thursday, 08 August 2013, 13:18 GMT
Last edited by Ronald van Haren (pressh) - Friday, 31 January 2014, 14:56 GMT
|
DetailsDescription:
I cant access any network after upgrading to 6.0.4 or 6.0.5. Downgrading to 5.6.8 it is working again. Im using the Linux-Kernel 3.10.3. Additional info: * package versions: 6.0.X (tested with 6.0.4 and 6.0.5) * log file: http://pastebin.com/XcDES0S0 * intel wifi card * iwlwifi driver * Linux kernel: 3.10.X Steps to reproduce: Wpa_supplicant connects to a network and after starting dhcpcd it reconnects constantly. |
This task depends upon
Closed by Ronald van Haren (pressh)
Friday, 31 January 2014, 14:56 GMT
Reason for closing: Fixed
Additional comments about closing: seems to be fixed by upstream according to the comments
Friday, 31 January 2014, 14:56 GMT
Reason for closing: Fixed
Additional comments about closing: seems to be fixed by upstream according to the comments
dhcpcd[28734]: version 6.0.4 starting
dhcpcd[28742]: wlan0: starting wpa_supplicant
dhcpcd[28734]: eth0: waiting for carrier
dhcpcd[28734]: wlan0: waiting for carrier
dhcpcd[28734]: wlan0: carrier acquired
dhcpcd[28734]: wlan0: soliciting an IPv6 router
dhcpcd[28734]: wlan0: rebinding lease of 192.168.0.104
dhcpcd[28734]: wlan0: soliciting a DHCP lease
dhcpcd[28734]: wlan0: carrier lost
dhcpcd[28734]: wlan0: carrier acquired
dhcpcd[28734]: wlan0: soliciting an IPv6 router
dhcpcd[28734]: wlan0: rebinding lease of 192.168.0.104
dhcpcd[28734]: wlan0: leased 192.168.0.104 for 86400 seconds
dhcpcd[28734]: wlan0: adding host route to 192.168.0.104 via 127.0.0.1
dhcpcd[28734]: wlan0: adding route to 192.168.0.0/24
dhcpcd[28734]: wlan0: adding default route via 192.168.0.1
dhcpcd[28734]: forked to background, child pid 28849
Successfully initialized wpa_supplicant
wlan0: SME: Trying to authenticate with f8:df:a8:33:0e:7f (SSID='VHC' freq=2452 MHz)
wlan0: Trying to associate with f8:df:a8:33:0e:7f (SSID='VHC' freq=2452 MHz)
wlan0: Associated with f8:df:a8:33:0e:7f
wlan0: WPA: Key negotiation completed with f8:df:a8:33:0e:7f [PTK=TKIP GTK=TKIP]
wlan0: CTRL-EVENT-CONNECTED - Connection to f8:df:a8:33:0e:7f completed [id=2 id_str=]
wlan0: CTRL-EVENT-DISCONNECTED bssid=f8:df:a8:33:0e:7f reason=3 locally_generated=1
wlan0: SME: Trying to authenticate with f8:df:a8:33:0e:7f (SSID='VHC' freq=2452 MHz)
wlan0: Trying to associate with f8:df:a8:33:0e:7f (SSID='VHC' freq=2452 MHz)
wlan0: Associated with f8:df:a8:33:0e:7f
wlan0: WPA: Invalid EAPOL-Key MIC when using TPTK - ignoring TPTK
wlan0: WPA: Could not verify EAPOL-Key MIC - dropping packet
wlan0: WPA: Invalid EAPOL-Key MIC when using TPTK - ignoring TPTK
wlan0: WPA: Could not verify EAPOL-Key MIC - dropping packet
wlan0: Authentication with f8:df:a8:33:0e:7f timed out.
wlan0: CTRL-EVENT-DISCONNECTED bssid=f8:df:a8:33:0e:7f reason=3 locally_generated=1
wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=2 ssid="VHC" auth_failures=1 duration=10
wlan0: Failed to initiate AP scan
wlan0: Failed to initiate AP scan
wlan0: Failed to initiate AP scan
wlan0: CTRL-EVENT-DISCONNECTED bssid=f8:df:a8:33:0e:7f reason=3 locally_generated=1
wlan0: Failed to initiate AP scan
wlan0: Failed to initiate AP scan
wlan0: CTRL-EVENT-DISCONNECTED bssid=f8:df:a8:33:0e:7f reason=3 locally_generated=1
wlan0: CTRL-EVENT-DISCONNECTED bssid=f8:df:a8:33:0e:7f reason=3 locally_generated=1
wlan0: CTRL-EVENT-SSID-REENABLED id=2 ssid="VHC"
wlan0: SME: Trying to authenticate with f8:df:a8:33:0e:7f (SSID='VHC' freq=2452 MHz)
wlan0: Trying to associate with f8:df:a8:33:0e:7f (SSID='VHC' freq=2452 MHz)
wlan0: Associated with f8:df:a8:33:0e:7f
wlan0: WPA: Key negotiation completed with f8:df:a8:33:0e:7f [PTK=TKIP GTK=TKIP]
wlan0: CTRL-EVENT-CONNECTED - Connection to f8:df:a8:33:0e:7f completed [id=2 id_str=]
wlan0: CTRL-EVENT-DISCONNECTED bssid=f8:df:a8:33:0e:7f reason=3 locally_generated=1
wlan0: SME: Trying to authenticate with f8:df:a8:33:0e:7f (SSID='VHC' freq=2452 MHz)
wlan0: Trying to associate with f8:df:a8:33:0e:7f (SSID='VHC' freq=2452 MHz)
wlan0: Associated with f8:df:a8:33:0e:7f
wlan0: CTRL-EVENT-DISCONNECTED bssid=f8:df:a8:33:0e:7f reason=3 locally_generated=1
wlan0: SME: Trying to authenticate with f8:df:a8:33:0e:7f (SSID='VHC' freq=2452 MHz)
wlan0: Trying to associate with f8:df:a8:33:0e:7f (SSID='VHC' freq=2452 MHz)
wlan0: Associated with f8:df:a8:33:0e:7f
wlan0: CTRL-EVENT-DISCONNECTED bssid=f8:df:a8:33:0e:7f reason=3 locally_generated=1
dbus: wpas_dbus_bss_signal_prop_changed: Unknown Property value 7
>
>I can't get an IP with dhcpcd 6.0.4-1 too:
>
But I'm seeing different messages from the ones above. In here the wpa_supplicant (netctl won't work with new version of dhcpcd) does NOT disconnect and re-connect when dhcpcd is trying to do sth - there are no new messages when I start it at all. When I start dhcpcd it goes like this (more or less, it's hard to copy when using command line only, but I can provide exact logs if needed):
> soliciting IPv6 router
> offered 192.168... from 192.168...
> NaK (NULL) received
and this goes on for a while, before finally hitting timeout and giving up.
It sounds like you're being offered an IP and then when you confirm it, the server NAKs it. So from my perspective dhcpcd is behaving correctly.
NOTE TO MAINTAINERS: dhcpcd-6 now ships with a wpa_supplicant hook script which will start wpa_supplicant per interface if it's wireless and /etc/wpa_supplicant.conf exists.
It will also stop wpa_supplicant IF the interface it's running on departs (like say a USB wifi card).
The goal is that dhcpcd can handle the hotplugging of interfaces entirely because there is no common standard for this between any BSD or Linux (or even different Linux flavours).
dhcpcd --release wlan0
--> nexttime it is no problem to get an ip
Here's a log of what happens if I try to establish the connection manually. One shell session has wpa_supplicant, in another I try to run dhcpcd.
---
[root@INFERNUS freddie]# dhcpcd wlp6s2
dhcpcd[3371]: version 6.0.5 starting
dhcpcd[3371]: wlp6s2: soliciting an IPv6 router
dhcpcd[3371]: wlp6s2: soliciting a DHCP lease
dhcpcd[3371]: wlp6s2: offered 192.168.2.6 from 192.168.2.1 `TP-LINK'
dhcpcd[3371]: wlp6s2: NAK: (null) from 192.168.2.1 `TP-LINK'
[... it can go on forever ...]
dhcpcd[3371]: wlp6s2: soliciting an IPv6 router
dhcpcd[3371]: wlp6s2: soliciting a DHCP lease
dhcpcd[3371]: wlp6s2: offered 192.168.2.6 from 192.168.2.1 `TP-LINK'
dhcpcd[3371]: wlp6s2: NAK: (null) from 192.168.2.1 `TP-LINK'
dhcpcd[3371]: wlp6s2: soliciting an IPv6 router
dhcpcd[3371]: wlp6s2: soliciting a DHCP lease
^Cdhcpcd[3371]: received SIGINT from PID 0, stopping
dhcpcd[3371]: wlp6s2: removing interface
dhcpcd[3371]: exited
[root@INFERNUS freddie]#
---
If I downgrade to version 5, everything just starts working.
Thx in advance!
So it looks more like an error in the DHCP server.
Can you post a trace from a working dhcpcd please so we can see what options it sends differently.
I'm going to guess it's because dhcpcd-5 defaults to sending no clientid, but dhcpcd-6 sends a clientid based of the DUID + IAID as per RFC 4361
https://tools.ietf.org/html/rfc4361
You could also try editing /etc/dhcpcd.conf and ensuring both clientid and duid are commented out.
After deactivating duid by commenting out in /etc/dhcpcd.conf
# Use the hardware address of the interface for the Client ID.
#clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
#duid
It seems that my dhcp problems with AVM Fritzbox are gone.