Re: IPIP tunnel

Jan Kasprzak (kas@informatics.muni.cz)
Mon, 16 Nov 1998 15:46:37 +0100


Balazs Scheidler wrote:
: On Tue, 10 Nov 1998, Tomas Buday wrote:
:
: > 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

-Yenya

--
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz>       http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz   0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\             Czech Linux Homepage:  http://www.linux.cz/              ///
/// I think I'd rather be forced to learn perl than 68020 MMU. -Alan Cox \\\

- 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/