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

centos 网卡配置

时间:2017-07-09 19:39:43      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:strong   dns   ipa   固定   生效   static   ipaddr   ati   eth0   

1、固定ip配置

DEVICE=eth0

HWADDR=70:e2:84:09:64:c9

BOOTPROTO=static       #dhcp改为static
ONBOOT=yes                 #开机启用本配置
IPADDR=192.168.7.106     #静态IP
GATEWAY=192.168.7.1    #默认网关
NETMASK=255.255.255.0 #子网掩码
DNS1=192.168.7.1            #DNS 配置

2、ip自动获取

DEVICE=eth0

HWADDR=70:e2:84:09:64:c9

NM_CONTROLLED=yes   #即可生效

 ONBOOT=yes                 #开机启动

BOOTPROTO=dhcp       #自动获取

centos 网卡配置

标签:strong   dns   ipa   固定   生效   static   ipaddr   ati   eth0   

原文地址:http://www.cnblogs.com/tiandi/p/7142425.html

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