[systemd-devel] systemd.network and IPv6 addrlabel
Christian Brunotte
cb at lathspell.de
Tue Apr 14 08:41:22 PDT 2015
Am Tue, 14 Apr 2015 15:24:07 +0100
schrieb Richard Maw <richard.maw at codethink.co.uk>:
> On Mon, Apr 13, 2015 at 04:03:34PM +0200, Christian Brunotte wrote:
> You might be able to replicate the behaviour by adding something like the
> following; I haven't tested it myself, but systemd-networkd-wait-online
> --interface=eth1 sounds promising.
>
> [Unit]
> Description=Post-up configuration for eth1
> After=network.target
> # If you want to block network-online.target until configuration has finished
> # then add Before=network-online.target
> [Service]
> Type=oneshot
> RemainAfterExit=yes
> ExecStart=/lib/systemd/systemd-networkd-wait-online --interface eth1
> ExecStart=/usr/bin/ip addr add 2001:1111:0:222:33::/64 dev eth1
> ExecStart=/usr/bin/ip addrlabel add prefix 2001:1111:0:222:33::/128 label 666
> ExecStart=/usr/bin/ip addrlabel add prefix 2001:1111::/32 label 666
> # Do `down` configuration with an ExecStop=
Thanks, this would at least be a workaround and I didn't knew
about systemd-networkd-wait-online before.
I'll going to file a wishlist bug against systemd and ask if they
could implement an [addrlabel] section.
best regards
-christian-
More information about the systemd-devel
mailing list