Re: IPIP tunnel

Balazs Scheidler (bazsi@balabit.hu)
Mon, 16 Nov 1998 20:43:54 +0100 (CET)


> : > this is how my tunnel works betwwen two machines:
> : >
> : > machine 1
> : > ---------
> : >
> : > ifconfig tunl0 192.168.1.2 pointopoint 15.188.34.122
> : > route add -net 192.168.1.0 tunl0
> :
> : I have a small question about this in development kernels. If I set up
> : tunneling exactly the above way it doesn't work. I tried to tcpdump the
> : network, but encapsulated packets are not even sent. ifconfig-ing tunl0
> : up, adds a route entry, routing the destination pointopoint address
> : through the tunl0 device, which is obviously wrong. (or I am absolutely
> : clueless)
>
> You need to do the following trick (don't ask me why :-)
>
> ifconfig tunl0 192.168.1.2 netmask 255.255.255.255
> route add -host 15.188.34.122 dev tunl0
> route add -net 192.168.1.0 gw 15.188.34.122
> route del -host 15.188.34.122

someone already pointed me to the iproute2 package, which contains "ip",
which - among other things - is able to set up tunnel devices. it works
great.

--- Bazsi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/