Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Mar 2017 01:16:25 +0000
From:      "asomers (Alan Somers)" <phabric-noreply@FreeBSD.org>
To:        freebsd-net@freebsd.org
Subject:   [Differential] D9451: Constrain IPv6 interface routes to each FIB
Message-ID:  <4bd6a528077f144f2b546a0138d8355b@localhost.localdomain>
In-Reply-To: <differential-rev-PHID-DREV-xl62ljmjgot45obmsgfw-req@FreeBSD.org>
References:  <differential-rev-PHID-DREV-xl62ljmjgot45obmsgfw-req@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

asomers added inline comments.

INLINE COMMENTS

> jhujhiti_adjectivism.org wrote in nd6.c:1295
> > It's totally valid for an interface to have multiple addresses assigned, each of which is on a different fib.
> 
> Is this true? I'm not aware of a way this could happen. Interface routes are added to the FIB associated with the interface, and of course there is only one FIB per interface. For instance in6_newaddrmsg() provides no mechanism by which to assign the route for the interface's address to anything other than the interface FIB.

Yep, it's true.  One way is to do it with static routes.  Another way involves changing the interfaces's fib.  For example, like this:

  ifconfig tap0 create
  ifconfig tap0 10.1.0.1/24 fib 2
  ifconfig tap0 10.1.1.1/24 fib 3 alias

REPOSITORY
  rS FreeBSD src repository

REVISION DETAIL
  https://reviews.freebsd.org/D9451

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: jhujhiti_adjectivism.org, #network, bz, asomers
Cc: jch, bz, imp, ae, freebsd-net-list


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4bd6a528077f144f2b546a0138d8355b>