VMware 安装 Centos7 后网络配置

VMware 安装 Centos7 后网络配置

使用VMware 虚拟机 通过 Centos7.iso 安装 Centos7

通过修改 /etc/sysconfig/network-scripts/ 中 ifcfg-ens33 添加

VMware 安装 Centos7 后网络配置

centos6的网卡重启方法:service network restart

centos7的网卡重启方法:systemctl restart network

重启网卡

安装完成后使用 ifconfig 查询网路配置,发现

VMware 安装 Centos7 后网络配置
经网络了解 ifconfig 命令已经被替代了,要想查看网路配置 使用 ip addr 命令

VMware 安装 Centos7 后网络配置

VMware 虚拟网络编辑器修改

VMware 安装 Centos7 后网络配置

VMware 安装 Centos7 后网络配置

最后ping通了

VMware 安装 Centos7 后网络配置

虚拟机也能访问外网了

VMware 安装 Centos7 后网络配置