- /etc/systemd/network
[Match]
Name=eth0
[Network]
Address=192.168.0.251/24
Gateway=192.168.0.1
DNS=8.8.8.8
- /etc/network/interfaces
# interface file auto-generated by buildroot
auto lo
iface lo inet loopback
#allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.0.251
netmask 255.255.255.0
gateway 192.168.0.1