Create a new bridge named 'qemu_bridge' with tap3 and tap4 interface using ip address '192.168.42.50/24" and bring the bridge up
./setup_bridge.sh -b=qemu_bridge --addbridge -a -i=tap3 -i=tap4 -p="192.168.42.50/24" -u
./setup_bridge.sh -b=qemu_bridge --addbridge
./setup_bridge.sh -b=qemu_bridge --delbridge
./setup_bridge.sh -b=qemu_bridge -a -i=tap5 -i=tap6
./setup_bridge.sh -b=qemu_bridge -r -i=tap5
./setup_bridge.sh -b=qemu_bridge --delall
./setup_bridge.sh -b=qemu_bridge -p="192.168.42.50/24"
./setup_bridge.sh -b=qemu_bridge -s
./setup_bridge.sh -b=qemu_bridge -u
./setup_bridge.sh -b=qemu_bridge -d
Warning: if you have docker installed on your host, it may have created an iptable rule that forbids IP forwarding: the symptom will be that ARP will work, allowing your containers to see each other, but all IP traffic between your containers will be blocked. In that case, you need to disable iptables for network bridges (as root):
$ echo 0 | sudo tee /proc/sys/net/bridge/bridge-nf-call-iptables
You can monitor the IP traffic between the two containers using tshark (or tcpdump):
$ sudo tshark -i br0