https://www.ahfesco.com.cn/affairs/Article.asp?id=2232
[root@localhost network-scripts]# vi ifcfg-ens33
TYPE="Ethernet"
BOOTPROTO="static" #设置为静态
DEFROUTE="yes"
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="no"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
IPADDR=192.168.81.133
HWADDR=00:0C:29:8B:CC:56 #设置MAC地址
NETMASK=255.255.255.0 # 设置子网掩码
GATEWAY=192.168.81.2 # 必须设置网关
DNS1=202.102.192.68 # DNS必须设置
UUID="34870700-bc50-4b17-8100-3911769053e1"
NAME="ens33"
DEVICE="ens33"
ONBOOT="yes"