一、修改虚拟网卡的连接模式

VMware centos7 设置静态IP

 编辑->虚拟网络编辑器

VMware centos7 设置静态IP

 

二、修改IP配置文件

用root用户登录

 VMware centos7 设置静态IP

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

默认的配置是

VMware centos7 设置静态IP

修改为

VMware centos7 设置静态IP

 三、重启网络

systemctl restart network
ip addr

四、配置DSN

在/etc/resolv.conf里加入阿里的DNS

nameserver 223.5.5.5
nameserver 223.5.5.6

五、检查网络

到这里已经配置完成, 可以ping 一下百度。’ 

 

相关文章:

  • 2021-10-04
  • 2021-11-29
  • 2021-11-19
  • 2022-01-09
  • 2021-06-27
  • 2021-10-22
猜你喜欢
  • 2021-12-23
  • 2021-04-05
  • 2021-12-27
  • 2021-07-15
  • 2021-07-04
  • 2022-01-05
相关资源
相似解决方案