3 # Configures the interfaces needed for communication between namespaces.
4 # This handles the bridge-end of the veth pair.
7 # the main bridge interface is called 'selftest0' (although in future we may
8 # want to segregate the different domains by using different bridges)
11 # we need to wait for the child namespace to start up and add the new
12 # interface back to our new namespace
13 while ! ip link show
$interface >/dev
/null
2>&1; do
15 echo "Waiting for $interface to be created..."
18 # bring the bridge-end of the link up and add it to the bridge
19 ip link
set dev
$interface up
20 ip link
set $interface master
$bridge