ubuntu 16.04 set static IP
sudo vim /etc/network/interfaces
------------------------------------------------------------
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp179s0f0
iface enp179s0f0 inet static
address 10.88.1.175
netmask 255.255.252.0
gateway 10.88.0.1
dns-search adelaide.sweat.com
dns-nameservers 10.88.50.10 10.88.50.20
------------------------------------------------------------
sudo /etc/init.d/networking start
浙公网安备 33010602011771号