From owner-freebsd-net@FreeBSD.ORG Thu Aug 9 04:54:47 2012 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 5413C106566B for ; Thu, 9 Aug 2012 04:54:47 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id D16BC8FC0C for ; Thu, 9 Aug 2012 04:54:46 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 5171D25D39FD; Thu, 9 Aug 2012 04:54:45 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 44010BE850B; Thu, 9 Aug 2012 04:54:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id m4_vT_FViJ4p; Thu, 9 Aug 2012 04:54:42 +0000 (UTC) Received: from nv.sbone.de (nv.sbone.de [IPv6:fde9:577b:c1a9:31::2013:138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 00155BE8508; Thu, 9 Aug 2012 04:54:41 +0000 (UTC) Date: Thu, 9 Aug 2012 04:54:40 +0000 (UTC) From: "Bjoern A. Zeeb" To: Eugene Grosbein In-Reply-To: <50223304.5060402@rdtc.ru> Message-ID: References: <50211DF0.2090607@rdtc.ru> <201208071633.11524.zec@fer.hr> <20120807162028.GA22341@rdtc.ru> <201208071832.23167.zec@fer.hr> <50223304.5060402@rdtc.ru> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-712463822-1344488082=:4474" Cc: freebsd-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: Thu, 09 Aug 2012 04:54:47 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-712463822-1344488082=:4474 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Wed, 8 Aug 2012, Eugene Grosbein wrote: > 07.08.2012 23:32, Marko Zec пишет: >> On Tuesday 07 August 2012 18:20:28 Eugene Grosbein wrote: >>> On Tue, Aug 07, 2012 at 04:33:11PM +0200, Marko Zec wrote: First of all net.link.ether.inet.useloopback and net.inet6.icmp6.nd6_useloopback exist for kind of that reason; setting them to 0 should actually make the traffic going to the NIC. However I am not sure about the status of them; I think qingli at least broke the IPv6 one. >>>> 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. > > Indeed, they work just fine, thanks! > > Modern jails are cool but their manual page is not ;-) Depends, / is not a fairly complete file system install of FreeBSD in your world view? ;-) [ which is what no path argument implies ] /bz -- Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family. --0-712463822-1344488082=:4474--