centos6 配置IP 网关 DNS

今天是2018年8月3号 天气晴  巨热  但是大大的太阳也挡不住我对工作的痴迷  好了给你们发点福利

centos6  最小化安装之后的相关网络配置(ip 网关 dns)

ifconfig eth0 x.x.x.x.   设置ip

route add default gw x.x.x.x  设置网关

 

vim /etc/resolv.conf 设置dns

nameserver 114.114.114.114

nameserver 202.106.0.20

 

 

简单几步 网络已被打通

 

猜你喜欢

转载自blog.csdn.net/qq_41781322/article/details/81382752