Environment: Ubuntu Server 16.04
network-manager: not installed
Interface need to be change: enp0s9
/etc/network/interfaces
auto enp0s9
iface enp0s9 inet static
address 192.168.10.50
netmask 255.255.255.0
I'd like to change the IP address of enp0s9 so I go through the interfaces file, modify the address line.
However, whatever how I restart/reload the enp0s9, the ip address still remain the old one. Only reboot the server can refresh the ip address.
syslog
Dec 26 11:55:02 localhost kernel: [ 88.763677] IPv6: ADDRCONF(NETDEV_UP): enp0s9: link is not ready
Dec 26 11:55:02 localhost kernel: [ 88.765633] e1000: enp0s9 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
Dec 26 11:55:02 localhost kernel: [ 88.765981] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s9: link becomes ready
Dec 26 11:55:02 localhost systemd[1]: Reloading OpenBSD Secure Shell server.
Dec 26 11:55:02 localhost systemd[1]: Reloaded OpenBSD Secure Shell server.