yoyo1216

ubuntu设置网络

设置网络ip
vi /etc/network/interfaces
复制进去
auto ens33
iface ens33 inet static
# 192.168.1.246 ip地址
address 192.168.1.246
netmask 255.255.255.0
# dns服务器 192.168.1.1
gateway 192.168.1.1
# 202.101.172.35杭州电信ip
dns-nameserver 202.101.172.35

# 保存后重启
/etc/init.d/networking restart

发表于 2018-12-17 15:48  守护式等待  阅读(102)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章: