CentOS之——虚拟机NAT网络安装方式静态IP配置

转载请注明出处:https://blog.csdn.net/l1028386804/article/details/93473815

虚拟机NAT网络安装方式静态IP配置如下(亲测):

DEVICE=eth0
TYPE=Ethernet
UUID=9f9eb0f7-26ee-4b1f-8557-e7e27b8cdd13
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.175.11
NETMASK=255.255.255.0
BROADCAST=192.168.175.255
GATEWAY=192.168.175.2
DNS1=114.114.114.114
DNS2=8.8.8.8
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
HWADDR=00:50:56:22:d0:80
PEERDNS=yes
PEERROUTES=yes
LAST_CONNECT=1550869505

 

你可能感兴趣的:(Linux,Linux)