cd /etc/sysconfig/network-scripts/ #切换到网络配置目录
vi ifcfg-eth0 #打开网卡配置文件
DEVICE=eth0
HWADDR=08:00:27:92:3C:1F
TYPE=Ethernet
UUID=09848d3a-fff2-4b9b-a9d7-5e95efab7faf
ONBOOT=yes #设置开机启动
NM_CONTROLLED=yes
BOOTPROTO=dhcp
DNS1=8.8.8.8 #新增DNS
/etc/init.d/network start #启动网络服务
标签:network,有线,配置文件,8.8,CentOS,网卡,etc,设置,6.8 From: https://blog.51cto.com/u_14508118/5857804