My Raspberry Pi gets its IP address assigned by default. I'd like to disable dhcpcd and have static IP address settings. The following seems to indicate that dhcpcd is disabled but the device still gets IP addresses assigned by dhcpcd.
$this->bbcode_second_pass_code('', '$ systemctl is-enabled dhcpcd
disabled')$this->bbcode_second_pass_code('', '# cat /var/log/everything.log | grep dhcpc
Jan 1 01:00:13 pi dhcpcd[247]: version 5.6.7 starting
Jan 1 01:00:14 pi dhcpcd[247]: eth0: sending IPv6 Router Solicitation
Jan 1 01:00:14 pi dhcpcd[247]: eth0: sendmsg: Cannot assign requested address
Jan 1 01:00:14 pi dhcpcd[247]: eth0: broadcasting for a lease
Jan 1 01:00:16 pi dhcpcd[247]: eth0: offered 192.168.2.204 from 192.168.2.100
Jan 1 01:00:16 pi dhcpcd[247]: eth0: acknowledged 192.168.2.204 from 192.168.2.100
Jan 1 01:00:16 pi dhcpcd[247]: eth0: checking for 192.168.2.204
Jan 1 01:00:18 pi dhcpcd[247]: eth0: sending IPv6 Router Solicitation
Jan 1 01:00:21 pi dhcpcd[247]: eth0: leased 192.168.2.204 for 86400 seconds
Jan 1 01:00:22 pi dhcpcd[247]: forked to background, child pid 280
Jan 1 01:00:22 pi dhcpcd[280]: eth0: sending IPv6 Router Solicitation
Apr 26 11:34:42 pi dhcpcd[280]: eth0: sending IPv6 Router Solicitation
Apr 26 11:34:42 pi dhcpcd[280]: eth0: no IPv6 Routers available')
I added a static address by following the Services guide for Static Ethernet and then did$this->bbcode_second_pass_code('', '# systemctl enable network
ln -s '/etc/systemd/system/network.service' '/etc/systemd/system/multi-user.target.wants/network.service'')
After that I do get a static IP but it seems dhcpcd assigns an address too (static x.x.x.150, dhcp x.x.x.204):$this->bbcode_second_pass_code('', '# ip addr show dev eth0
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether b8:27:eb:0a:41:7c brd ff:ff:ff:ff:ff:ff
inet 192.168.2.150/24 brd 192.168.2.255 scope global eth0
inet 192.168.2.204/24 brd 192.168.2.255 scope global secondary eth0
inet6 fe80::ba27:ebff:fe0a:417c/64 scope link
valid_lft forever preferred_lft forever')
I also have two other related issues.
DNS lookup seems to work although I haven't configured it for the static address and assume it is configured by dhcpcd. How do I configure nameservers when using a static IP address?
After configuring the static address I can see two error messages at the beginning of the boot sequence quickly pass by. How can I retrieve those messages?