Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Nov 2009 21:12:37 -0800
From:      Julian Elischer <julian@elischer.org>
To:        Igor Sysoev <is@rambler-co.ru>
Cc:        freebsd-net@freebsd.org
Subject:   Re: interface FIB
Message-ID:  <4B10B145.1050704@elischer.org>
In-Reply-To: <20091127085504.GH17494@sysoev.ru>
References:  <20091127085504.GH17494@sysoev.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Igor Sysoev wrote:
> Currently only packets generated during encapsulation can use
> interface's FIB stored during interface creation:
> 
> setfib 1 ifconfig gif0 ...
> setfib 1 ifconfig tun0 ...

not sure if tun actually does this (in fac tit shouldn't)

but for gre and gif (and stf) these are tunnelling other things into 
IP and thus it makes sense to be able to connect a routing table with 
the generated envelopes.

> 
> is it possible to implement this feature for any interface:
> 
> setfib 1 ifconfig vlan0 ...
> 
> or
> 
> ifconfig vlan0 setfib 1 ...

these two things would mean differnt things.
and one of them wouldn't mean anything.

setfig 1 ifconfig vlan0 woudl mean "what" exactly?
VLAN tagging is an L2/L1 operation and FIBS have no effect on this.

as for ifconfig vlan0 setfib 1, or  ifconfig em0 setfib 1

this will (shortly) mean that incoming packets through this interface 
will be default be connected with fib 1 so the any return packets 
(resets, icmp etc.) will use FIB1 to go back to the sender.

That patch is in the works.

> 
> 




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