[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 04031) ipv6 ppp and auto configuration with mip6d



Hi,

 

 

I’m currently setting up a MIPv6 testbed. It’s working well with wired or wifi connections (like eth0) but I want to use a ppp ipv6 interface too.

On the other side of the ppp connection, I have a server with radvd. Without mobility, it’s working well but when I start the mip deamon, it tries to redo the auto-configuration and it doesn’t work properly (see below)   and of course the mobile tunnel isn’t set up. It’s a full ipv6 ppp tunnel.

 

I tried to set up an ip6tnl interface with a router instead but the mip daemon doesn’t recognise the interface. I’ve also try to set up a vpn tunnel (with a tap interface) but I didn’t manage to mount my tunnel with openvpn. It seems that it doesn’t support well ipv6 in ipv6 tunnels.

 

Would you have any idea how I could make it work, whether by fixing the radvd over ppp problem or by finding a way to set up a 6o6 tunnel that is recognise by mip6d?

The ideal solution for me would be to force mip6d to use a static ipv6 configuration (ip + route) without trying to auto-conf via radvd. The daemon tries to auto-conf even with autoconf and ra_accept to “0”.

 

 

Thanks,

Johan

 

 

 

Here is what’s happening when I start mip6d with my ppp interface (I changed the ipv6 addresses on purpose) :

 

 

** Before mip6d:

ppp1      Lien encap:Protocole Point-a -Point  
          adr inet6: 2001:a:a:a:811d:2a82:453a:a08f/64 Scope:Global
          adr inet6: fe80::811d:2a82:453a:a08f/10 Scope:Lien
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          Packets recus:9 erreurs:0 :0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:3 
          Octets recus:518 (518.0 b) Octets transmis:218 (218.0 b)

 

 

 

**After mip6d:

ppp1      Lien encap:Protocole Point-a -Point  
          adr inet6: ::/64 Scope:Global
          adr inet6: 2001:a:a:a:811d:2a82:453a:a08f/64 Scope:Global
          adr inet6: fe80::811d:2a82:453a:a08f/10 Scope:Lien
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          Packets recus:51 erreurs:0 :0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:3 
          Octets recus:4530 (4.4 KB) Octets transmis:314 (314.0 b)
 
The new route added:
::/64 dev ppp1  metric 256  expires 21331005sec mtu 1500 advmss 1440 hoplimit 4294967295
 
 
 
**My radvd config file:
interface ppp1
{
   AdvSendAdvert on;
   MaxRtrAdvInterval 3;
   MinRtrAdvInterval 1;
   AdvIntervalOpt on;
   prefix 2001:a:a:a::1/64
   {
        AdvRouterAddr on;
        AdvOnLink on;
        AdvAutonomous on;
        AdvPreferredLifetime 60;
        AdvValidLifetime 120;
   };
};
 
 
 
 
**The result of mip6d in debug mode:
 
