参考:https://www.linuxidc.com/Linux/2017-06/144401.htm?hmsr=toutiao.io
https://blog.csdn.net/a785975139/article/details/53023590
https://blog.csdn.net/get_set/article/details/50707553
TYPE=Ethernet
BOOTPROTO=static #静态IP
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=ens33
UUID=24e820cb-1975-49cb-b556-73b65fe7d109
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.239.130
GATEWAY=192.168.239.2
DNS1=192.168.239.2 #DNS 配置,虚拟机安装的话,DNS就网关就行
NETMASK=255.255.255.0
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
systemctl restart network.service