X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=examples%2Fipv6-network.mdwn;h=653dc11ede4bc200353e61d755c6347736fd2d09;hb=1a9528ec4637523bc9f738fc1e03f3b9b4fe05e7;hp=9ea6da4cb7abdc7086e99f8dc697435ae611225d;hpb=d4730f8853ec2a0dfe6aa29c8c4826400e26fec2;p=wiki diff --git a/examples/ipv6-network.mdwn b/examples/ipv6-network.mdwn index 9ea6da4..653dc11 100644 --- a/examples/ipv6-network.mdwn +++ b/examples/ipv6-network.mdwn @@ -40,17 +40,15 @@ This document is to highlight an example setup for using tinc to create an IPv6 * "routera" configuration for tinc (the master router): > >cat tinc.conf > Name = routera -> Device=/dev/net/tun -> TCPOnly = on > Mode = switch > Interface = vpn6 > > >cat tinc-up > #!/bin/sh > #Enable tinc -> ip -6 link set vpn6 up mtu 1280 txqueuelen 1000 -> ip -6 addr add 2001:db8:beef::1/64 dev vpn6 -> ip -6 route add 2001:db8:beef::/48 dev vpn6 +> 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 @@ -63,30 +61,28 @@ This document is to highlight an example setup for using tinc to create an IPv6 > 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 vpn6 -> ip -6 addr del 2001:db8:beef::1/64 dev vpn6 -> ip -6 link set vpn6 down +> 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 > * "routerb" configuration for tinc (the other non-master routers will be like this one): > >cat tinc.conf > Name=routerb -> Device=/dev/net/tun -> TCPOnly = yes > Mode = switch -> Interface = vpn6 > ConnectTo = routera +> Interface = vpn6 > > >cat tinc-up > #!/bin/sh -> ip -6 link set vpn6 up mtu 1280 -> ip -6 addr add 2001:db8:beef::2/64 dev vpn6 +> ip -6 link set $INTERFACE up mtu 1280 +> ip -6 addr add 2001:db8:beef::2/64 dev $INTERFACE > ip -6 route add default via 2001:db8:beef::1 > > >cat tinc-down > #!/bin/sh > ip -6 route del default via 2001:db8:beef::1 -> ip -6 addr del 2001:db8:beef::2/64 dev vpn6 -> ip -6 link set vpn6 down +> ip -6 addr del 2001:db8:beef::2/64 dev $INTERFACE +> ip -6 link set $INTERFACE down 5. You can use [radvd](http://www.litech.org/radvd/) or [Quagga](http://www.quagga.net/) to perform [stateless address autoconfiguration](http://www.ietf.org/rfc/rfc2462.txt) on your LAN. This is an example zebra.conf for LAN autoconfiguration (don't forget to enable the zebra daemon): > ipv6 forwarding