The following steps describe the MIPL installation (based on the README and INSTALL files of the package).
1. Unpack the MIPL tar file, for example in the /usr/src directory. This will create the directory /usr/src/mipv6-1.1-v2.4.26
2. Go to the Linux source directory (e.g. /usr/src/linux)
3. Apply the MIPL kernel patch:“patch -p1 < /usr/src/mipv6-1.1-v2.4.26/mipv6-1.1-v2.4.26.patch”
4. “make xconfig” (or config or whatever you prefer) to configure the kernel: you should have the following settings in your configuration:
CONFIG_EXPERIMENTAL=y
CONFIG_SYSCTL=y
CONFIG_PROC_FS=y
CONFIG_MODULES=y
CONFIG_NET=y
CONFIG_NETFILTER=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IPV6=m
CONFIG_IPV6_SUBTREES=y
CONFIG_IPV6_IPV6_TUNNEL=m
CONFIG_IPV6_MOBILITY=m
CONFIG_IPV6_MOBILITY_MN=m
CONFIG_IPV6_MOBILITY_HA=m
CONFIG_IPV6_MOBILITY_DEBUG=y
The last setting is optional. CONFIG_IPV6_MOBILITY_DEBUG turns on debugging messages. It is advised to set this to ‘y’ in order to help debug any problems since MIPv6 is still very much an immature protocol.
5. Compile the kernel and modules:
- “make dep && make clean && make bzImage modules modules_install”
6. Install the new kernel:
Copy the created bzImage to /boot/vmlinuz-2.4.24 and edit /etc/lilo.conf (or /boot/grub/menu.lst if you use GrUB) reflecting the changes, then run lilo to apply the changes (not applicable if you use GrUB).
7. Add the MIPv6 device:
- “mknod /dev/mipv6_dev c 0xf9 0”
8. Build the user space tools of MIPL:
- “cd /usr/local/src/mipv6-1.1-v2.4.26”
- “./configure”
- “make && make install”
- the “mipdiag” tool should be available now, which allows configuration and status query.
9. If your distribution does not provide a router advertisement daemon, get one from http://v6web.litech.org/radvd/ and compile it.
10. Reboot into the new kernel.
11. Start MIPL with:
/etc/init.d/mobile-ip6 start
