CentOS 7在VMware 15中NAT网络模式下,设置静态IP地址

[root@legion ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens33 
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no

#BOOTPROTO=dhcp
#Set BOOTPROTO To static NOT dhcp
BOOTPROTO=static

DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy

#Network card name
NAME=ens33
UUID=f3a8ebfb-5357-***********
DEVICE=ens33
ONBOOT=yes

# Custom IP Adress
IPADDR=192.168.10.***

NETMASK=255.255.255.0

# Custom GATEWAY 
GATEWAY=192.168.10.*

#MAC Adress
HWADDR=00:0C:29*****
PREFIX=24

#Google DNS
DNS1=8.8.8.8
DNS2=8.8.4.4

# CentOS 7.+
ZONE=public

 

©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页