Netdev List
 help / color / mirror / Atom feed
From: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
To: Sowmini Varadhan <sowmini05@gmail.com>,
	Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: hideaki.yoshifuji@miraclelinux.com,
	"Andreas Hübner" <andreas@k4n.de>,
	netdev <netdev@vger.kernel.org>,
	"d. caratti" <davide.caratti@gmail.com>,
	"Sowmini Varadhan" <sowmini.varadhan@oracle.com>
Subject: Re: icmpv6: issue with routing table entries from link local addresses
Date: Tue, 13 Sep 2016 12:01:18 +0900	[thread overview]
Message-ID: <4986ff01-5157-390c-7d58-764e17b67322@miraclelinux.com> (raw)
In-Reply-To: <CACP96tTFX7nyGz6uARYxemvE7-WDxvX7Wj+Jf95PC0Advy7ynw@mail.gmail.com>

Sowmini Varadhan wrote:
> On Mon, Sep 12, 2016 at 1:26 PM, Hannes Frederic Sowa
> <hannes@stressinduktion.org> wrote:
>> Hello,
>>
>> On 12.09.2016 16:27, Andreas Hübner wrote:
> 
>>>
>>> I have the following setup:
>>>   - 2 directly connected hosts (A+B), both have only link local addresses
>>>     configured (interface on both hosts is eth0)
>            :
>>>       fe80::/64 dev eth1  proto kernel  metric 256
>>>       fe80::/64 dev eth0  proto kernel  metric 256
>            :
>>> The issue I currently have is, that the echo reply that host B should
>>> generate is never sent back to host A. If I change the order of the
>>> routing table entries on host B, everything works fine.
>>> (host A is connected on eth0)
>    :
>> This shouldn't be the case. We certainly carry over the ifindex of the
>> received packet into the routing lookup of the outgoing packet, thus the
>> appropriate rule, with outgoing ifindex should be selected.
> 
> Like Hannes,  I too would first check "is B sending out the echo-resp? on
> which interface?".
> 
> But a couple of unexpected things I noticed in linux: the link-local
> prefix should have a prefixlen of /10 according to
> http://www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xhtml
> but "ip -6 route show"  lists this as a /64..

Do not be confused; link-local address for ethernet is described by
IPv6 over FOO document (e.g., RFC2464 for Ethernet).  The address
(fe80::/64 for Ethernet, for example) is defined inside the link-local
scope unicast address space (/10).

-- 
Hideaki Yoshifuji <hideaki.yoshifuji@miraclelinux.com>
Technical Division, MIRACLE LINUX CORPORATION

  parent reply	other threads:[~2016-09-13  3:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-12 14:27 icmpv6: issue with routing table entries from link local addresses Andreas Hübner
2016-09-12 17:26 ` Hannes Frederic Sowa
2016-09-12 19:17   ` David Ahern
2016-09-13  9:22     ` Andreas Hübner
2016-09-13 11:59     ` Andreas Hübner
2016-09-13  2:03   ` Sowmini Varadhan
2016-09-13  2:42     ` Hannes Frederic Sowa
2016-09-13  3:05       ` Sowmini Varadhan
2016-09-13  3:01     ` YOSHIFUJI Hideaki [this message]
2016-09-13  6:35   ` Andreas Hübner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4986ff01-5157-390c-7d58-764e17b67322@miraclelinux.com \
    --to=hideaki.yoshifuji@miraclelinux.com \
    --cc=andreas@k4n.de \
    --cc=davide.caratti@gmail.com \
    --cc=hannes@stressinduktion.org \
    --cc=netdev@vger.kernel.org \
    --cc=sowmini.varadhan@oracle.com \
    --cc=sowmini05@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox