From owner-freebsd-questions@FreeBSD.ORG Thu Apr 26 11:27:41 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D37C016A400 for ; Thu, 26 Apr 2007 11:27:41 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from duane.dbq.yournetplus.com (duane.dbq.yournetplus.com [65.124.230.214]) by mx1.freebsd.org (Postfix) with ESMTP id AF89713C48C for ; Thu, 26 Apr 2007 11:27:41 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from duane.dbq.yournetplus.com (duane.dbq.yournetplus.com [192.168.1.10]) by duane.dbq.yournetplus.com (Postfix) with ESMTP id 8B20528F879; Thu, 26 Apr 2007 11:29:07 +0000 (UTC) Date: Thu, 26 Apr 2007 11:29:07 +0000 (UTC) From: Duane Hill X-X-Sender: d.hill@duane.dbq.yournetplus.com To: Roberto Pereyra In-Reply-To: Message-ID: <20070426112307.U4140@duane.dbq.yournetplus.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: jail question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 11:27:41 -0000 On Thu, 26 Apr 2007, Roberto Pereyra wrote: > hi > > I running fbsd 6.2 and I would like to my first jail setup, but I have > this error when I start the jail (jail0): > > srv1# /etc/rc.d/jail start > Configuring jails:. > Starting jails:ifconfig: interface alias does not exist > jail0. > srv1# > > > What I do wrong ? > > Thanks in advance. > > roberto > > This is my /etc/rc.conf > > # -- sysinstall generated deltas -- # Mon Apr 23 09:32:04 2007 > # Created: Mon Apr 23 09:32:04 2007 > # Enable network daemons for user convenience. > # Please make all changes to this file, not to /etc/defaults/rc.conf. > # This file now contains just the overrides from /etc/defaults/rc.conf. > defaultrouter="192.168.0.2" > hostname="srv1.gualeguaychu.gov.ar" > ifconfig_sk0="inet 192.168.0.1 netmask 255.255.0.0" > keymap="spanish.iso.acc" > linux_enable="YES" > sshd_enable="YES" > usbd_enable="YES" > # -- sysinstall generated deltas -- # Mon Apr 23 12:52:02 2007 > moused_port="/dev/cuad0" > moused_type="auto" > moused_enable="YES" > > ## jails > sendmail_enable="NO" > inetd_flags="-wW -a 192.168.0.1" > rpcbind_enable="NO" > > jail_enable="YES" # Set to NO to disable starting of any jails > jail_list="jail0" # Space separated list of names of jails > > jail_jail0_rootdir="/usr/home/jails/jail0" # jail's root directory > jail_jail0_hostname="jail0" # jail's hostname > jail_jail0_ip="192.168.0.3" # jail's IP address > #jail_jail0_devfs_enable="YES" # mount devfs in the jail > #jail_jail0_devfs_ruleset="www_ruleset" # devfs ruleset to apply to jail > You do not have your jail IP set up as an alias on your network interface. You need to add ifconfig_sk0_alias0="inet 192.168.0.3 netmask 255.255.0.0" after your primary interface ifconfig_sk0="inet 192.168.0.1 netmask 255.255.0.0" in the /etc/rc.conf. Then do an ifconfig sk0 inet 192.168.0.3 netmask 255.255.0.0 alias to make it live without having to reboot.