Press "Enter" to skip to content

ESXI虚拟交换机的坑

我有一台服务器,装了esxi系统, 服务器上有 多个网卡接口,我想着能节省一个外部交换机,是不是可以把我多个网卡 连到同一个esxi的虚拟交换机上呢? 然后我这个虚拟交换机连着软路由上外网,内部其他的机器想上网,只要分别查到服务器的不通网卡上就行了。不需要额外加个交换机了。

搞了半天发现不行,现象是,我如果同一个交换机挂的物理接口同一时间两个端口都连着,其中一个端口就挂掉。纳尼? 这啥情况。

网上查了一堆资料,好像发现问题所在了,

https://serverfault.com/questions/292446/esxi-vswitch-with-2-physical-nics-does-it-actually-use-both-nics

  • If you bond two NICs to the same vSwitch, you will have load balancing (but only on different connections, traffic going from the same VM to the same remote address will only flow through one single NIC). – Massimo Jul 20 ’11 at 21:38
  • 1If you have different physical connections you need to map them to different vSwitch; if two or more NICs are associated with the same vSwitch, ESXi will assume they can handle the same traffic. – Massimo Jul 20 ’11 at 21:39

大概意思是, 如果你一个虚拟交换机连多个网卡, 那么esxi只会把连着的多个网卡当负载均衡用,并不会像真的交换机那样,有流量还给你转发广播啥的。

2 Comments

  1. 青木
    青木 2021年11月16日

    还是可以实现的,把其他的网卡都直通给软路由,在软路由里桥接这些网卡就可以实现

    • admin
      admin 2021年11月16日

      嗯,直通网卡是可以实现。

您的电子邮箱地址不会被公开。 必填项已用*标注