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

12 lines
171 B
Bash
Raw Normal View History

2019-10-25 11:37:27 +02:00
#!/bin/sh
2019-11-06 07:36:00 +01:00
ip l set "$1" up
ip a a "$2" dev tun0
2019-11-14 12:51:11 +01:00
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