From owner-freebsd-net@FreeBSD.ORG Tue Aug 7 16:32:43 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19C58106566B; Tue, 7 Aug 2012 16:32:43 +0000 (UTC) (envelope-from zec@fer.hr) Received: from mail.zvne.fer.hr (mail.zvne.fer.hr [161.53.66.5]) by mx1.freebsd.org (Postfix) with ESMTP id 926DF8FC1D; Tue, 7 Aug 2012 16:32:42 +0000 (UTC) Received: from munja.zvne.fer.hr (161.53.66.248) by mail.zvne.fer.hr (161.53.66.5) with Microsoft SMTP Server id 14.2.298.4; Tue, 7 Aug 2012 18:32:40 +0200 Received: from sluga.fer.hr ([161.53.66.244]) by munja.zvne.fer.hr with Microsoft SMTPSVC(6.0.3790.4675); Tue, 7 Aug 2012 18:32:36 +0200 Received: from localhost ([161.53.19.8]) by sluga.fer.hr with Microsoft SMTPSVC(6.0.3790.4675); Tue, 7 Aug 2012 18:32:35 +0200 From: Marko Zec To: Eugene Grosbein Date: Tue, 7 Aug 2012 18:32:22 +0200 User-Agent: KMail/1.9.10 References: <50211DF0.2090607@rdtc.ru> <201208071633.11524.zec@fer.hr> <20120807162028.GA22341@rdtc.ru> In-Reply-To: <20120807162028.GA22341@rdtc.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <201208071832.23167.zec@fer.hr> X-OriginalArrivalTime: 07 Aug 2012 16:32:35.0799 (UTC) FILETIME=[40787E70:01CD74BA] Cc: freebsd-net@freebsd.org, Jacques Fourie , "net@freebsd.org" Subject: Re: Send traffic to itself using real NIC 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: Tue, 07 Aug 2012 16:32:43 -0000 On Tuesday 07 August 2012 18:20:28 Eugene Grosbein wrote: > On Tue, Aug 07, 2012 at 04:33:11PM +0200, Marko Zec wrote: > > There's no need to use epair at all here. Just create a vnet jail, and > > assign one of the igb interfaces into it, done: > > > > # jail -c name=x vnet persist > > # ifconfig igb1 vnet x > > # jexec x ifconfig > > lo0: flags=8008 metric 0 mtu 16384 > > options=3 > > igb1: flags=8842<...> metric 0 mtu 1500 ... > > That would be nice solution but jail(8) manual page says: > "a fairly complete file system install of FreeBSD is required" No, a separate filesystem is not required, that's a manpage bug. Just try the above 3 commands, they really work. cheers, Marko > and that seems to be pretty big overhead. Meantime, I'll try to think up > some kind of NETGRAPH mesh. > > Eugene Grosbein