码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu 手动配置网络 IP DNS 网关

时间:2018-12-16 15:51:43      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:interface   address   span   col   add   vim   网络 ip   class   style   

vim 编辑 /etc/network/interfaces 文件:

auto eth0
iface eth0 inet static
address 192.168.1.2/24
gateway 192.168.1.1
dns-nameservers 192.168.1.1

 

ubuntu 手动配置网络 IP DNS 网关

标签:interface   address   span   col   add   vim   网络 ip   class   style   

原文地址:https://www.cnblogs.com/devIT/p/10126754.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!