📄 install
字号:
INTRODUCTIONMobile IPv6 (or Mobility support in IPv6) provides transparentmobility for Internet Protocol version 6. Protocols above IP shouldnot be affected.This file describes how to install MIPL Mobile IPv6 for Linuxuserspace tools. See INSTALL.kernel for the kernel part.INSTALLATIONAfter you have succesfully installed and configured the kernel part ofMIPL, you still have to compile and install the userspace tools. Run'configure' to create Makefile and mobile-ip6 for your system. Checkthat the Makefile directories are in order for your system. Run'make' and 'make install' to compile and install userlevel tools, manpages, init scripts and example configuration files. These aremandatory for the module to work correctly. You also need to createthe device file for MIPL with 'mknod /dev/mipv6_dev c 0xf9 0'. You should also make sure that the include/linux directory(usr/include/linux in Red hat) is a symbolic link to the patchedkernel's include/linux directory. Otherwise make will fail. In that case, you can create the link by:1. First move the /usr/include/linux directory to a backup as root: mv /usr/include/linux /usr/include/linux-backup 2. Create a symbolic link (as root) to your new patched kernel sources:(replace "/usr/src/linux" with the directory in which your mipv6 patched kernel sources are) ln -s /usr/src/linux/include/linux /usr/include/linuxThe essential files are installed in following directories:mipdiag /sbin allman pages /usr/man allinit script /etc/rc.d/init.d RH6 /etc/init.d RH7-9 & Debian /sbin/init.d SuSEconfig files /etc/sysconfig RH6 - RH9 /etc Debian & SuSEdocs /usr/share/doc ALLConfiguration scripts are tested only in RH9 and Debian. Theyare not guaranteed to work on other systems.CONFIGURATIONNow configure MIPL for your system. MIPL configuration file isnetwork-mip6.conf(5). It is pretty self-explanatory but you may wantto take a look at the man pages. For run-time configuration anddiagnostics use mipdiag(8). See manual page for usage information.USAGEIncluded in the package the is an automatic startup script called"mobile-ip6" for the module. Use "mobile-ip6 start" to start themodule by hand and "mobile-ip6 stop" to unload. This script reads theconfiguration files and configures module accordingly.Module may also be loaded by hand using insmod. You cannot set HomeAddress nor Home Agent Address with insmod so Mobile Node will be leftin a state where it does not know these addresses until given withmipdiag(8). See provided init script for insmod options available.Automatic startup in RedHat and DebianOn RedHat and Debian systems all init scripts are in /etc/init.d (or/etc/rc.d/init.d in older RedHats). Runlevel directories /etc/rc?.d(or /etc/rc.d/rc?.d in older RedHats) contain symbolic links to actualscripts. Links are managed in RedHat with chkconfig tool and inDebian with update-rc.d (both similar to IRIX chkconfig). Doing'chkconfig mobile-ip6 --levels 345 on' in RedHat or 'update-rc.dmobile-ip6 start 75 3 4 5 stop 05 1 2 6' in Debian will set up allnecessary links.NOTE ON DYNAMIC HOME AGENT ADDRESS DISCOVERY SUPPORTMIPL supports Dynamic Home Agent Address Discovery, DHAAD. DHAADallows multiple home agents to exist on the same link for failover andload balancing. DHAAD is based on IPv6 anycast addresses.Home agent will automatically configure itself with a DHAAD anycastaddress based on its own router advertisements, which must contain thehome address info option.HA supporting DHAAD must also run radvd (or other software capable ofsending Router Advertisements with MIPv6 extensions) and advertiseitself with H-bit (Home Agent) and R-bit (Router Address) set on everyinterface it serves as a Home Agent. To enable DHAAD in Mobile Node,use a zero address, i.e. 0::0/64 in network-mip6.conf for HA.PROXY DUPLICATE ADDRESS DETECTION Home Agent performs duplicate address detection (DAD) for the homeaddress of MN, when MN registers it initially. HA also defends theaddress for the duration of the registration. With multihomed MNs youshould always set the highest (largest) preference to the homeinterface to avoid problems with proxy DAD. Otherwise MN will try toregister its home address with HA through the interface with thehighest preference, even though the home interface is still at home.Proxy DAD may also cause problems with DHAAD, in case MN has a validregistration with HA1, reboots and tries to register with HA2 or justboots at home (in which case ip -6 a command shows the address as tentative in MN). ROUTER ADVERTISEMENT DAEMON AND MOVEMENT DETECTION IN MNA Router Advertisement Daemon (radvd) should be installed on therouters of home and foreign networks which the mobile node may visit.Official radvd supports Mobile IPv6 extensions since version 0.6.2.radvd can be downloaded from: http://v6web.litech.org/radvd/The radvd package includes needed installation and configurationnotes. For optimal detection of movement by MN, you should set therouter advertisement interval on in router advertisements. There is an example radvd configuration file included in this packagefrom our home agent. You should change the prefixes to match your own network configuration before using it. Mobile node can also poll the current router periodically usingneighbor solicitations to verify its reachability. The sending ofneighbor solicitations is done, if the mobile node has not received arouter advertisement from it default router within the advertisementinterval or for the maximum time router can be reachable. The default value for the reachable time is 5 seconds and can beconfigured between 1 and 1000 seconds by setting/proc/sys/net/ipv6/mobility/max_router_reachable_time to the desiredvalue. For example to set 2 seconds as the time: "echo 2 >/proc/sys/net/ipv6/mobility/max_router_reachable_time".Mobile Node currently supports modified eager cell switching and lazycell switching, with eager cell switching being the default movementdetection algorithm. This can be configured by setting/proc/sys/net/ipv6/mobility/eager_cell_switching to 0 (for lazy cellswitching) or 1 (for eager cell switching).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -