From owner-freebsd-net@FreeBSD.ORG Sat Nov 28 05:12:39 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48272106566B for ; Sat, 28 Nov 2009 05:12:39 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outM.internet-mail-service.net (outm.internet-mail-service.net [216.240.47.236]) by mx1.freebsd.org (Postfix) with ESMTP id 317B28FC1A for ; Sat, 28 Nov 2009 05:12:38 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 31621AE06B; Fri, 27 Nov 2009 21:12:38 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id F1F6B2D601A; Fri, 27 Nov 2009 21:12:37 -0800 (PST) Message-ID: <4B10B145.1050704@elischer.org> Date: Fri, 27 Nov 2009 21:12:37 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Igor Sysoev References: <20091127085504.GH17494@sysoev.ru> In-Reply-To: <20091127085504.GH17494@sysoev.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: interface FIB X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Nov 2009 05:12:39 -0000 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. > >