From 1901e251f3e02abad4bffeef383f1136861008dc Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 27 Sep 2020 22:21:09 +0200 Subject: Networky things Idk, really --- run | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'run') diff --git a/run b/run index a220bee..b172fc6 100755 --- a/run +++ b/run @@ -121,7 +121,13 @@ make_build() { make_test() { if [ "$mode" = "net" ]; then - brctl show br0 >/dev/null || sudo brctl addbr br0 + brctl show br0 &>/dev/null || ( + sudo brctl addbr br0 + sudo brctl addif br0 enp8s0 + sudo ip addr add 172.20.0.1/16 dev br0 + sudo ip link set br0 up + sudo iptables -I FORWARD -m physdev --physdev-is-bridged -j ACCEPT + ) fi if [ "$mode" = "test" ]; then -- cgit v1.2.3