Problems when creating a network bridge within a VM and trying to bridge between "internal networks"
Posted: 25. Nov 2018, 12:56
I'm trying to prototype some network configs (virtually) and I'm running into problems when I'm bridging network adapters within VMs and then assigning them to VirtualBox "internal networks".
Here's one basic setup that doesn't seem to work:
NAT eth0 [MikroTik VM] eth1 <---internal network 1---> eth0 [Open vSwitch VM] eth1 <--- internal network 2 ---> eth0 [Ubuntu/Windows VM]
Notes:
MikroTik is running DHCP server, NAT, etc
Open vSwitch is installed on Ubuntu. This VM actually has 8x network cards, they are all bridged together.
From the above the VM on the right (Ubuntu or Windows etc) should receive an IP address from the DHCP server running on MikroTik RouterOS VM. This seems to work some of the time, however the Ubuntu/Windows VM can never ping the MikroTik router. Even when an IP address is assigned by DHCP, if I look at the ARP table on the Ubuntu/Windows VM, there is no entry for the MAC addresses from the MikroTik VM network card, or the network cards on the Open vSwitch VM (the bridge will only have one MAC address).
Is this a limitation with VirtualBox and "internal networks"? To confirm if my Open vSwitch bridge works, I bridged some of the virtual network adapters to physical adapters and connected some real PCs and the network connectivity worked fine. I also tried using a bridge in a MikroTik VM (essentially making MikroTik into a switch) and this worked too. It's only when I create and use a network bridge (within a VM) and "internal networks" that things seem to stop working. I have tried this on Mac OS and Windows VirtualBox hosts with the same results (i.e. bridges within VMs work when bridged to physical adapters, but doesn't work when trying between "internal networks").
Any ideas?
VirtualBox ver: 5.2.22
Hosts: Mac OS Majave/Windows 10
Here's one basic setup that doesn't seem to work:
NAT eth0 [MikroTik VM] eth1 <---internal network 1---> eth0 [Open vSwitch VM] eth1 <--- internal network 2 ---> eth0 [Ubuntu/Windows VM]
Notes:
MikroTik is running DHCP server, NAT, etc
Open vSwitch is installed on Ubuntu. This VM actually has 8x network cards, they are all bridged together.
From the above the VM on the right (Ubuntu or Windows etc) should receive an IP address from the DHCP server running on MikroTik RouterOS VM. This seems to work some of the time, however the Ubuntu/Windows VM can never ping the MikroTik router. Even when an IP address is assigned by DHCP, if I look at the ARP table on the Ubuntu/Windows VM, there is no entry for the MAC addresses from the MikroTik VM network card, or the network cards on the Open vSwitch VM (the bridge will only have one MAC address).
Is this a limitation with VirtualBox and "internal networks"? To confirm if my Open vSwitch bridge works, I bridged some of the virtual network adapters to physical adapters and connected some real PCs and the network connectivity worked fine. I also tried using a bridge in a MikroTik VM (essentially making MikroTik into a switch) and this worked too. It's only when I create and use a network bridge (within a VM) and "internal networks" that things seem to stop working. I have tried this on Mac OS and Windows VirtualBox hosts with the same results (i.e. bridges within VMs work when bridged to physical adapters, but doesn't work when trying between "internal networks").
Any ideas?
VirtualBox ver: 5.2.22
Hosts: Mac OS Majave/Windows 10