From owner-freebsd-questions Mon Jun 10 14:23:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by hub.freebsd.org (Postfix) with ESMTP id 2C73D37B403 for ; Mon, 10 Jun 2002 14:23:42 -0700 (PDT) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.3/8.12.3) with ESMTP id g5ALNtP9025275; Mon, 10 Jun 2002 23:23:55 +0200 (CEST) (envelope-from stable@ei.bzerk.org) Received: (from stable@localhost) by ei.bzerk.org (8.12.3/8.12.3/Submit) id g5ALNsib025274; Mon, 10 Jun 2002 23:23:54 +0200 (CEST) Date: Mon, 10 Jun 2002 23:23:54 +0200 From: Stable User To: aaron g Cc: fbsd-q@bzerk.org, freebsd-questions@FreeBSD.ORG Subject: Re: Jail single ip network (FreeBSD 4.5) Message-ID: <20020610232354.A25245@ei.bzerk.org> References: <20020610205511.29606.qmail@operamail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020610205511.29606.qmail@operamail.com>; from click46@operamail.com on Tue, Jun 11, 2002 at 04:55:10AM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Jun 11, 2002 at 04:55:10AM +0800, aaron g typed: > > >> I then created the network alias, here is the output from ifconfig: > >> > >> xl0: flags=8843 mtu 1500 > >> options=3 > >> inet 142.39.88.238 netmask 0xffffff00 broadcast 142.39.88.255 > >> inet6 fe80::2c0:4fff:fea0:86fa%xl0 prefixlen 64 scopeid 0x1 > >> inet 192.168.200.13 netmask 0xffffffff broadcast 192.168.200.13 > > ^^^^^^^^ > > Normally you would use such a netmask if your alias IP address is > > in the same subnet as your primary IP address. Since they are in > > unrelated networks you probably want to use a netmask of 255.255.255.0 > here. > > > Ruben > > > actually, since this is an alias, you must set the netmask > to 255.255.255.255. As of 4.6 [or perhaps 4.5? I cannot *IF* both addresses are in the same subnet. In this case, they are not. > remember] you are forced to use this netmask or the alias > will not work. You can use any netmask you like if the addresses are in different subnets: ei# ifconfig ed0 ed0: flags=8843 mtu 1500 inet 192.168.1.40 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:20:18:39:eb:5a ei# ifconfig ed0 10.0.1.1 netmask 255.0.0.0 alias ei# ifconfig ed0 ed0: flags=8843 mtu 1500 inet 192.168.1.40 netmask 0xffffff00 broadcast 192.168.1.255 inet 10.0.1.1 netmask 0xff000000 broadcast 10.255.255.255 ether 00:20:18:39:eb:5a ei# uname -a FreeBSD ei.lan.bzerk.org 4.6-RC FreeBSD 4.6-RC #7: Sun Jun 9 22:29:27 CEST 2002 root@ei.lan.bzerk.org:/usr/obj/usr/src/sys/EI i386 > > - aarong > -- > _______________________________________________ > Download the free Opera browser at http://www.opera.com/ > > Powered by Outblaze > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message