mip6d[6545]: MIPL Mobile IPv6 for Linux v2.0.2-umip-0.4 started (Mobile Node)
Thu Mar 13 11:19:27 main: MIPL Mobile IPv6 for Linux started in debug mode, not detaching from terminal
Thu Mar 13 11:19:27 conf_show: config_file = /usr/local/etc/mip6d.conf
Thu Mar 13 11:19:27 conf_show: vt_hostname = localhost
Thu Mar 13 11:19:27 conf_show: vt_service = 7777
Thu Mar 13 11:19:27 conf_show: mip6_entity = 1
Thu Mar 13 11:19:27 conf_show: debug_level = 10
Thu Mar 13 11:19:27 conf_show: debug_log_file = stderr
Thu Mar 13 11:19:27 conf_show: PolicyModulePath = [internal]
Thu Mar 13 11:19:27 conf_show: DefaultBindingAclPolicy = 0
Thu Mar 13 11:19:27 conf_show: NonVolatileBindingCache = disabled
Thu Mar 13 11:19:27 conf_show: KeyMngMobCapability = disabled
Thu Mar 13 11:19:27 conf_show: UseMnHaIPsec = disabled
Thu Mar 13 11:19:27 conf_show: MnMaxHaBindingLife = 60
Thu Mar 13 11:19:27 conf_show: MnMaxCnBindingLife = 420
Thu Mar 13 11:19:27 conf_show: MnRouterProbes = 1
Thu Mar 13 11:19:27 conf_show: MnRouterProbeTimeout = 0.000000
Thu Mar 13 11:19:27 conf_show: InitialBindackTimeoutFirstReg = 1.500000
Thu Mar 13 11:19:27 conf_show: InitialBindackTimeoutReReg = 1.000000
Thu Mar 13 11:19:27 conf_show: UseCnBuAck = disabled
Thu Mar 13 11:19:27 conf_show: DoRouteOptimizationMN = disabled
Thu Mar 13 11:19:27 conf_show: MnUseAllInterfaces = disabled
Thu Mar 13 11:19:27 conf_show: MnDiscardHaParamProb = disabled
Thu Mar 13 11:19:27 conf_show: SendMobPfxSols = disabled
Thu Mar 13 11:19:27 conf_show: OptimisticHandoff = disabled
Thu Mar 13 11:19:27 conf_show: SendMobPfxAdvs = enabled
Thu Mar 13 11:19:27 conf_show: SendUnsolMobPfxAdvs = enabled
Thu Mar 13 11:19:27 conf_show: MaxMobPfxAdvInterval = 86400
Thu Mar 13 11:19:27 conf_show: MinMobPfxAdvInterval = 600
Thu Mar 13 11:19:27 conf_show: HaMaxBindingLife = 262140
Thu Mar 13 11:19:27 conf_show: DoRouteOptimizationCN = disabled
Thu Mar 13 11:19:27 xfrm_cn_init: Adding policies and states for CN
Thu Mar 13 11:19:27 xfrm_mn_init: Adding policies and states for MN
Thu Mar 13 11:19:27 conf_home_addr_info: HoA address 2001:a:a:b:0:0:0:10
Thu Mar 13 11:19:27 conf_home_addr_info: HA address 2001:a:a:b:0:0:0:1
Thu Mar 13 11:19:27 __tunnel_add: created tunnel ip6tnl1 (8) from 2001:a:a:b:0:0:0:10 to 2001:a:a:b:0:0:0:1 user count 1
Thu Mar 13 11:19:27 conf_home_addr_info: Home address 2001:a:a:b:0:0:0:10
Thu Mar 13 11:19:27 flag_hoa: set HoA 2001:a:a:b:0:0:0:10/128 iif 8 flags 12 preferred_time 4294967295 valid_time 4294967295
Thu Mar 13 11:19:27 conf_home_addr_info: Added new home_addr_info successfully
mip6d[6545]: Interface 2 (tunl0):type 768 unsupported
mip6d[6545]: Interface 3 (sit0):type 776 unsupported
Thu Mar 13 11:19:27 __md_discover_router: discover link on iface ppp1 (7)
Thu Mar 13 11:19:29 md_change_default_router: add new router fe80:0:0:0:1cd8:dd23:1ebd:8b11 on interface ppp1 (7)
Thu Mar 13 11:19:29 md_update_router_stats: add coa 2001:a:a:a:0:0:0:0 on interface (7)
Thu Mar 13 11:19:32 md_update_router_stats: add coa 2001:a:a:a:0:0:0:0 on interface (7)
Thu Mar 13 11:19:32 mn_move: 1578
Thu Mar 13 11:19:32 mn_move: in foreign net
Thu Mar 13 11:19:32 mn_block_rule_add: blackhole is already set.
Thu Mar 13 11:19:32 mn_send_home_bu: 725
Thu Mar 13 11:19:32 mn_get_home_lifetime: CoA lifetime 117 s, HoA lifetime 4294967295 s, BU lifetime 60 s
Thu Mar 13 11:19:32 process_first_home_bu: New bule for HA
Thu Mar 13 11:19:32 bul_add: Adding bule
== BUL_ENTRY ==
Home address    2001:a:a:b:0:0:0:10
Care-of address 2001:a:a:a:0:0:0:0
CN address      2001:a:a:b:0:0:0:1
 lifetime = 60,  delay = 1500
 flags: IP6_MH_BU_HOME IP6_MH_BU_ACK 
Thu Mar 13 11:19:32 mn_send_home_bu: New bule for HA
Thu Mar 13 11:19:32 mh_send: sending MH type 5
from 2001:a:a:b:0:0:0:10
to 2001:a:a:b:0:0:0:1
Thu Mar 13 11:19:32 mh_send: local CoA 2001:a:a:a:0:0:0:0
Thu Mar 13 11:19:32 bul_update_timer: Updating timer
== BUL_ENTRY ==
Home address    2001:a:a:a:0:0:0:10
Care-of address 2001:a:a:b:0:0:0:0
CN address      2001:a:a:a:0:0:0:1
 lifetime = 60,  delay = 1500
 flags: IP6_MH_BU_HOME IP6_MH_BU_ACK 
