From: Hannes Frederic Sowa <hannes@stressinduktion.org>
To: Tushar Shinde <mtk.tushar@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: IPv6 Policy based routing not working.
Date: Wed, 27 Aug 2014 07:55:57 +0200 [thread overview]
Message-ID: <1409118957.11976.9.camel@localhost> (raw)
In-Reply-To: <CABQpAL4J7D704iw8Qj9SNDxW8E1P7Mw+KONUapZY6_LdoHkEYw@mail.gmail.com>
On Mi, 2014-08-27 at 10:24 +0530, Tushar Shinde wrote:
> Hi Hannes,
>
> Thank you for reply.
>
> I tested it will 2 kernels 2.6.32-431.11.2.el6.x86_64, and ubuntu
> 14.04 kernel 3.13.
>
> ping6 -I <IPv6 src ip> <dest> is working. I also verified ssh with -b working.
>
> So my question is, is it necessary to give bind address to make source
> based routing work? why don't it select ip address of given bind
> interface? Because of this SO_BINDTODEVICE may not work as expected.
Hmm, not sure, but last time I looked ping6 did not do SO_BINDTODEVICE
at all and I doubt it changed. It merely sets outgoing interface index
in cmsg PKTINFO data.
Semantically those are not the same. Interface index on global
destination addresses is only advisory, no strict routing lookup will be
done.
Bye,
Hannes
next prev parent reply other threads:[~2014-08-27 5:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-26 16:02 IPv6 Policy based routing not working Tushar Shinde
2014-08-26 22:01 ` Hannes Frederic Sowa
2014-08-27 4:54 ` Tushar Shinde
2014-08-27 5:55 ` Hannes Frederic Sowa [this message]
2014-08-27 6:02 ` Tushar Shinde
2014-08-27 6:05 ` Hannes Frederic Sowa
2014-08-27 13:41 ` Tushar Shinde
2014-08-27 14:19 ` Hannes Frederic Sowa
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=1409118957.11976.9.camel@localhost \
--to=hannes@stressinduktion.org \
--cc=mtk.tushar@gmail.com \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).