[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1409090482.1152.8.camel@localhost>
Date: Wed, 27 Aug 2014 00:01:22 +0200
From: Hannes Frederic Sowa <hannes@...essinduktion.org>
To: Tushar Shinde <mtk.tushar@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: IPv6 Policy based routing not working.
Hi,
On Di, 2014-08-26 at 21:32 +0530, Tushar Shinde wrote:
> Hello NetDev,
>
> I am facing problem where if ipv6 route (outside to current subnet) is
> reachable only if route is present in main table. Policy based routes
> are not working.
>
> Following is my setup,
>
> eth0 inet6 2001:1::10/120 scope global
> eth1 inet6 2001:1::11/120 scope global
> 2001:1::1 is gateway
> 2.6.32-431.11.2.el6.x86_64 kernel (I tried on 3.x also)
>
> [root@...6node1 ~]# ip -6 route show tab 1
> 2001:1::/120 dev eth0 metric 1024 mtu 1500 advmss 1440 hoplimit 4294967295
> default via 2001:1::1 dev eth0 metric 1024 mtu 1500 advmss 1440
> hoplimit 4294967295
> [root@...6node1 ~]#
> [root@...6node1 ~]# ip -6 route show tab 2
> 2001:1::/120 dev eth1 metric 1024 mtu 1500 advmss 1440 hoplimit 4294967295
> default via 2001:1::1 dev eth1 metric 1024 mtu 1500 advmss 1440
> hoplimit 4294967295
> [root@...6node1 ~]#
> [root@...6node1 ~]# ip -6 rule show
> 0: from all lookup local
> 16383: from 2001:1::10 lookup 1
> 16383: from 2001:1::11 lookup 2
> 32766: from all lookup main
> [root@...6node1 ~]#
>
> If I add default vai eth0 only ip of eth0 is reachable from outside or
> eth1 dont work. In above setup default route is not present.
>
> But default entry in "table" is never getting used to resolve route
>
> [root@...6node1 ~]# ping6 -I eth0 2001:2::20
> connect: Network is unreachable
> [root@...6node1 ~]#
> [root@...6node1 ~]# ping6 -I eth1 2001:2::20
> connect: Network is unreachable
> [root@...6node1 ~]#
ping6 selects the ipv6 address based on netlink route lookup given the
specified interface but without setting the source address. That said,
it is probable that the rule lookup happens with a completely different
ipv6 address. Please verify this. ping6 -I also accepts a source ipv6
address, can you try this?
Otherwise please specify with which 3.x kernel you tested this.
Thanks,
Hannes
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists