vim /etc/sysconfig/network-scripts/ifcfg-ens33
开机启动
1、静态ip地址
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="static"
DEFROUTE="yes"
DEVICE="ens36"
ONBOOT="yes"
IPADDR=192.168.255.200
PREFIX=24
GATEWAY=192.168.80.2
DNS1=192.168.80.2
DNS2=114.114.114.114
DNS3=8.8.8.8
systemctl restart network