fuzzing: fix fuzz_stable_sort_r_unstable comparison
[Samba.git] / selftest / ns / create_bridge.sh
blob74f7ecafedc7ae3c0316cded56835ade6e0db863
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