(usagi-users 03979) Re: Mobile Node does not send Binding Update

Luis Campo Giralte <[email protected]> Mon, 12 Nov 2007 07:27:32 +0100
Newsgroups gmane.linux.ipv6.usagi.users
Message-ID <1194848852.6231.2.camel@LinuxCampo>
Hi Michal, its seems that the link layer do not receive any router
advertisement so the binding updates will never send to the HA, can you
send us a tcpdump of the MN interfaces?

Regards Luis

El lun, 12-11-2007 a las 00:11 +0100, Michal Franczak escribió:
> 
> Hello,
> I my mobile node does not send Binding Update when it moves from home
> network to foreign one thus it looses conectivity
> Here is my network diagram:
> 1. When mobile node is at home 
> +----+                       +----+                     +-----+
> +---+ 
>  |MN|eth0----------eth0 |HA | eth1----------eth1|RTR|
> eth0---------eth0|CN|
> +----+                       +----+                      +----+
> +---+
> 
> 2. When it moves to foreign network (it is done by unpluging the cable
> going towards home agent and plugging it into interface of RTR node) 
> Then network looks:
> +----+                       +-----+                     +---+
> | HA |eth1----------eth1|RTR|eth0 --------- eth0|CN|
> +----+                       +----+                      +---+
>                                  eth2 
>                                    |
>                                  eth0
>                                +----+
>                                 |MN|
>                                +----+
> 
> I've turned off IPsec for tests 
> Here is my configuration
> 1. Mobile node (homeguy livecd):
> 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
> 
> mip6d.conf:
> #Mobile Node configuration file
> 
> NodeConfig MN;
> DebugLevel 10; 
> #DoRouteOptimizationMN enabled;
> #DoRouteOptimizationCN enabled;
> 
> DoRouteOptimizationMN disabled;
> DoRouteOptimizationCN disabled;
> MnDiscardHaParamProb enabled;
> 
>          Interface "eth0"; 
> 
>          MnHomeLink "eth0" {
>                  HomeAgentAddress fec0:106:2700::2;
>                  HomeAddress fec0:106:2700::4/64;
>          }
> 
> 2. Home Agent (Ubuntu Gutsy with packages from homeguy repo) 
> /sbin/ifconfig eth0 inet6 add fec0:106:2700::2/64
> /sbin/ifconfig eth1 inet6 add fec0:106:2300::2/64
> ip route add ::/0 via fec0:106:2300::1
> 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
> 
> radvd.conf:
> interface eth0
>      {
>         AdvSendAdvert on;
>         MaxRtrAdvInterval 3; 
>         MinRtrAdvInterval 1;
>         AdvIntervalOpt off;
>         AdvHomeAgentFlag on;
>         HomeAgentLifetime 10000;
>         HomeAgentPreference 20;
>         AdvHomeAgentInfo on;
>         prefix fec0:106:2700::2/64 
>         {
>           AdvRouterAddr on;
>           AdvOnLink on;
>           AdvAutonomous on;
>           AdvPreferredLifetime 10000;
>           AdvValidLifetime 12000;
>         };
>       };
> 
> 
> mip6d.conf :
> 
> NodeConfig HA;
> 
> ## If set to > 0, will not detach from tty
> DebugLevel 10;
> 
> ## Support route optimization with MNs
> #DoRouteOptimizationCN enabled
> DoRouteOptimizationCN disabled;
>  Interface "eth0"; 
> 
> 
> ##
> ## IPsec configuration
> ##
> #UseMnHaIPsec enabled;
> UseMnHaIPsec disabled;
> #
> #IPsecPolicySet {
> #HomeAgentAddress fec0:106:2700::2;
> #HomeAddress fec0:106:2700::2/64;
> #
> #IPsecPolicy HomeRegBinding UseESP; 
> #IPsecPolicy MobPfxDisc UseESP;
> #IPsecPolicy TunnelMh UseESP;
> #}
> 
> 3.RtR (Debian testing with packages from homeguy repo)
> 
> ifconfig eth1 inet6 add fec0:106:2300::1/64 
> ifconfig eth0 inet6 add fec0:106:1100::1/64 
> ifconfig eth2 inet6 add fec0:106:1::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
> 
> radvd.conf
> 
> interface eth2
> {
>           AdvSendAdvert on;
>           AdvIntervalOpt on;
> 
>           MinRtrAdvInterval 3;
>           MaxRtrAdvInterval 10; 
>           AdvHomeAgentFlag off;
> 
>           prefix fec0:106:1::/64
>           {
>                   AdvOnLink on;
>                   AdvAutonomous on;
>                   AdvRouterAddr on;
>           };
> };
> 
> 
> 
> 
> 
> 
> 
> 
> Here is the output of mip6d running on mobile node:
> mip6d[9997]: MIPL Mobile IPv6 for Linux v2.0.2-umip-0.4 started
> (Mobile Node)
> Sun Nov 11 22:48:17 main: MIPL Mobile IPv6 for Linux started in debug
> mode, not detaching from terminal 
> Sun Nov 11 22:48:17 conf_show: config_file = mip6d.conf
> Sun Nov 11 22:48:17 conf_show: vt_hostname = localhost
> Sun Nov 11 22:48:17 conf_show: vt_service = 7777
> Sun Nov 11 22:48:17 conf_show: mip6_entity = 1
> Sun Nov 11 22:48:17 conf_show: debug_level = 10
> Sun Nov 11 22:48:17 conf_show: debug_log_file = stderr
> Sun Nov 11 22:48:17 conf_show: PolicyModulePath = [internal]
> Sun Nov 11 22:48:17 conf_show: DefaultBindingAclPolicy = 0 
> Sun Nov 11 22:48:17 conf_show: NonVolatileBindingCache = disabled
> Sun Nov 11 22:48:17 conf_show: KeyMngMobCapability = disabled
> Sun Nov 11 22:48:17 conf_show: UseMnHaIPsec = enabled
> Sun Nov 11 22:48:17 conf_show: MnMaxHaBindingLife = 262140 
> Sun Nov 11 22:48:17 conf_show: MnMaxCnBindingLife = 420
> Sun Nov 11 22:48:17 conf_show: MnRouterProbes = 0
> Sun Nov 11 22:48:17 conf_show: MnRouterProbeTimeout = 0.000000
> Sun Nov 11 22:48:17 conf_show: InitialBindackTimeoutFirstReg =
> 1.500000
> Sun Nov 11 22:48:17 conf_show: InitialBindackTimeoutReReg = 1.000000
> Sun Nov 11 22:48:17 conf_show: UseCnBuAck = disabled
> Sun Nov 11 22:48:17 conf_show: DoRouteOptimizationMN = disabled
> Sun Nov 11 22:48:17 conf_show: MnUseAllInterfaces = disabled 
> Sun Nov 11 22:48:17 conf_show: MnDiscardHaParamProb = enabled
> Sun Nov 11 22:48:17 conf_show: SendMobPfxSols = enabled
> Sun Nov 11 22:48:17 conf_show: OptimisticHandoff = disabled
> Sun Nov 11 22:48:17 conf_show: SendMobPfxAdvs = enabled 
> Sun Nov 11 22:48:17 conf_show: SendUnsolMobPfxAdvs = enabled
> Sun Nov 11 22:48:17 conf_show: MaxMobPfxAdvInterval = 86400
> Sun Nov 11 22:48:17 conf_show: MinMobPfxAdvInterval = 600
> Sun Nov 11 22:48:17 conf_show: HaMaxBindingLife = 262140 
> Sun Nov 11 22:48:17 conf_show: DoRouteOptimizationCN = disabled
> Sun Nov 11 22:48:17 xfrm_cn_init: Adding policies and states for CN
> Sun Nov 11 22:48:17 xfrm_mn_init: Adding policies and states for MN
> Sun Nov 11 22:48:17 conf_home_addr_info: HoA address
> fec0:106:2700:0:0:0:0:4 
> Sun Nov 11 22:48:17 conf_home_addr_info: HA address
> fec0:106:2700:0:0:0:0:2
> Sun Nov 11 22:48:17 __tunnel_add: created tunnel ip6tnl1 (8) from
> fec0:106:2700:0:0:0:0:4 to fec0:106:2700:0:0:0:0:2 user count 1
> Sun Nov 11 22:48:17 conf_home_addr_info: Home address
> fec0:106:2700:0:0:0:0:4 
> Sun Nov 11 22:48:17 flag_hoa: set HoA fec0:106:2700:0:0:0:0:4/128 iif
> 8 flags 12 preferred_time 4294967295 valid_time 4294967295
> Sun Nov 11 22:48:17 conf_home_addr_info: Added new home_addr_info
> successfully
> Sun Nov 11 22:48:17 __md_discover_router: discover link on iface eth0
> (3) 
> Sun Nov 11 22:48:19 md_change_default_router: add new router
> fe80:0:0:0:240:5ff:fe0e:3a33 on interface eth0 (3)
> Sun Nov 11 22:48:19 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3) 
> Sun Nov 11 22:48:21 mn_addr_do_dad: DAD succeeded!
> Sun Nov 11 22:48:21 mn_addr_do_dad: address = fec0:106:2700:0:0:0:0:4
> Sun Nov 11 22:48:21 mn_move: 1731
> Sun Nov 11 22:48:21 mn_move: in home net
> Sun Nov 11 22:48:21 mv_hoa: move HoA fec0:106:2700:0:0:0:0:4/64 from
> iface 8 to 3 
> Sun Nov 11 22:48:21 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:23 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:25 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3) 
> Sun Nov 11 22:48:27 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:29 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:32 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3) 
> Sun Nov 11 22:48:33 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:35 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:37 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3) 
> Sun Nov 11 22:48:39 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:41 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:42 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3) 
> Sun Nov 11 22:48:45 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:46 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:48 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3) 
> Sun Nov 11 22:48:49 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:52 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:54 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3) 
> Sun Nov 11 22:48:55 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:58 md_update_router_stats: add coa
> fec0:106:2700:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:48:59 md_expire_router: expiring router
> fe80:0:0:0:240:5ff:fe0e:3a33 on iface eth0 (3) 
> Sun Nov 11 22:49:02 __md_discover_router: discover link on iface eth0
> (3)
> Sun Nov 11 22:49:06 __md_discover_router: discover link on iface eth0
> (3)
> Sun Nov 11 22:49:06 md_change_default_router: add new router
> fe80:0:0:0:2c0:dfff:fe08:4703 on interface eth0 (3) 
> Sun Nov 11 22:49:06 md_update_router_stats: add coa
> fec0:106:1:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:49:13 md_update_router_stats: add coa
> fec0:106:1:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:49:19 md_update_router_stats: add coa
> fec0:106:1:0:216:36ff:fea9:c5e0 on interface (3) 
> Sun Nov 11 22:49:29 md_update_router_stats: add coa
> fec0:106:1:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:49:33 md_update_router_stats: add coa
> fec0:106:1:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:49:38 md_update_router_stats: add coa
> fec0:106:1:0:216:36ff:fea9:c5e0 on interface (3) 
> Sun Nov 11 22:49:41 md_update_router_stats: add coa
> fec0:106:1:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:49:45 md_update_router_stats: add coa
> fec0:106:1:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:49:55 md_update_router_stats: add coa
> fec0:106:1:0:216:36ff:fea9:c5e0 on interface (3) 
> Sun Nov 11 22:50:00 md_update_router_stats: add coa
> fec0:106:1:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:50:05 md_update_router_stats: add coa
> fec0:106:1:0:216:36ff:fea9:c5e0 on interface (3)
> Sun Nov 11 22:50:14 md_update_router_stats: add coa
> fec0:106:1:0:216:36ff:fea9:c5e0 on interface (3) 
> 
> It gets CoA at the proper interface but in my opinion it does not
> detect the movement and no binding update is sent. Problem probably is
> somwhere on MN but I'm completely new  at MIP6 please help to figure
> it out. 
> Normal IPv6 connectivity is OK.
> 
> Best regards
> Michal
> 
> 
> 
> 
> 
> 
-- 
Luis Campo Giralte     e-mail: [email protected]
TELEFÓNICA INVESTIGACIÓN Y DESARROLLO                                  
Protocolos y Nucleos de Red     
C/ Emilio Vargas 6 - 28043 Madrid - Spain