This repository has been archived on 2019-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
rip-vm2/partage/configure-tun.sh
2019-11-14 12:51:11 +01:00

12 lines
171 B
Bash
Executable File

#!/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