From owner-freebsd-questions@FreeBSD.ORG Fri Sep 26 15:07:25 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4B4A020F for ; Fri, 26 Sep 2014 15:07:25 +0000 (UTC) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.52.97]) by mx1.freebsd.org (Postfix) with ESMTP id 195C8920 for ; Fri, 26 Sep 2014 15:07:24 +0000 (UTC) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 1D17FCB8CB6; Fri, 26 Sep 2014 10:07:18 -0500 (CDT) Received: from 128.135.70.2 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Fri, 26 Sep 2014 10:07:18 -0500 (CDT) Message-ID: <15285.128.135.70.2.1411744038.squirrel@cosmo.uchicago.edu> In-Reply-To: <000901cfd953$b82466a0$286d33e0$@jarasoft.net> References: <000901cfd953$b82466a0$286d33e0$@jarasoft.net> Date: Fri, 26 Sep 2014 10:07:18 -0500 (CDT) Subject: Re: Adding an ip address on one nic for a jail From: "Valeri Galtsev" To: jack@jarasoft.net Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2014 15:07:25 -0000 On Fri, September 26, 2014 1:33 am, Jack Raats wrote: > Hi > > > > Can someone explain to me how to add an extra ip-address on one nic for a > jail. > > I know how to do it by adding an alias when both addresses uses the same > gateway. > > > > But how to do it, when the extra address has a different gateway? > As far as I know, you need an interface on the main system (host system if it were not jail but virtual host we were talking about) with this different gateway. Then you will be able to add alias to that interface as you described. Also: to the best of my knowledge (someone will correct me if it is not true any more), you only can have one IP per jail. Valeri > > > I'm using Free-BSD 9.3-STABLE. For jail management I'm using ezjail > > > > Thanks > > Jack Raats > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++