Since MIPv6 functionality is not enabled by default you need to enable the correct features and rebuild the kernel. Depending on the type of node you wish to install (MN, HA or CN) the entries in the kernel configuration differ.
The following features should be set in your kernel configuration file for MN functionality:
options MIP6
options MIP6_MOBILE_NODE
pseudo-device hif 1
The following features should be set in your kernel configuration file for HA functionality:
options MIP6
options MIP6_HOME_AGENT
The following features should be set in your kernel configuration file for CN functionality:
options MIP6
Compile and install the kernel. This will give you a kernel supporting the node type you configured. The next step is to compile the user space programs. This will also provide you with:
• rtadvd - a Mobile IPv6 suitable routing advertisement daemon
• had - a dynamic home agent discovery protocol daemon
• mip6stat - an application to gather MIPv6 related statistics
• mip6control - a control application for MIPv6 functions
The user space programs had, mipstat and mip6control are built automatically and should be installed in /usr/local/v6/sbin (check your path settings as well to make sure you load the kame versions of the applications instead of the standard ones /usr/local/v6 has to be in your path before the path to the regular apps). The two supporting binaries “mip6control” and “mip6stat” should have been compiled by applying the ordinary kame tree “make” procedure.
To build rtadvd, you need to add the following line to its Makefile (this should be located at
/freebsd4/sbin/rtadvd/ in FreeBSD):
CFLAGS+=-DMIP6
Then recompile rtadvd and install it:
make clean
make
make install
