Hi folks,
I want to setup a VM as a three ports switch in order to connect together three VMs using VirtualBox.
The scenario is similiar to the topic described into
this guide.
The host OS is Fedora 20.
To do this I've used a debian machine (net-install) on which I've installed sudo, bridge-utils, ebtables and tcpdump packages.
The network configuration in VirtualBox for this VM consists of three network adapters configured
as below:
Code:
Adapter 1:
Connected to: internal network
Name: Rou_Interface
Type: Intel Pro/1000 MT
Promiscuous mode: No
----------------------------
Adapter 2:
Connected to: internal network
Name: Sniffer_Interface
Type: Intel Pro/1000 MT
Promiscuous mode: No
----------------------------
Adapter 3:
Connected to: internal network
Name: Ter_Interface
Type: Intel Pro/1000 MT
Promiscuous mode: No
The network interfaces of the "switch VM" are configured as below (/etc/network/interfaces):
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
auto eth1
iface eth1 inet static
address 192.168.1.2
netmask 255.255.255.0
auto eth2
iface eth2 inet static
address 192.168.1.3
netmask 255.255.255.0
auto br0
iface br0 inet static
bridge_ports eth0 eth1 eth2
address 192.168.1.4
network 192.168.1.0
netmask 255.255.255.0
gateway 192.168.1.254
The other three VMs (old Ubuntu 11.04 i386) have their /etc/network/interfaces configured as below:
Code:
Rou
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
----------------------------
Sniffer
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
----------------------------
Ter
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.3
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
Each of the three VMs has one network adapter:
Code:
Rou Adapter:
Connected to: internal network
Name: Rou_Interface
Type: Intel Pro/1000 MT
Promiscuous mode: No
----------------------------
Sniffer adapter:
Connected to: internal network
Name: Sniffer_Interface
Type: Intel Pro/1000 MT
Promiscuous mode: No
----------------------------
Ter adapter:
Connected to: internal network
Name: Ter_Interface
Type: Intel Pro/1000 MT
Promiscuous mode: No
My problem is that I can only ping the bridge from Sniffer VM. I can't ping the bridge from the other two machines and obviously I can't ping from one VM to another. So the switch doesn't work.
Could you give me a hand please? Thank you!