test_nfs4_acls: Add test for acedup settings
[Samba.git] / selftest / ns / create_bridge.sh
blob9766cd8a565bb9246ba93f33c59c34acdef24824
1 #!/bin/sh
3 # creates a bridge interface (i.e. 'selftest0') that connects together the
4 # veth interfaces for the various testenvs
6 br_name=$1
7 ip_addr=$2
8 ipv6_addr=$3
10 # make sure the loopback is up (needed for pinging between namespaces, etc)
11 ip link set dev lo up
13 # create the bridge interface and enable it
14 ip link add $br_name type bridge
15 ip addr add $ip_addr/24 dev $br_name
16 ip addr add $ipv6_addr/112 dev $br_name
17 ip link set $br_name up