aboutsummaryrefslogtreecommitdiff
path: root/script/jepsen.garage/setup-tap.sh
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-04-18 13:27:22 +0200
committerAlex Auvolat <alex@adnab.me>2023-10-18 12:03:11 +0200
commit17ebb652730f69f53fe7d2b31fbf2db2075b9be7 (patch)
tree9cb701289cb81bfc3eb10da0137bdb56d3942a67 /script/jepsen.garage/setup-tap.sh
parent7011b71fbd782e199417ce9afa44a8c220885b4a (diff)
downloadgarage-17ebb652730f69f53fe7d2b31fbf2db2075b9be7.tar.gz
garage-17ebb652730f69f53fe7d2b31fbf2db2075b9be7.zip
jepsen ssh into containers seem to work ?
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
+
+