Flaxplax

Personal documentation

Pi

Static ip without dhcpcd

sudo nano /etc/network/interfaces.d/eth0

Add config

auto eth0
allow-hotplug eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx
dns-nameservers xxx.xxx.xxx.xxx
dns-search domain-name

Disable dhcp and enable networking

sudo systemctl disable dhcpcd
sudo systemctl enable networking
# reboot after
sudo reboot
Last updated on 16 Oct 2022
Published on 16 Oct 2022