I have a VirtualBox VM which has:
eth0: 10.0.2.15/24 default-gateway: 10.0.2.2/24
Within that VM I have 2 LXC containers (i.e. two other virtual machines)
VM1 - eth0: 10.50.50.50/16 (connects to br0) VM2 - eth0: 10.50.50.51/16 (connects to br0)
On the virtualbox instance, I tried to set up a bridge br0:
br0: 10.50.0.1/16 -> eth0
But this setup isn't working, as soon as I attach the bridge to eth0, eth0 can no longer ping the router. I don't understand what rules I'm violating by trying to configure a different network on the br0 side of the bridge than on the eth0 side.
I thought that traffic from one side just replicates to the other. So traffic on the virtualbox host would hit eth0 and make it out the default gateway. And traffic on the LXC containers network would hit br0, cross over to eth0, and make it to the default gateway.
Where's the folly in my thinking?