From 764ced41b8caff7837d23c3eb5bbd053930c8d1d Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Tue, 7 Oct 2014 19:27:14 +0100 Subject: [PATCH] more portable bridge creation using the documented 'ip link add' syntax Thanks to @hesco for the suggestion. --- weaver/weave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaver/weave b/weaver/weave index 2348b00e..108d2003 100755 --- a/weaver/weave +++ b/weaver/weave @@ -75,7 +75,7 @@ add_nat_rule() { create_bridge() { [ ! -d /sys/class/net/$BRIDGE ] && { - ip link add dev $BRIDGE type bridge + ip link add name $BRIDGE type bridge ip link set dev $BRIDGE address 7a:$(od -txC -An -N5 /dev/random | tr \ : | tail -c+2) # Attempting to set the bridge MTU to a high value directly # fails. Bridges take the lowest MTU of their interfaces. So