一、桥接模式联网

  之前用NAT模式连接网络,Centos是可以上网,而且Centos可以ping通主机,但是主机ping不通虚拟机。后来发现Nat模式只能由内而外。

  1.1设置虚拟机的网络适配器

  Centos7 minimal 系列之桥接模式联网(二)

  1.2设置虚拟网络编辑器

  Centos7 minimal 系列之桥接模式联网(二)

  1.3修改配置文件 cd /etc/sysconfig/network-scripts

    vi ifcfg-ens33

    Centos7 minimal 系列之桥接模式联网(二)

    Centos7 minimal 系列之桥接模式联网(二)

     退出保存!

     service network restart

 

相关文章:

  • 2021-07-15
  • 2021-06-29
  • 2021-06-01
  • 2021-11-24
  • 2021-10-26
  • 2021-10-13
猜你喜欢
  • 2022-02-18
  • 2022-01-03
  • 2021-08-12
  • 2021-10-19
相关资源
相似解决方案