dhcpcd ignores offer but dhclient works fine
Guan Xin
Wed May 03 06:04:38 2017Hi, I have a problem when connecting to a WiFi AP on an android phone without root so it's difficult to debug the dhcp server. It seems that after a while (typically a few hours) the IP address acquired with dhcpcd is lost. Running dhcpcd -k and then start once more can receive the offer, but dhcpcd ignores it: -------------------- >8 -------------------- May 03 07:49:42 dhcpcd-6.11.5 starting May 03 07:49:42 wlan1: executing `/lib/dhcpcd/dhcpcd-run-hooks' PREINIT May 03 07:49:42 wlan1: executing `/lib/dhcpcd/dhcpcd-run-hooks' CARRIER May 03 07:49:42 DUID 00:01:00:01:1f:2a:03:f5:08:00:27:ca:e2:7f May 03 07:49:42 wlan1: IAID 38:84:28:31 May 03 07:49:42 wlan1: delaying IPv6 router solicitation for 0.1 seconds May 03 07:49:42 wlan1: delaying IPv4 for 0.1 seconds May 03 07:49:42 wlan1: soliciting an IPv6 router May 03 07:49:42 wlan1: sending Router Solicitation May 03 07:49:42 wlan1: soliciting a DHCP lease May 03 07:49:42 wlan1: sending DISCOVER (xid 0x5c8e28bd), next in 4.1 seconds May 03 07:49:42 wlan1: offered 192.168.43.102 from 192.168.43.1 May 03 07:49:42 wlan1: sending REQUEST (xid 0x5c8e28bd), next in 3.3 seconds May 03 07:49:45 wlan1: sending REQUEST (xid 0x5c8e28bd), next in 7.5 seconds May 03 07:49:46 wlan1: sending Router Solicitation May 03 07:49:47 wlan1: probing for an IPv4LL address May 03 07:49:47 wlan1: probing for 169.254.85.248 May 03 07:49:47 wlan1: ARP probing 169.254.85.248 (1 of 3), next in 1.3 seconds May 03 07:49:48 wlan1: ARP probing 169.254.85.248 (2 of 3), next in 1.1 seconds May 03 07:49:49 wlan1: ARP probing 169.254.85.248 (3 of 3), next in 2.0 seconds May 03 07:49:50 wlan1: sending Router Solicitation May 03 07:49:51 wlan1: using IPv4LL address 169.254.85.248 May 03 07:49:51 wlan1: adding IP address 169.254.85.248/16 broadcast 169.254.255.255 May 03 07:49:51 wlan1: adding route to 169.254.0.0/16 May 03 07:49:51 wlan1: ARP announcing 169.254.85.248 (1 of 2), next in 2.0 seconds May 03 07:49:51 wlan1: executing `/lib/dhcpcd/dhcpcd-run-hooks' IPV4LL May 03 07:49:53 wlan1: sending REQUEST (xid 0x5c8e28bd), next in 16.9 seconds May 03 07:49:53 wlan1: ARP announcing 169.254.85.248 (2 of 2) May 03 07:49:54 wlan1: sending Router Solicitation May 03 07:49:54 wlan1: no IPv6 Routers available May 03 07:50:01 received SIGINT, stopping May 03 07:50:01 wlan1: removing interface May 03 07:50:01 wlan1: executing `/lib/dhcpcd/dhcpcd-run-hooks' STOPPED May 03 07:50:01 dhcpcd exited -------------------- >8 -------------------- However, dhclient works fine. So how to debug it? Thanks in advance! Guan
Archive administrator: postmaster@marples.name