james-l
5/13/2017 - 7:01 PM

static ipaddress for ubuntu

static ipaddress for ubuntu

vi /etc/network/interfaces

auto eno1
iface eno1 inet static
address 192.168.230.31
netmask 255.255.255.0
network 192.168.230.0
gateway 192.168.230.1
dns-nameservers 192.168.230.1 8.8.8.8

sudo -i
ifdown eno1; ifup eno1