My Ubuntu server will not accept my static IP assignment. Instead, I keep getting a DHCP lease. Network Manager is not installed. Below is the output of cat /etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.128
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.120 192.168.1.125
dns-domain mynetwork.local
dns-search mynetwork.local
Questions:
Why doesn't Ubuntu accept the static IP assignment? The Interfaces file seems to be ignored.
What is allowing a DHCP lease to be assigned?
/etc/defaults/gruband runningupdate-grub.
– m_krsic Nov 03 '17 at 18:18GRUB_CMDLINE_LINUX="biosdevname=0 net.ifnames=0"netplanby usingset-name. More info is here. – Andrejs Cainikovs Nov 08 '17 at 14:33apt-get install ifupdownand/etc/network/interfaceswill continue to work like in the past – Chris Mar 25 '18 at 19:17