Thu Mar 13 11:19:32 tunnel_mod: modifying tunnel 8 end points with from 2001:a:a:a:0:0:0:0 to 2001:a:a:b:0:0:0:1
Thu Mar 13 11:19:32 __tunnel_mod: modified tunnel iface ip6tnl1 (8)from 2001:a:a:a:0:0:0:0 to 2001:a:a:b:0:0:0:1
Thu Mar 13 11:19:33 bu_resend: Bul resend [0x8080780] type 0
Thu Mar 13 11:19:33 mn_get_home_lifetime: CoA lifetime 118 s, HoA lifetime 4294967295 s, BU lifetime 60 s
Thu Mar 13 11:19:33 mh_send: sending MH type 5
from 2001:a:a:b:0:0:0:10
to 2001:a:a:b:0:0:0:1
Thu Mar 13 11:19:33 mh_send: local CoA 2001:a:a:a:0:0:0:0
Thu Mar 13 11:19:33 mh_send: sendmsg: Operation not permitted
Thu Mar 13 11:19:33 mn_send_bu_msg: mh_send failed  ret: -1
Thu Mar 13 11:19:33 bul_update_timer: Updating timer
== BUL_ENTRY ==
Home address    2001:a:a:b:0:0:0:10
Care-of address 2001:a:a:a:0:0:0:0
CN address      2001:a:a:b:0:0:0:1
 lifetime = 60,  delay = 3000
 flags: IP6_MH_BU_HOME IP6_MH_BU_ACK 
mip6d[6545]: terminated (SIGINT)
Thu Mar 13 11:19:34 terminate: got SIGINT, exiting
Thu Mar 13 11:19:34 flag_hoa: set HoA 2001:a:a:b:0:0:0:10/128 iif 8 flags 80 preferred_time 4294967295 valid_time 4294967295
Thu Mar 13 11:19:34 mh_send: sending MH type 5
from 2001:a:a:b:0:0:0:10
to 2001:a:a:b:0:0:0:1
Thu Mar 13 11:19:34 mh_send: local CoA 2001:a:a:a:0:0:0:0
Thu Mar 13 11:19:34 mh_send: sendmsg: Operation not permitted
Thu Mar 13 11:19:34 mn_send_bu_msg: mh_send failed  ret: -1
Thu Mar 13 11:19:34 Failed to del policy:
Thu Mar 13 11:19:34 sel.daddr 2001:a:a:b:0:0:0:10
sel.saddr 2001:a:a:b:0:0:0:1
sel.dport 0
sel.dport_mask 0
sel.sport 0
sel.sport_mask 0
sel.prefixlen_d 128
sel.prefixlen_s 128
sel.proto 0
sel.ifindex 0
Thu Mar 13 11:19:34 dir 0
type 1
Thu Mar 13 11:19:34 mn_pol_ext_cleanup: 
Thu Mar 13 11:19:34 bul_delete: Deleting bule
== BUL_ENTRY ==
Home address    2001:a:a:b:0:0:0:10
Care-of address 2001:a:a:b:0:0:0:10
CN address      2001:a:a:b:0:0:0:1
 lifetime = 0,  delay = 3000
 flags: IP6_MH_BU_HOME IP6_MH_BU_ACK 
Thu Mar 13 11:19:34 __tunnel_del: tunnel ip6tnl1 (8) from 2001:a:a:a:0:0:0:0 to 2001:a:a:b:0:0:0:1 user count decreased to 0
Thu Mar 13 11:19:34 __tunnel_del: tunnel deleted
Thu Mar 13 11:19:34 md_expire_router: expiring router fe80:0:0:0:1cd8:dd23:1ebd:8b11 on iface ppp1 (7)
Thu Mar 13 11:19:34 xfrm_mn_cleanup: Deleting policies and states for MN
Thu Mar 13 11:19:34 xfrm_cn_cleanup: Deleting policies and states for CN
mip6d[6545]: MIPL Mobile IPv6 for Linux v2.0.2-umip-0.4 stopped (Mobile Node)