解决VMware中centOS7不能联网问题

centos默认网卡是关闭的:
VMware选NAT模式(VMnet8)
vi /etc/sysconfig/network-scripts/ifcfg-ens33
修改后

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=9e0b0781-372e-435b-bb3b-b3c5791aec09
DEVICE=ens33
ONBOOT=yes

service network restart
完事
参考:
https://jingyan.baidu.com/article/75ab0bcbadeb06d6874db25c.html

https://note.youdao.com/ynoteshare1/index.html?id=236896997b6ffbaa8e0d92eacd13abbf&type=note

你可能感兴趣的:(centos,linux)