Linux with sit0 and several tunnels?

Tomas Lund tlund@nxs.se
Fri, 24 Sep 1999 14:14:12 +0200 (MET DST)


On Thu, 23 Sep 1999, Artur Frysiak wrote:

> On Thu, 23 Sep 1999, Stig Venaas wrote:
> 
> > ifconfig sit0 tunnel ::$IP4END
> > ifconfig sit1 up
> > ifconfig sit1 add $IP6END/64
> > 
> > where IP4END and IP6END are the remote IPv4 and IPv6 addresses. You
> > can add more tunnels by repeating the first line, you will get sit2,
> > sit3 and so on. To use the tunnels you add routes to sit1, sit2..
> 
> If you have net-tools >= 1.52 you may do:
> $ iptunnel add $TUNNELNAME mode sit remote $IPV4END ttl 64
> $ route add fe80::$IPV4END dev $TUNNELNAME
> $ route add $IPV6NETWORK gw fe80::$IPV4END dev $TUNNELNAME
> 

After playing around a bit, this is what i did:

iptunnel add SICS mode sit remote 193.10.66.219 ttl 64
ifconfig SICS up
ifconfig SICS inet6 add 3ffe:200:1:1c::2/126 up
route -A inet6 add 3ffe::/16 gw 3ffe:200:1:1c::1 dev SICS

iptunnel add FLF mode sit remote 138.6.254.7 ttl 64
ifconfig FLF up
ifconfig FLF inet6 add 3ffe:240:ff:5::1/126 up
route -A inet6 add 3ffe:240:5::/48 gw 3ffe:240:ff:5::2 dev FLF

...I like this better since the tunnel endpoints have "real"
IPv6-addresses instead of fe80 ones.
(yes, stupid ifconfig, you MUST bring the interface up first, and THEN add
ip) 

Thanks everyone who helped pointing me in the right direction. :)

Best Regards, Tomas Lund.