linux RHEL系 网卡配置
# ATTRIBUTES
TYPE=Ethernet | Bridge
UUID=a4ac1ac1-1c91-3c5a-a00d-2a257f7c2761
HWADDR=00:0c:29:fd:80:90
NAME=ens33
DEVICE=ens33
BOOTPROTO=static | dhcp | none
ONBOOT=yes
# IPV4
IPV4_FAILURE_FATAL=no
IPADDR=192.168.8.11
PREFIX=24
NETMASK=255.255.255.0
GATEWAY=192.168.8.2 # 网卡配置中GATEWAY=的配置需与网卡IP处于同一网段,否则不生效
DNS1=8.8.8.8
DNS1=8.8.4.4
DEFROUTE=yes | no # 若设置为no,则此网卡不能作为默认路由出口,优先级 > GATEWAY
BROADCAST=192.168.8.255
# IPV6
IPV6INIT=yes | no
IPV6_AUTOCONF=yes | no
IPV6_DEFROUTE=yes | no
IPV6_FAILURE_FATAL=yes | no
IPV6_ADDR_GEN_MODE=stable-privacy
IPV6_PRIVACY=yes | no
# SENIOR
PERSISTENT_DHCLIENT=yes
USERCTL=yes | no
PROXY_METHOD=none
BROWSER_ONLY=no
AUTOCONNECT_PRIORITY=-999
# configure an interface to ignore routes sent by a DHCP server, add the following line to the ifcfg file.This will prevent network service from updating /etc/resolv.conf with the DNS servers received from a DHCP server
PEERDNS=no