码迷,mamicode.com
首页 > 其他好文 > 详细

centos6.5 ifconfig没有ipv4地址

时间:2017-10-07 16:23:05      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:退出   nbsp   work   ipad   ifconf   rip   sys   otp   star   

进入/etc/sysconfig/network-scripts/目录中,可以看到ifcfg-eth0文件, 
vi ifcfg-eth0编辑文件, 
将“ONBOOT=no” 选项改成“ONBOOT=yes”, 

ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=172.18.10.xx
NETMASK=255.255.255.0
GATEWAY=172.18.10.254
DNS1=202.96.209.133

保存退出, 
重新启动网络服务 
service network restart 

centos6.5 ifconfig没有ipv4地址

标签:退出   nbsp   work   ipad   ifconf   rip   sys   otp   star   

原文地址:http://www.cnblogs.com/xingfudexu/p/7634557.html

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