CentOS7 网络设置

cd /etc/sysconfig/network-scripts

vi ifcfg-xxxxxxx

 

 

 HWADDR="FF:FF:FF:FF:FF"

BOOTPROTO="static"

onboot="yes"

IPADDR=

NETMASK=

GATEWAY=

DNS1=

DNS2=114.114.114.114

 

service network restart

 

done

你可能感兴趣的:(CentOS7 网络设置)