ubuntu 16.04 改静态ip
vi /etc/network/interfaces
source /etc/network/interfaces.d/*
# Network is managed by Network manager
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.16.0.15
netmask 255.255.255.0
gateway 172.16.0.1
vi /etc/network/interfaces
source /etc/network/interfaces.d/*
# Network is managed by Network manager
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.16.0.15
netmask 255.255.255.0
gateway 172.16.0.1