sudo vi /etc/network/interfaces
# iface eth0 inet dhcp
iface eth0 inet static address 192.168.1.251 netmask 255.255.255.0 gateway 192.168.1.1 dns-nameservers 8.8.8.8
systemctl restart networking
Recommended Posts