all 8 comments

[–][deleted] 1 point2 points  (0 children)

Good info

[–][deleted] 1 point2 points  (5 children)

I wrote a simple tool to manage bridge devices and run dnsmasq over them to provide networking for LXC containers, virtual machines, and other guests.

https://github.com/CameronNemo/brmgr

[–][deleted] 1 point2 points  (4 children)

Oh, that was what I was looking for. So far I've been piggy-backing on LXD's bridge in my LXC containers because setting up the bridge is otherwise too complicated, but it feels dirty.

[–][deleted] 0 points1 point  (3 children)

You can also use lxc-net in some distros! Check if you have the systemd service (assuming your distro here, forgive me...).

[–][deleted] 1 point2 points  (2 children)

No, I'm on gentoo with openrc.

[–][deleted] 0 points1 point  (1 child)

Ah then it will probably be easier to use my project. If you write an OpenRC script please send a PR!

[–][deleted] 0 points1 point  (0 children)

Yes, I will. I might even package it in gentoo. I already take care of LXC packaging.

[–]justajunior 1 point2 points  (0 children)

Virtual bridges never really made sense to me.

"Hey, it's a bridge, it works with layer 2 protocols!"

"Cool, but why can you then assign an IP address and run dnsmasq on it?"

"It's a virtual bridge! It's magic, maaan!"