From 4eaea66423ca58dfd7cfd1099ed902d7c81d8622 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 17 May 2014 21:32:13 +0200 Subject: [PATCH 1/1] network: always take possession of host side of nspawn veth tunnels and do IPv4LL on them --- Makefile.am | 3 ++- network/80-container-host0.network | 7 +++++++ network/80-container-ve.network | 13 +++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 network/80-container-ve.network diff --git a/Makefile.am b/Makefile.am index 6e0a59d31..6e0118841 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2641,7 +2641,8 @@ INSTALL_DIRS += \ dist_network_DATA = \ network/99-default.link \ - network/80-container-host0.network + network/80-container-host0.network \ + network/80-container-ve.network dist_udevrules_DATA += \ rules/42-usb-hid-pm.rules \ diff --git a/network/80-container-host0.network b/network/80-container-host0.network index 5d327b4fd..8d9293f23 100644 --- a/network/80-container-host0.network +++ b/network/80-container-host0.network @@ -1,3 +1,10 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + [Match] Virtualization=container Name=host0 diff --git a/network/80-container-ve.network b/network/80-container-ve.network new file mode 100644 index 000000000..f0c02b0ee --- /dev/null +++ b/network/80-container-ve.network @@ -0,0 +1,13 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Match] +Name=ve-* +Driver=veth + +[Network] +IPv4LL=yes -- 2.30.2