(usagi-users 03803) Re: Tunneling problems

Shinta Sugimoto <[email protected]> Sun, 18 Feb 2007 18:05:45 +0900
Newsgroups gmane.linux.ipv6.usagi.users
Message-ID <[email protected]>
Hello Jukka,

Thanks for your report. Please find my comments inline.

On Thu, 15 Feb 2007 12:25:29 +0200
"Jukka Rissanen" <[email protected]> wrote:

> Hi,
> 
> I have a small test system with HA, AR and MN. The routing between
> nodes without mip software works ok, also if MN is in home I can ping
> all the nodes. In foreign network, the tunnel between MN and HA does
> not work. The tunnel in MN is created ok (at least no error is shown
> in logs in MN and HA) but when something is sent to the tunnel, syslog
> in MN says "ip6tnl1 xmit: Local address not yet configured!"

Ok, this error message comes from the kernel when there is something
wrong with transmitting data over IPv6-in-IPv6 tunnel.  More comments
below.

> In MN the tunnel looks like this (2001:db8:c0a8:c8::1 is the HA
> address, 2001:db8:a01:0:204:23ff:fe97:261a is CoA and
> 2001:db8:c0a8:c8:204:23ff:fe97:261a is HoA)
> 
> $ ip -6 link show ip6tnl1
> 10: ip6tnl1@eth0: <POINTOPOINT,NOARP,UP,10000> mtu 1460 qdisc noqueue
>     link/tunnel6 20:01:0d:b8:0a:01:00:00:02:04:23:ff:fe:97:26:1a peer
> 20:01:0d:b8:c0:a8:00:c8:00:00:00:00:00:00:00:01
> 
> $ ifconfig ip6tnl1
> ip6tnl1   Link encap:UNSPEC  HWaddr
> 20-01-0D-B8-0A-01-00-00-00-00-00-00-00-00-00-00
>           inet6 addr: 2001:db8:c0a8:c8:204:23ff:fe97:261a/128 Scope:Global
>           inet6 addr: fe80::204:23ff:fe97:261a/64 Scope:Link
>           UP POINTOPOINT RUNNING NOARP  MTU:1460  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:5 errors:2 dropped:2 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:720 (720.0 b)

Ok, this looks sane.

> 
> 
> In HA the system looks like this:
> 
> 6: ip6tnl1@NONE: <POINTOPOINT,NOARP,UP,10000> mtu 1460 qdisc noqueue
>     link/tunnel6 20:01:0d:b8:c0:a8:00:c8:00:00:00:00:00:00:00:01 peer
> 20:01:0d:b8:0a:01:00:00:02:04:23:ff:fe:97:26:1a
> 
> ip6tnl1   Link encap:UNSPEC  HWaddr
> 20-01-0D-B8-C0-A8-00-C8-00-00-00-00-00-00-00-00
>           inet6 addr: fe80::20a:5eff:fe65:9f47/64 Scope:Link
>           UP POINTOPOINT RUNNING NOARP  MTU:1460  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

This one too.

> Mipd daemon log from HA:
> --------------------------------------
> Thu Feb 15 11:52:07 mh_bu_parse: Binding Update Received
> Thu Feb 15 11:52:07 mh_send_ba: status 133
> Thu Feb 15 11:52:07 mh_send: sending MH type 6
> from 2001:db8:c0a8:c8:0:0:0:1
> to 2001:db8:c0a8:c8:204:23ff:fe97:261a
> Thu Feb 15 12:04:49 mh_bu_parse: Binding Update Received
> Thu Feb 15 12:04:50 ndisc_do_dad: Dad success
> Thu Feb 15 12:04:50 __tunnel_add: created tunnel ip6tnl1 (6) from
> 2001:db8:c0a8:c8:0:0:0:1 to 2001:db8:a01:0:204:23ff:fe97:261a user
> count 1
> Thu Feb 15 12:04:50 mh_send_ba: status 0
> Thu Feb 15 12:04:50 mh_send: sending MH type 6
> from 2001:db8:c0a8:c8:0:0:0:1
> to 2001:db8:c0a8:c8:204:23ff:fe97:261a
> Thu Feb 15 12:04:50 mh_send: remote CoA 2001:db8:a01:0:204:23ff:fe97:261a
> Thu Feb 15 12:04:50 mh_bu_parse: Binding Update Received
> Thu Feb 15 12:04:50 tunnel_mod: modifying tunnel 6 end points with
> from 2001:db8:c0a8:c8:0:0:0:1 to 2001:db8:a01:0:204:23ff:fe97:261a
> Thu Feb 15 12:04:50 mh_send_ba: status 0
> Thu Feb 15 12:04:50 mh_send: sending MH type 6
> from 2001:db8:c0a8:c8:0:0:0:1
> to 2001:db8:c0a8:c8:204:23ff:fe97:261a
> Thu Feb 15 12:04:50 mh_send: remote CoA 2001:db8:a01:0:204:23ff:fe97:261a
> Thu Feb 15 12:04:53 mh_bu_parse: Binding Update Received
> Thu Feb 15 12:04:53 tunnel_mod: modifying tunnel 6 end points with
> from 2001:db8:c0a8:c8:0:0:0:1 to 2001:db8:a01:0:204:23ff:fe97:261a
> Thu Feb 15 12:04:53 mh_send_ba: status 0
> Thu Feb 15 12:04:53 mh_send: sending MH type 6
> from 2001:db8:c0a8:c8:0:0:0:1
> to 2001:db8:c0a8:c8:204:23ff:fe97:261a
> Thu Feb 15 12:04:53 mh_send: remote CoA 2001:db8:a01:0:204:23ff:fe97:261a

The log message above seems fine.

> 
> 
> What looks suspicious is the tunnel end point setting is missing in HA
> ifconfig output.

This does not sound like problem. On HA, the output of
'%ifconfig <tunnel I/F>' should look like what you described
above.  The only difference with the output of ifconfig on MN
is that the MN's home address is assigned to the tunnel
interface and you should be able to see it in the output.
So, I think this (output of ifconfig) is not indicating any
error, at least.

> Network looks like this
> 
> 
>              +--------+ 2001:db8:c0a8:64::1
>              |   HA   |---------------------+
>              +--------+                     |
>                  | 2001:db8:c0a8:c8::1      |
>                  |                          |
>                  |                          |
>                  |                          |
>                  |                          |
>               +-----+                       |
>               | AP1 |                       |
>               +-----+                       |
>                                             | 2001:db8:c0a8:64::a
>                                          +------+		
> 			                 |  AR  |		
> 			                 +------+		
> 			                    | 2001:db8:a01::1
> 			                    |		
> 			                    |		
> 			                    |		
> 			                    |		
> 			                 +-----+		
> 			                 | AP2 |		
> 			                 +-----+
> 
> 
> 
> 
> Any idea what is wrong with the tunneling?

From your report, it seems to me that there is something wrong
with handling IPv6-in-IPv6 tunnel on mobile node side.  Before you
start the userland daemon on the mobile node, make sure that
all the IPv6 tunnels are deleted except for ip6tnl0 which exists
all the time.

If you still have problem, could you also provide your config
file of mip6d as well as kernel configuration file?


Regards,
Shinta

> 
> The  mipd used in MN and HA is the latest version (pulled 14 Feb) from
> git://git.linux-ipv6.org/gitroot/nakam/mipv6-daemon.git and the kernel
> is 2.6.20-rc7 from
> git://git.linux-ipv6.org/gitroot/nakam/linux-2.6-mip6.git
> 
> 
> Regards, Jukka