今天尝试使在VMware中建立一个简单的集群,包括五台虚拟机,每台虚拟机使用四块网卡,其中一块网卡采用桥接模式连接到主机以及外部网络,另外三块网卡各自隶属于一个网段,虚拟机的操作系统是RHEL5.5,VMware的版本是Windows版10.0.0。
我之前尝试使用过VirtualBox 4.3.0。尽管从界面上看VirtualBox也支持至少4块网卡,但是当我将4块网卡分别配置在一个独立的网段后,发现这四块网卡的IP都是一样的;这说明,VirtualBox的多网卡功能有内在错误。VirtualBox的在线帮助是这么讲的:Internal networks are created automatically as needed, i.e. there is no central configuration. Every internal network is identified simply by its name. Once there is more than one active virtual network card with the same internal network ID, the VirtualBox support driver will automatically "wire" the cards and act as a network switch. The VirtualBox support driver implements a complete Ethernet switch and supports both broadcast/multicast frames and promiscuous mode。但事实并非如此,几个名称不同的内部网络互相打架。以下是我的一个配置。