VMware虚拟机不能联网的解决办法

Linux安装的centos系统,不能正常连接网络

1.编辑config文件

[root@localhost ~]# cd /etc/selinux
[root@localhost selinux]# vi config
SELINUX=disabled

2.编辑ifcfg-ens33文件

[root@localhost ~]# /etc/sysconfig/network-scripts
[root@localhost network-scripts]# vi ifcfg-ens33
ONBOOT=yes

3.重启网络服务

[root@localhost selinux]# systemctl restart network

4.关闭防火墙

[root@localhost selinux]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
原文地址:https://www.cnblogs.com/apollo1616/p/10309146.html