Computer Network Laboratory    Group 5

LAB 4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

˙The Detail Flow of Lab4 and The Problems We Met. (Cont.)

 

        In MN we type the command below:

             # iwconfig eth0 mode ad-hoc essid homenet enc off
             # ifconfig eth0 inet6 add fec0:106:2700::4/64
             # echo 0 > /proc/sys/net/ipv6/conf/eth0/forwarding
             # echo 1 > /proc/sys/net/ipv6/conf/eth0/autoconf
             # echo 1 > /proc/sys/net/ipv6/conf/eth0/accept_ra
             # echo 1 > /proc/sys/net/ipv6/conf/eth0/accept_redirects
 
             In HA we type the command below
             # ifconfig eth0 inet6 add fec0:106:2700::1/4
             # echo 1 > /proc/sys/net/ipv6/conf/eth0/forwarding
             # echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf
             # echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_ra
             # echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_redirects
             # ip  route add ::/0 via fec0:106:2700::1
 
             In AR we type the command below
             # ifconfig eth0 inet6 add fec0:106:2300::1/64
             # ifconfig eth1 inet6 add fec0:106:1100::1/64
             # echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
             # echo 0 > /proc/sys/net/ipv6/conf/all/autoconf
             # echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra
             # echo 0 > /proc/sys/net/ipv6/conf/all/accept_redirects
             # ip route add fec0:106:2700::/64 via fec0:106:2300::2
 
             then we make configure file “mip6d.conf” in /etc
HA:
             # Mobile IPv6 configuration file: Home Agent
             #
             # filename: /etc/mip6d.conf         
         
             NodeConfig HA;
         
             ## If set to > 0, will not detach from tty
             DebugLevel 10;
         
             ## List of interfaces where we serve as Home Agent
             Interface "eth0";
 
             ##
             ## IPsec configuration
             ##
             UseMnHaIPsec enabled;
 
             IPsecPolicySet {
                 HomeAgentAddress fec0:106:2700::1
                 HomeAddress fec0:106:2700::1/64;
 
                 IPsecPolicy HomeRegBinding UseESP;
                 IPsecPolicy MobPfxDisc UseESP;
                 IPsecPolicy TunnelMh UseESP;
             }
 
MN:
             # Mobile IPv6 configuration file: Mobile Node
             #
             # filename: /etc/mip6d.conf         
 
             NodeConfig MN;
 
             ## If set to > 0, will not detach from tty
             DebugLevel 10;
 
             MnDiscardHaParamProb enabled;
 
             Interface "eth0";
 
             MnHomeLink "eth0" {
                 HomeAgentAddress fec0:106:2700::1;
                 HomeAddress fec0:106:2700::4/64;
             }
             ##
             ## IPsec configuration
             ## 
             UseMnHaIPsec enabled;
             IPsecPolicySet {
                 HomeAgentAddress fec0:106:2700::1;
                 HomeAddress fec0:106:2700::4/64;
                 IPsecPolicy HomeRegBinding UseESP;
                 IPsecPolicy MobPfxDisc UseESP;
                 IPsecPolicy TunnelMh UseESP;
             }
 

2. Setting radvd

 

             radvd is a software to help us to do the broadcast in IPv6

we set the radvd.conf in /etc.

 

AR:

             interface eth2

             {

                          AdvSendAdvert on;

                          AdvIntervalOpt on;

 

                          MinRtrAdvInterval 3;

                          MaxRtrAdvInterval 10;

                          AdvHomeAgentFlag off;

 

             prefix fec0:106:1100::/64

             {

                         AdvOnLink on;

                         AdvAutonomous on;

                         AdvRouterAddr on;

             };

HA:

             interface eth2

             {

                          AdvSendAdvert on;

                          MaxRtrAdvInterval 3;

                          MinRtrAdvInterval 1;

                          AdvIntervalOpt off;

                          AdvHomeAgentFlag on;

                          HomeAgentLifetime 10000;

                          HomeAgentPreference 20;

                          AdvHomeAgentInfo on;

             prefix fec0:106:2700::1/64

             {

                          AdvRouterAddr on;

                          AdvOnLink on;

                          AdvAutonomous on;

                          AdvPreferredLifetime 10000;

                          AdvValidLifetime 12000;

             };

 

             After this, if we execute “radvd start” and “radvdump”, we’ll see some information in HA and AR like this, which means we have succeed to broadcast with each other.

 

Router advertisement from fe80::202:2dff:fe54:d11e (hoplimit 255)

    Received by interface eth0

        # Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump

        AdvCurHopLimit: 64

        AdvManagedFlag: off

        AdvOtherConfigFlag: off

        AdvHomeAgentFlag: on

        AdvReachableTime: 0

        AdvRetransTimer: 0

        Prefix fec0:106:2700::2/64

                AdvValidLifetime: 12000

                AdvPreferredLifetime: 10000

                AdvOnLink: on

                AdvAutonomous: on

                AdvRouterAddr: on

        AdvSourceLLAddress: 00 02 2D 54 D1 1E

        AdvHomeAgentInfo:

                HomeAgentPreference: 20

                HomeAgentLifetime: 1000

 

 

             And we can use “ping6 –I eth2 (IPv6 IP)” to check if HA and AR is reachable. And we’ve succeed.

 

             But after the step above, we have failed on doing

                          # mip6d -c /etc/mip6d.conf

 

             The information we retrieved should be like this:

mip6d[3794]: MIPL Mobile IPv6 for Linux v2.0.1 started (Home Agent) 

          main: MIPL Mobile IPv6 for Linux started in debug mode, not detaching from terminal

          conf_show: config_file = /etc/mip6d.conf 

          conf_show: vt_hostname = localhost

          conf_show: vt_service = 7777

          conf_show: mip6_entity = 2

          conf_show: debug_level = 10

          conf_show: PolicyModulePath = [internal]

          conf_show: DefaultBindingAclPolicy = 0

          conf_show: NonVolatileBindingCache = disabled

          conf_show: KeyMngMobCapability = disabled

          conf_show: UseMnHaIPsec = enabled 

          conf_show: MnMaxHaBindingLife = 262140

          conf_show: MnMaxCnBindingLife = 420

          conf_show: MnRouterProbes = 0

          conf_show: MnRouterProbeTimeout = 0.000000

          conf_show: InitialBindackTimeoutFirstReg = 1.500000

          conf_show: InitialBindackTimeoutReReg = 1.000000

          conf_show: UseCnBuAck = disabled

          conf_show: DoRouteOptimizationMN = enabled

          conf_show: MnUseAllInterfaces = disabled

          conf_show: MnDiscardHaParamProb = disabled

          conf_show: SendMobPfxSols = enabled

          conf_show: SendMobPfxAdvs = enabled

          conf_show: SendUnsolMobPfxAdvs = enabled

          conf_show: MaxMobPfxAdvInterval = 86400

          conf_show: MinMobPfxAdvInterval = 600

          conf_show: HaMaxBindingLife = 262140

          conf_show: DoRouteOptimizationCN = enabled

          xfrm_cn_init: Adding policies and states for CN

          xfrm_ha_init: Adding policies and states for HA

          vt_server_init: VT server listens 127.0.0.1[7777] OK  [We Miss This One]

 

 

             But we don’t have the red one, and got some error. This is the bottleneck we’ve met.

             We have stopped doing this experiment because it takes us too much time (a full week) and we had not slept for three days due to the complexity of this experiment and so many difficult problems we have met.