#!/bin/sh
ip l set "$1" up
ip a a "$2" dev tun0
case $(hostname) in
vm1-6)
ip r add 172.16.2.176/28 dev tun0
;;
vm3-6)
ip r add 172.16.2.144/28 dev tun0
esac