首页 > 系统服务 > 详细

ubuntu修改ip地址重启网络

时间:2015-03-16 16:22:26      阅读:350      评论:0      收藏:0      [点我收藏+]

Ubuntu修改网卡配置文件:

vim /etc/network/interfaces<pre name="code" class="plain">cat /etc/network/interfaces

auto eth0
iface eth0 inet static
        address 192.168.1.41
        gateway 192.168.1.1
        netmask 255.255.255.0
        dns-nameserver 114.114.114.114


然后重启网卡:

ifdown eth0
ifup eth0

ubuntu修改ip地址重启网络

原文:http://blog.csdn.net/yue492008824/article/details/44307691

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!