Skip to main content

Everything Bridged

I must admit that I have some networking concepts missing or killed in action. Therefore when I achieve working setup I become as happy as i don’t know who.

Today I finally managed to bridge wl0 to eth0.0 and both wired network and wireless one are connected now. Before that I spent a couple of hours trying to bridge two TAP interfaces for 2 qemu virtual machines. While the setup looked like trivial for VirtualBox, with QEMU it is not that straightforward or I am missing something obvious…

Yes, I am. By default QEMU assigns the same hardware address (MAC) to all the virtual machines which in turn makes routing impossible:

rtg$ arp -a
pb-slave.vm.desert.intra (192.168.15.3) at 52:54:00:12:34:56 [ether] on br0
pb-master.vm.desert.intra (192.168.15.2) at 52:54:00:12:34:56 [ether] on br0

And I can host all the virtual machines on the same network, woo-hoo!

VirtualBox uses TAP device as well but it keeps eating my CPU even when guest machines are idle.

However this experience allowed me to configure bridging at home in less than 5 minutes, remove a lot of rules from netfilter configuration…

Practice makes perfect.

Comments

Comments powered by Disqus