From owner-freebsd-jail@FreeBSD.ORG Thu Nov 13 21:25:11 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C33281065670 for ; Thu, 13 Nov 2008 21:25:11 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 6B7238FC08 for ; Thu, 13 Nov 2008 21:25:11 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from [85.173.17.43] (helo=moosa) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1L0j1d-0004Yz-Bl; Thu, 13 Nov 2008 23:42:49 +0300 To: "huynhnguyen" References: <002b01c94490$260ebfd0$722c3f70$@com> From: Boris Samorodov Date: Thu, 13 Nov 2008 23:42:36 +0300 In-Reply-To: <002b01c94490$260ebfd0$722c3f70$@com> (huynhnguyen@mikorn.com's message of "Wed\, 12 Nov 2008 13\:30\:21 +0700") Message-ID: <71714243@ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-jail@freebsd.org Subject: Re: can jail use 2 NICS? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 21:25:11 -0000 On Wed, 12 Nov 2008 13:30:21 +0700 huynhnguyen wrote: > o bge0: 192.168.1.2/24 > bge0_alias0: 192.168.1.3/24 > o bge1: 11.0.0.2/24 > bge1_alias0: 11.0.0.3/24 Sorry, it's not an answer to your original question. But imho you can't use /24 for an alias address. According to ifconfig(8): ----- alias Establish an additional network address for this interface. This is sometimes useful when changing network numbers, and one wishes to accept packets addressed to the old interface. If the address is on the same subnet as the first network address for this interface, a non-conflicting netmask must be given. Usually 0xffffffff is most appropriate. ----- As I understand the mask /32 should be used here. WBR -- bsam