From 71f9ec9e9bb47ae90bd563e8975f82ba79855ac6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 6 Oct 2017 12:00:33 +0200 Subject: Using iproute instead of net-tools to setup interfaces. Signed-off-by: Daniel Baumann --- lib/container/start | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/container/start') diff --git a/lib/container/start b/lib/container/start index 6d2c7a9..e2d94b5 100755 --- a/lib/container/start +++ b/lib/container/start @@ -316,8 +316,8 @@ then cat > "/etc/network/interfaces.d/${INTERFACE}" << EOF allow-hotplug ${INTERFACE} iface ${INTERFACE} inet manual - pre-up ifconfig ${INTERFACE} up - post-down ifconfig ${INTERFACE} down + pre-up ip link set ${INTERFACE} up + post-down ip link set ${INTERFACE} down EOF done @@ -347,10 +347,10 @@ EOF cat > "/etc/network/interfaces.d/${INTERFACE}" << EOF allow-hotplug ${INTERFACE} iface ${INTERFACE} inet manual - pre-up ifconfig ${INTERFACE} up + pre-up ip link set ${INTERFACE} up post-up brctl addif ${BRIDGE} ${INTERFACE} pre-down brctl delif ${BRIDGE} ${INTERFACE} - post-down ifconfig ${INTERFACE} down + post-down ip link set ${INTERFACE} down EOF else -- cgit v1.2.3