Getting dynamic IP when starting dhcpcd with Static IP
Jonas Ramstrand
Mon Sep 30 15:55:41 2019
Hi!
I have issue with starting dhcpcd with static ip, from command line.
I start dhcpcd with command: "dhcpcd wlan0 --ipv4only --static ip_address=
10.30.2.121/21 --static routers=10.30.0.1 --static
domain_name_servers="10.30.0.101 10.30.0.120""
But dhcpcd is still doing discover/request, and uses that address as
static. Am I missing something?
I see the same behavior on 6.11.3 and 7.2.2 (system running Yocto). Seems
as I get this when I don't have any lease-file for the SSID that I connect
to.
Traces:
dhcpcd[2497]: DUID 00:01:00:01:24:e6:df:a4:00:01:3e:3d:f2:31
dhcpcd[2497]: wlan0: IAID 3e:3d:f2:31
dhcpcd[2497]: wlan0: probing address 10.30.2.121/21
dhcpcd[2497]: wlan0: hardware address 00:01:3e:3d:e6:c9 claims
10.30.2.121
dhcpcd[2497]: wlan0: soliciting a DHCP lease
dhcpcd[2497]: wlan0: offered 10.30.2.166 from 1.1.1.1
dhcpcd[2497]: wlan0: probing address 10.30.2.166/21
dhcpcd[2497]: wlan0: using static address 10.30.2.166/21
dhcpcd[2497]: wlan0: adding route to 10.30.0.0/21
dhcpcd[2497]: wlan0: adding default route via 10.30.0.1
dhcpcd[2497]: forked to background, child pid 2523
Thanks!
//Jonas
Archive administrator: postmaster@marples.name