netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antony Antony <antony.antony@secunet.com>
To: David Ahern <dsahern@gmail.com>
Cc: <antony.antony@secunet.com>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>,
	David Ahern <dsahern@kernel.org>, <netdev@vger.kernel.org>,
	Christian Perle <christian.perle@secunet.com>
Subject: Re: [PATCH net-next] ipv6: Add sysctl for RA default route table number
Date: Tue, 29 Jun 2021 14:53:16 +0200	[thread overview]
Message-ID: <20210629125316.GA18078@moon.secunet.de> (raw)
In-Reply-To: <95b096f7-8ece-46be-cedb-5ee4fc011477@gmail.com>

Hi David,

On Fri, Jun 25, 2021 at 22:47:41 -0600, David Ahern wrote:
> On 6/25/21 1:04 AM, Antony Antony wrote:
> > From: Christian Perle <christian.perle@secunet.com>
> > 
> > Default routes learned from router advertisements(RA) are always placed
> > in main routing table. For policy based routing setups one may
> > want a different table for default routes. This commit adds a sysctl
> > to make table number for RA default routes configurable.
> > 
> > examples:
> > sysctl net.ipv6.route.defrtr_table
> > sysctl -w net.ipv6.route.defrtr_table=42
> > ip -6 route show table 42
> 
> How are the routing tables managed? If the netdevs are connected to a
> VRF this just works.

The main routing table has no default route. Our scripts add routing rules 
based on interfaces. These rules use the specific routing table where the RA 
(when using SLAAC) installs the default route. The rest just works.

I noticed an improvement the patch I sent.
I will sent a rebased v2 after the net-next tree is open.
I guess the net-next is closed now?

-               .proc_handler   =       proc_dointvec,
+               .proc_handler   =       proc_douintvec,

-antony

  reply	other threads:[~2021-06-29 12:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1619775297.git.antony.antony@secunet.com>
2021-06-25  7:04 ` [PATCH net-next] ipv6: Add sysctl for RA default route table number Antony Antony
2021-06-26  4:47   ` David Ahern
2021-06-29 12:53     ` Antony Antony [this message]
2021-06-29 14:05       ` Eyal Birger
2021-06-29 15:34         ` David Ahern
2021-06-30  5:34           ` Antony Antony
2021-06-30 14:25             ` David Ahern

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=20210629125316.GA18078@moon.secunet.de \
    --to=antony.antony@secunet.com \
    --cc=christian.perle@secunet.com \
    --cc=davem@davemloft.net \
    --cc=dsahern@gmail.com \
    --cc=dsahern@kernel.org \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=yoshfuji@linux-ipv6.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).