- >cat tinc-up
- #!/bin/sh
- #Enable tinc
- ip -6 link set $INTERFACE up mtu 1280 txqueuelen 1000
- ip -6 addr add 2001:db8:beef::1/64 dev $INTERFACE
- ip -6 route add 2001:db8:beef::/48 dev $INTERFACE
- #Static routing table
- ip -6 route add 2001:db8:beef:2::/64 via 2001:db8:beef::2
- ip -6 route add 2001:db8:beef:3::/64 via 2001:db8:beef::3
- ip -6 route add 2001:db8:beef:4::/64 via 2001:db8:beef::4
-
- >cat tinc-down
- #!/bin/sh
- #Static routing table
- ip -6 route del 2001:db8:beef:2::/64 via 2001:db8:beef:::2
- ip -6 route del 2001:db8:beef:3::/64 via 2001:db8:beef:::3
- ip -6 route del 2001:db8:beef:4::/64 via 2001:db8:beef:::4
- #Disable tinc
- ip -6 route del 2001:db8:beef::/48 dev $INTERFACE
- ip -6 addr del 2001:db8:beef::1/64 dev $INTERFACE
- ip -6 link set $INTERFACE down
+ >cat tinc-up
+ #!/bin/sh
+ #Enable tinc
+ ip -6 link set $INTERFACE up mtu 1280 txqueuelen 1000
+ ip -6 addr add 2001:db8:beef::1/64 dev $INTERFACE
+ ip -6 route add 2001:db8:beef::/48 dev $INTERFACE
+ #Static routing table
+ ip -6 route add 2001:db8:beef:2::/64 via 2001:db8:beef::2
+ ip -6 route add 2001:db8:beef:3::/64 via 2001:db8:beef::3
+ ip -6 route add 2001:db8:beef:4::/64 via 2001:db8:beef::4