blog

当前位置:首页>文章中心>blog
ubuntu16.04设置静态IP地址
blog 2017-12-04 1 阅读

ubuntu16.04设置静态IP地址

小泥巴 小泥吧科技 2017-12-04
和以前的版本有点不同。 照下面修改  /etc/network/interfaces 现在DNS也写在里面。
# 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 enp0s3
#iface enp0s3 inet dhcp
iface enp0s3 inet static
address 192.168.11.2
netmask 255.255.255.0
gateway 192.168.11.1

dns-nameserver 192.168.11.1
相关标签:

发表评论:

评论记录:

未查询到任何数据!
QQ咨询
回电话
回拨通话

我们稍后回拨您的电话

座机请加区号

微信联系
微信扫一扫
微信二维码

扫码加微信