|
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 “ 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:0TX 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:0TX 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 terminalThu Mar 13 11:19:27 conf_show: config_file = /usr/local/etc/mip6d.confThu Mar 13 11:19:27 conf_show: vt_hostname = localhostThu Mar 13 11:19:27 conf_show: vt_service = 7777Thu Mar 13 11:19:27 conf_show: mip6_entity = 1Thu Mar 13 11:19:27 conf_show: debug_level = 10Thu Mar 13 11:19:27 conf_show: debug_log_file = stderrThu Mar 13 11:19:27 conf_show: PolicyModulePath = [internal]Thu Mar 13 11:19:27 conf_show: DefaultBindingAclPolicy = 0Thu Mar 13 11:19:27 conf_show: NonVolatileBindingCache = disabledThu Mar 13 11:19:27 conf_show: KeyMngMobCapability = disabledThu Mar 13 11:19:27 conf_show: UseMnHaIPsec = disabledThu Mar 13 11:19:27 conf_show: MnMaxHaBindingLife = 60Thu Mar 13 11:19:27 conf_show: MnMaxCnBindingLife = 420Thu Mar 13 11:19:27 conf_show: MnRouterProbes = 1Thu Mar 13 11:19:27 conf_show: MnRouterProbeTimeout = 0.000000Thu Mar 13 11:19:27 conf_show: InitialBindackTimeoutFirstReg = 1.500000Thu Mar 13 11:19:27 conf_show: InitialBindackTimeoutReReg = 1.000000Thu Mar 13 11:19:27 conf_show: UseCnBuAck = disabledThu Mar 13 11:19:27 conf_show: DoRouteOptimizationMN = disabledThu Mar 13 11:19:27 conf_show: MnUseAllInterfaces = disabledThu Mar 13 11:19:27 conf_show: MnDiscardHaParamProb = disabledThu Mar 13 11:19:27 conf_show: SendMobPfxSols = disabledThu Mar 13 11:19:27 conf_show: OptimisticHandoff = disabledThu Mar 13 11:19:27 conf_show: SendMobPfxAdvs = enabledThu Mar 13 11:19:27 conf_show: SendUnsolMobPfxAdvs = enabledThu Mar 13 11:19:27 conf_show: MaxMobPfxAdvInterval = 86400Thu Mar 13 11:19:27 conf_show: MinMobPfxAdvInterval = 600Thu Mar 13 11:19:27 conf_show: HaMaxBindingLife = 262140Thu Mar 13 11:19:27 conf_show: DoRouteOptimizationCN = disabledThu Mar 13 11:19:27 xfrm_cn_init: Adding policies and states for CNThu Mar 13 11:19:27 xfrm_mn_init: Adding policies and states for MNThu Mar 13 11:19:27 conf_home_addr_info: HoA address 2001:a:a:b:0:0:0:10Thu Mar 13 11:19:27 conf_home_addr_info: HA address 2001:a:a:b:0:0:0:1Thu 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 1Thu Mar 13 11:19:27 conf_home_addr_info: Home address 2001:a:a:b:0:0:0:10Thu 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 4294967295Thu Mar 13 11:19:27 conf_home_addr_info: Added new home_addr_info successfullymip6d[6545]: Interface 2 (tunl0):type 768 unsupportedmip6d[6545]: Interface 3 (sit0):type 776 unsupportedThu 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: 1578Thu Mar 13 11:19:32 mn_move: in foreign netThu Mar 13 11:19:32 mn_block_rule_add: blackhole is already set.Thu Mar 13 11:19:32 mn_send_home_bu: 725Thu Mar 13 11:19:32 mn_get_home_lifetime: CoA lifetime 117 s, HoA lifetime 4294967295 s, BU lifetime 60 sThu Mar 13 11:19:32 process_first_home_bu: New bule for HAThu Mar 13 11:19:32 bul_add: Adding bule== BUL_ENTRY ==Home address 2001:a:a:b:0:0:0:10Care-of address 2001:a:a:a:0:0:0:0CN 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 HAThu Mar 13 11:19:32 mh_send: sending MH type 5from 2001:a:a:b:0:0:0:10to 2001:a:a:b:0:0:0:1Thu Mar 13 11:19:32 mh_send: local CoA 2001:a:a:a:0:0:0:0Thu Mar 13 11:19:32 bul_update_timer: Updating timer== BUL_ENTRY ==Home address 2001:a:a:a:0:0:0:10Care-of address 2001:a:a:b:0:0:0:0CN 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:1Thu 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:1Thu Mar 13 11:19:33 bu_resend: Bul resend [0x8080780] type 0Thu Mar 13 11:19:33 mn_get_home_lifetime: CoA lifetime 118 s, HoA lifetime 4294967295 s, BU lifetime 60 sThu Mar 13 11:19:33 mh_send: sending MH type 5from 2001:a:a:b:0:0:0:10to 2001:a:a:b:0:0:0:1Thu Mar 13 11:19:33 mh_send: local CoA 2001:a:a:a:0:0:0:0Thu Mar 13 11:19:33 mh_send: sendmsg: Operation not permittedThu Mar 13 11:19:33 mn_send_bu_msg: mh_send failed ret: -1Thu Mar 13 11:19:33 bul_update_timer: Updating timer== BUL_ENTRY ==Home address 2001:a:a:b:0:0:0:10Care-of address 2001:a:a:a:0:0:0:0CN 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, exitingThu 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 4294967295Thu Mar 13 11:19:34 mh_send: sending MH type 5from 2001:a:a:b:0:0:0:10to 2001:a:a:b:0:0:0:1Thu Mar 13 11:19:34 mh_send: local CoA 2001:a:a:a:0:0:0:0Thu Mar 13 11:19:34 mh_send: sendmsg: Operation not permittedThu Mar 13 11:19:34 mn_send_bu_msg: mh_send failed ret: -1Thu Mar 13 11:19:34 Failed to Thu Mar 13 11:19:34 sel.daddr 2001:a:a:b:0:0:0:10sel.saddr 2001:a:a:b:0:0:0:1sel.dport 0sel.dport_mask 0sel.sport 0sel.sport_mask 0sel.prefixlen_d 128sel.prefixlen_s 128sel.proto 0sel.ifindex 0Thu Mar 13 11:19:34 dir 0type 1Thu 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:10Care-of address 2001:a:a:b:0:0:0:10CN 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 0Thu Mar 13 11:19:34 __tunnel_del: tunnel deletedThu 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 MNThu Mar 13 11:19:34 xfrm_cn_cleanup: Deleting policies and states for CNmip6d[6545]: MIPL Mobile IPv6 for Linux v2.0.2-umip-0.4 stopped (Mobile Node) |