aboutsummaryrefslogtreecommitdiff
path: root/script/jepsen.garage/setup-tap.sh
blob: 7e09abc32d9fca572687fc52ac0cfaed036e380b (plain) (blame)
1
2
3
4
5
6
7
8
9
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