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

 

posted @ 2019-07-25 10:02  柠檬雨  阅读(510)  评论(0)    收藏  举报