aboutsummaryrefslogtreecommitdiff
path: root/script/jepsen.garage/setup-tap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'script/jepsen.garage/setup-tap.sh')
-rwxr-xr-xscript/jepsen.garage/setup-tap.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/script/jepsen.garage/setup-tap.sh b/script/jepsen.garage/setup-tap.sh
new file mode 100755
index 00000000..7e09abc3
--- /dev/null
+++ b/script/jepsen.garage/setup-tap.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+USER=$(whoami)
+
+for NODE in 1 2 3 4 5; do
+ sudo ip tuntap add microvm-n$NODE mode tap user $USER
+ sudo ip addr add dev microvm-n$NODE 10.$NODE.0.1
+done
+
+