<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - systemd-nspawn --network-bridge breaks networking in container's host"
href="https://bugs.freedesktop.org/show_bug.cgi?id=85464#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - systemd-nspawn --network-bridge breaks networking in container's host"
href="https://bugs.freedesktop.org/show_bug.cgi?id=85464">bug 85464</a>
from <span class="vcard"><a class="email" href="mailto:edt@aei.ca" title="Ed Tomlinson <edt@aei.ca>"> <span class="fn">Ed Tomlinson</span></a>
</span></b>
<pre>And when I create the service the problem reoccurs...
Unit]
Description=Container %i
After=network-online.target
Wants=network-online.target
[Service]
Environment="host=veth0" "peer=vhost0" "bridge=br1"
"addr=2001:4830:1100:xxxx::a/64" "target=2001:4830:1100:xxxx::2"
EnvironmentFile=/etc/nspawn.d/%i
ExecStartPre=/usr/bin/ip netns add %i
ExecStartPre=/usr/bin/ip link add $host type veth peer name $peer
ExecStartPre=/usr/bin/ip link set %i $host master $bridge
ExecStartPre=/usr/bin/ip link set $peer netns %i
ExecStartPre=/usr/bin/ip netns exec %i ip link set lo up
ExecStartPre=/usr/bin/ip netns exec %i ip addr add $addr dev $peer
ExecStartPre=/usr/bin/ip netns exec %i ip -6 route add default via $target
ExecStartPre=/usr/bin/ip netns exec %i ip link set $peer up
ExecStartPre=/usr/bin/ip link set $host up
ExecStartPre=/usr/bin/ip netns exec %i nft -f /peer/%i/etc/nftables.conf
ExecStart=/usr/bin/ip netns exec %i /usr/bin/systemd-nspawn --quiet --boot
--keep-unit --link-journal=guest --directory=/peer/%i
ExecStop=/usr/bin/machinectl poweroff %i
ExecStopPost=/usr/bin/ip netns del %i
KillMode=mixed
Type=notify
RestartForceExitStatus=133
SuccessExitStatus=133
[Install]
WantedBy=multi-user.target
PS. I hate problems like this one. <grin></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>