linux静态IP配置
网卡配置文件:/etc/sysconfig/network-scripts/ifcfg-ens33
==================VMware桥接静态外网========================
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
#BOOTPROTO=dhcp
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
#IPV6INIT=yes
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=cbd47dac-ea2e-4787-9ed0-c94cc675cd25
DEVICE=ens33
ONBOOT=yes
IPV6_PRIVACY=no
IPADDR=192.168.1.22
NETMASK=255.255.255.0
GATEWAY=192.168.1.180
DNS1=218.85.152.99
DNS2=218.85.157.99