首先在命令行输入
vi /etc/sysconfig/network-scripts/ifcfg-en233
TYPE="Ethernet"
BOOTPROTO="static"
DEFROUTE="yes"
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="ens33"
UUID="201711f6-84ee-4d6c-9ada-a511de4197b0"
DEVICE="ens33"
ONBOOT="yes"
IPADDR="172.19.19.129"
NETMASK="255.255.255.0"
DNS1="114.114.114.114"
GATEWAY="172.19.19.2"