Re: Anyone got IPIP tunneling or Mobile IP to work?

Foo Chun Choong (engp7643@leonis.nus.edu.sg)
Tue, 5 Oct 1999 21:37:06 +0800


Hi Michael,

The National University of Singapore has an implementation of Mobile IP in
the 2.0.34 Linux kernel. (Released under the GPL License)

More details can be obtained from http://mip.ee.nus.edu.sg or
http://skylark.ee.nus.edu.sg

The web site contains links to other Linux Mobile IP implementations too.
(eg Dynamics HUT have an MIP implementation for the 2.2 kernels)

The NUS Mobile IP project is eagerly looking for developers interested in
further improving the source codes that we have released. Do drop me a
note if anyone is interested in participating in the NUS Mobile IP project.

Many thanks and Hope this helps,
Foo Chun Choong,
The NUS Mobile IP Project,
National University of Singapore

On Sat, 2 Oct 1999, Foo Chun Choong wrote:

> Date: Fri, 17 Sep 1999 14:16:45 -0400 (EDT)
> From: Michael H. Warfield <mhw@wittsend.com>
> To: linux-kernel@vger.rutgers.edu,
> linux-config@vger.rutgers.edu
> Cc: mobileip@anchor.cs.binghamton.edu
> Subject: Anyone got IPIP tunneling or Mobile IP to work?
>
> Hello all,
>
> I just ran into a situation where I needed to do something I've
> never set up before. I need to get a simple IP in IP tunnel set up. This
> is for a situation where I want to set up a static IP address for my son
> who is dialing into his ISP and getting a dynamic IP address. Ideally,
> I would like to get a "Mobile-IP" configuration working. I have a server
> co-located at an ISP and control over a large block of addresses (/24)
> for virtual servers and mobile-ip like this.
>
> I went to the NET3-4 HOWTO and followed the instructions in there
> but it didn't work. I'm trying to follow the "tunneled host configuration".
> I have the IPIP tunnel configured in the kernel and ifconfig shows the
> tunl0 interface.
>
> The instructions say to do this on the router (I've substituted
> my actual addresses):
>
> ] # Tunnel device configuration
> ] ifconfig tunl0 130.205.32.4 up
> ] route add -host 130.205.32.16 gw 208.24.232.190 tunl0
> ] #
> ] # Proxy ARP for the remote host
> ] arp -s 130.205.32.16 00:10:4B:6A:94:C5 pub
>
> The ifconfig works just fine, but when I execute the route command
> I get an error like this:
>
> ] [root@remus /root]# route add -host 130.205.32.16 gw 208.24.232.190 tunl0
> ] SIOCADDRT: Network is unreachable
>
> No sense setting up the arp at this point. :-(
>
> My routing table looks like this:
>
> ] [root@remus /root]# netstat -nr
> ] Kernel IP routing table
> ] Destination Gateway Genmask Flags MSS Window irtt Iface
> ] 130.205.32.4 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
> ] 130.205.70.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> ] 130.205.32.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> ] 130.205.32.0 0.0.0.0 255.255.255.0 U 0 0 0 tunl0
> ] 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> ] 224.0.0.0 0.0.0.0 240.0.0.0 U 0 0 0 eth0
> ] 0.0.0.0 130.205.32.1 0.0.0.0 UG 0 0 0 eth0
>
> Ifconfig shows my tunnel interface like this:
>
> ] [root@remus /root]# ifconfig tunl0
> ] tunl0 Link encap:IPIP Tunnel HWaddr
> ] inet addr:130.205.32.4 Mask:255.255.255.0
> ] UP RUNNING NOARP MTU:1480 Metric:1
> ] RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> ] TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> ] collisions:0 txqueuelen:0
>
> I have also tried downloading the LinuxMobileIP package (which dates
> back to 1996) and tried that. I found a version 1.00 and a version 1.01 out
> on the net. Both are pretty old and neither would compile on RedHat 6.0
> due to glibc header problems which were relatively simple to fix. Once
> compiled and configured, I found that it also would not run and seems to
> think there is no tunnel support in the kernel...
>
> ] IPaddr: 82cd2004, Mask: ffffff00HWaddr: 0:10:4b:6a:94:c5
> ] Initialized sockets ...
> ] IFACEreq 3 (DOWN=3,MKPT2PT=4,REDIR=5), tnum 0, haaddr 0, coaddr 0.
> ] IFACEreq 3 (DOWN=3,MKPT2PT=4,REDIR=5), tnum 1, haaddr 0, coaddr 0.
> ] No tunnel support in kernel?
> ] lowifacereq DOWN failed SIOCSIFFLAGS: No such device
> ] ARPreq 0 (REM0=0,REM1=1,PROXY=2), addr 0, hwaddr 0:10:4b:6a:94:c5
> ] lowARPreq called with zero ipaddr. Ignored.
> ] ARPreq 0 (REM0=0,REM1=1,PROXY=2), addr 0, hwaddr 0:10:4b:6a:94:c5
> ] lowARPreq called with zero ipaddr. Ignored.
>
> Ok... Given its age, I suppose it was a stretch to hope it would
> run with a 2.2.12 kernel. Seems like it would be nice to have running,
> though...
>
> So, I figure I'm either doing something brain-dead stupid and can't
> see the obvious or something has changed radically and the NET3-4 HOWTO
> is out of date as is the LinuxMobileIP package.
>
> I have not tried the tunnel option or the pointopoint option to
> ifconfig, since neither seemed appropriate according to the ifconfig man
> page.
>
> Does anyone know how to get IPIP Tunneling working?
>
> Does anyone know of a more up-to-date Mobile IP package that will
> work with 2.2.12 (that would be the ideal answer)?
>
> Given how old it is and the fact that it doesn't compile "out of
> the box", is LinuxMobileIP <http://anchor.cs.binghamton.edu/~mobileip>
> still supported by anyone?
>
> I know I can get something set up using the FreeSwan IPSEC
> facilities, but that seems like using and elephant gun to kill a mouse.
>
> Mike
> --
> Michael H. Warfield | (770) 985-6132 | mhw@WittsEnd.com
> (The Mad Wizard) | (770) 331-2437 | http://www.wittsend.com/mhw/
> NIC whois: MHW9 | An optimist believes we live in the best of all
> PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!
>
>
> -
> 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/
>

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