來源‧連結
假設Kernel位於/usr/src/linux下,mipv6-0.9.3-v2.4.18位於/tmp下。
1.重新編譯Kernel
#cd /tmp/mipv6-0.9.3-v2.4.18/
#cp mipv6-0.9.3-v2.4.18.patch /usr/src/linux
#cd /usr/src/linux
#patch – p1 < mipv6-0.9.3-v2.4.18.patch
重新編譯Kernel,其中幾個選項設定如下(IPv6 + Mobile IPv6):
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_IPV6_TUNNEL=m
CONFIG_IPV6_MOBILITY=m
編譯完Kernel之後
#cd /usr/src/linux/mipv6-0.9.3-v2.4.18/userspace
#configure
#make
#make install2.設定組態檔
<Home Agent>
檔案路徑 /etc/sysconfig/network-mip6.conf,設定此檔如下
FUNCTIONALITY=ha
DEBUGLEVEL=7
TUNNEL_SITELOCAL=yes
MIN_TUNNEL_NR=1
MAX_TUNNEL_NR=2
HOMEADDRESS=3ffe:302:11:2:250:baff:fe02:2398/64
HOMEAGENT=3ffe:302:11:2:250:baff:fe02:2398/64
MOBILENODEFILE=/etc/mipv6_acl.conf
#SAFILE=/etc/mipv6_sas.conf
RTR_SOLICITATION_INTERVAL=1
RTR_SOLICITATION_MAX_SENDTIME=5
檔案路徑 /etc/mipv6_acl.conf,設定此檔如下
ALLOW 3ffe:302:11:2::/64檔案路徑 /etc/radvd.conf,設定此檔如下
interface eth1
{
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
AdvHomeAgentFlag on;
AdvHomeAgentInfo on;
HomeAgentLifetime 64000;
HomeAgentPreference 5;
# new EUI-64 prefixes
prefix 3ffe:302:11:2:250:baff:fe02:2398/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};
<Mobile Node>
檔案路徑 /etc/sysconfig/network-mip6.conf,設定此檔如下
FUNCTIONALITY=mn
DEBUGLEVEL=7
TUNNEL_SITELOCAL=yes
HOMEADDRESS=3ffe:2e01:1:5:a00:46ff:fe0d:b048/64
HOMEAGENT=3ffe:2e01:1:5::1/64
#MOBILENODEFILE=/etc/mipv6_acl.conf
#SAFILE=/etc/mipv6_sas.conf
RTR_SOLICITATION_INTERVAL=1
RTR_SOLICITATION_MAX_SENDTIME=5<Correspondent Node>
檔案路徑 /etc/sysconfig/network-mip6.conf,設定此檔如下
FUNCTIONALITY=cn
DEBUGLEVEL=7
3. 載入Mobile IPv6模組
#modprobe mobile_ip6
interface eth1
{
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
AdvHomeAgentFlag on;
# new EUI-64 prefixes
prefix 3ffe:302:11:4:202:b3ff:fe3c:c412/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};
留言列表