Tried configuring a static IP address and it shows in the config:
web-888:/# fgrep -A8 ip_address /media/mmcblk0p1/config/admin.json
"ip_address": {
"use_static": true,
"ip": "172.22.52.67",
"netmask": "255.255.255.0",
"gateway": "172.22.52.1",
"dns1": "1.1.1.1",
"dns2": "1.0.0.1",
"commit_use_static": true
},
But still, dhcpcd is being run:
web-888:/# ps -ef |fgrep dhcp
1411 dhcpcd 0:00 dhcpcd: [manager] [ip4]
1413 root 0:00 dhcpcd: [privileged proxy]
1415 dhcpcd 0:00 dhcpcd: [network proxy]
1416 dhcpcd 0:00 dhcpcd: [control proxy]
and device has fetched the address from dhcp:
web-888:/# fgrep dhcp /var/log/messages
Apr 8 06:08:21 web-888 daemon.info dhcpcd[1411]: dhcpcd-10.0.6 starting
Apr 8 06:08:23 web-888 daemon.info dhcpcd[1413]: lo: using static address 127.0.0.1/8
Apr 8 06:08:23 web-888 daemon.info dhcpcd[1413]: lo: adding route to 127.0.0.0/8
Apr 8 06:08:23 web-888 daemon.info dhcpcd[1413]: eth0: waiting for carrier
Apr 8 06:08:25 web-888 daemon.info dhcpcd[1413]: eth0: carrier acquired
Apr 8 06:08:25 web-888 daemon.info dhcpcd[1413]: eth0: soliciting a DHCP lease
Apr 8 06:08:29 web-888 daemon.info dhcpcd[1413]: eth0: offered 172.22.52.67 from 172.22.52.1
Apr 8 06:08:29 web-888 daemon.info dhcpcd[1413]: eth0: leased 172.22.52.67 for 86400 seconds
Apr 8 06:08:29 web-888 daemon.info dhcpcd[1413]: eth0: adding route to 172.22.52.0/24
Apr 8 06:08:29 web-888 daemon.info dhcpcd[1413]: eth0: adding default route via 172.22.52.1
Apr 8 06:08:29 web-888 daemon.info dhcpcd[1413]: eth0: pid 0 deleted route to 172.22.52.0/24
(dhcp currently provisions the same address as in the attempted static config, but this causes an issue in case the dhcp server is not available when the device reboots).
Tried to search the filesystem and source code and was not able to find anything using the static ip configuration lines.
Tried configuring a static IP address and it shows in the config:
But still, dhcpcd is being run:
and device has fetched the address from dhcp:
(dhcp currently provisions the same address as in the attempted static config, but this causes an issue in case the dhcp server is not available when the device reboots).
Tried to search the filesystem and source code and was not able to find anything using the static ip configuration lines.