Linux-Hams archive - March 1997: How do I use ip-tunnel?

How do I use ip-tunnel?

Joop Stakenborg (xfwmaslq.eiau@sendo.com)
Thu, 6 Mar 1997 09:39:42 +0100


Hi, thanks for reading.
I am trying to set up the kernel tunnel driver to be able to
reach another host which is normally not reachable by me.
For clarity I have replaced ip-numbers with host names [between brackets].
Here is the setup:

First I load the drivers:

insmod ipip.o
insmod new_tunnel.o

Then the driver is configured with ifconfig:

ifconfig tunl0 [pa3aba] pointopoint [pe1lxx]
# here an scc port is attached too, called sl0

Then the routes are set:

route add -host sl0 [pi1rni]
route add -net [amprnet] sl0 gw [pi1rni]
route add -host [pa3eko] tunl0

The other host, pe1lxx has the tunnel stuff compiled in and
only has one line to set up his stuff:

ifconfig tunl0 [pe1lxx]

Now, pa3eko just routes his packets to me through pe1lxx:

route add -host [pa3aba] sl0 gw [pe1lxx]

The setup works OK for a while, but after some time, half an hour
or so and sometimes less, pe1lxx will get kernel panics and
his system will even crash sometimes.
Can anyone see if this is setup OK?
Maybe I forgot something?

Thanks for your attention,
Joop PA3ABA

-- 
---------------------------------
        Joop Stakenborg
   Department of Hyperthermia
Dr. Daniel den Hoed Cancer Center
P.O.Box 5201    3008 AE Rotterdam
        The Netherlands
   email: zta.egkoa@mailit.tunk.net
---------------------------------