IP-tunneling problem

IP-tunneling problem

Post by Daniel Rie » Fri, 04 Apr 1997 04:00:00



Hi!

Trying to set up an ip-ip tunnel, I ran into problems:

We got the following net-structur:

Host A --Ethernet-- Host C --PPP-- Host D --PPP-- Host B

I need to install an IP-Tunnel from Host A (IP 192.168.5.111) to Host B (IP 192.168.2.1, Tunnel IP 192.168.5.112).
The routing between 192.168.5.111 <-> 192.168.2.1 works properly.

On Host A I now do the following:
modprobe ipip; modprobe new_tunnel
ifconfig tunl0 192.168.5.111 pointopoint 192.168.2.1
route add 192.168.5.112 dev tunl0

And on Host B I enter:
modprobe ipip; modprobe new_tunnel
ifconfig tunl0 192.168.5.112 pointopoint 192.168.5.111
route add 192.168.5.111 dev ppp0
route add -net 192.168.5.0 netmask 255.255.255.0 dev tunl0

Afterwards I get these results:
On Host A "ping 192.168.5.112" works fine.
On Host B "ping 192.168.5.112" also works (loopback).
192.168.5.111 is still reachable but not via the tunnel (this is as it should be)

But a "ping 192.168.5.x" from Host B dosn't work. And "tcpdump -i ppp0" shows that nothing is send out from Host B.

Is there anybody, who knows what went wrong?

Grettings, Daniel