[systemd-devel] networkd bridge masquerading
Derek Willian Stavis
dekestavis at gmail.com
Thu Jun 18 05:24:03 PDT 2015
>
> I'm trying to setup networking for containers/vms similar to e.g. docker0
> bridge, or lxcbr0. But purely with networkd. That is a bridge that is NATed
> to provide internet access, and then attaching tap/veth devices to the
> bridge.
>
> I did this at first:
>
> br0.netdev:
> [NetDev]
> Name=br0
> Kind=bridge
>
> br0.network:
> [Match]
> Name=br0
>
> [Network]
> Address=0.0.0.0/28
> IPMasquerade=yes
>
> Without adding any veth / tap interfaces to the bridge. My expectation is
> for such a bridge to come up correctly. However in journalctl I get:
>
> br0 : Could not enable IP masquerading: Operation not supported
> br0 : Could not enable IP masquerading: Operation not supported
> br0 : link configured
>
> What's wrong, or I am doing something crazy?
>
I suffered from the pretty same problem. To solve this I needed to load
ip_tables module in Arch Linux.
>
> Secondly, is there an API to manipulate networkd? Ideally i would like to
> add/remove tap interfaces that would be part of this bridge. The only way I
> found to do this is by e.g. dropping files to /run/systemd/network and
> restarting networkd service. That works fine, however this results in the
> bridge accumulating ip addresses, which is not nice.
>
> --
> Regards,
>
> Dimitri.
> Pura Vida!
>
> https://clearlinux.org
> Open Source Technology Center
> Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3
> 1RJ.
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150618/8173332f/attachment.html>
More information about the systemd-devel
mailing list