1、设置IP地址:
ifconfig ens33 192.168.60.231/24
2、添加默认网关路由
$Route add default gw <默认网关地址>
例:#route add default gw 192.168.1.1
3、DNS服务器配置文件:/etc/resolv.conf
[root@linuxidc ~]# vim /etc/resolv.conf # Generated by NetworkManager
nameserver 192.168.1.1
nameserver 192.168.4.1
参考:https://www.cnblogs.com/wenanry/archive/2009/12/21/1629242.html