虚拟机centos7配置静态ip,踩坑网页无法访问

1、Vm上配置虚拟网络编辑器

2、windows上配置 VMnet8

3、centos7上配置ens33网卡

注意,有些linux上是 ifcfg-eth0 网卡

vim /etc/sysconfig/network-scripts/ifcfg-ens33

修改以下参数:

4、重启网络服务并测试

通过命令:

systemctl restart network

或者:

查看网卡ip:

没有界面可通过ping命令测试

猜你喜欢

转载自blog.csdn.net/qq_43290318/article/details/111391880