进入配置文件修改
vim /etc/sysconfig/network-scripts/ifcfg-ens33
修改参数,主要是IPADDR、GATEWAY
ZEVICE="eth0"
BOOTPROTO="static"
IPV6INIT="no"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
IPADDR="192.168.31.223"
GATEWAY="192.168.31.1"
NETMASK="255.255.255.0"
DNS2="8.8.8.8"
DNS1="114.114.114.114"