Debian Static IP

root@server:/# ee /etc/network/interfaces

allow-hotplug ens33
iface ens33 inet static
address 192.168.100.xx
netmask 255.255.255.0
gateway 192.168.100.1
dns-nameservers 8.8.8.8

root@server:/#systemctl restart networking.service

Leave a Reply