Linux with sit0 and several tunnels?

Horacio J. Peña horape@compendium.com.ar
Thu, 23 Sep 1999 15:27:03 -0300


¡Hola!


> Is anyone out there using linux 2.2/glibc 2.1 to set up multiple tunnels
> using numbered tunnel interfaces? My setup today looks like this:

> ifconfig sit0 inet6 add 3ffe:200:1:1c::2
> route -A inet6 add 3ffe::0/16 gw ::193.10.66.219 dev sit0
> route -A inet6 add 3ffe:240:2::/48 gw ::139.58.254.40 dev sit0

> The first route is the one to my upstream pTLA (SICS) and the other is a
> tunnel to another linuxbox (unnumbered tunnel endpoints), but now i need
> to set up another tunnel to a solarisbox that wants IPv6-addresses for the
> tunnel endpoints, does anyone know how to do this, I'd hate to spend
> severaly days experimenting if this information is available somewhere :) 

Try something like:

ip tunnel add SICS mode sit remote 193.10.66.219
ip link set SICS up
ip route add 3ffe::0/16 dev SICS

ip tunnel add linuxbox mode sit remote 139.58.254.40
ip link set linuxbox up
ip route add 3ffe:240:2::0/48 dev linuxbox

ip tunnel add solarisbox mode sit remote <ip-of-the-solaris-box>
ip link set solarisbox up
ip addr add 3ffe:240:1::1/64 dev solarisbox
ip route add 3ffe:240:3::0/48 dev solarisbox 

> Best Regards, Tomas Lund

					HoraPe
---
Horacio J. Peña
horape@compendium.com.ar
horape@uninet.edu
bofh@puntoar.net.ar
horape@hcdn.gov.ar