From owner-freebsd-questions Sat Dec 15 16:11: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pogo.caustic.org (caustic.org [64.163.147.186]) by hub.freebsd.org (Postfix) with ESMTP id 7F32137B405 for ; Sat, 15 Dec 2001 16:10:56 -0800 (PST) Received: from localhost (jan@localhost) by pogo.caustic.org (8.11.6/8.11.6) with ESMTP id fBG0ArR85000; Sat, 15 Dec 2001 16:10:53 -0800 (PST) (envelope-from jan@caustic.org) Date: Sat, 15 Dec 2001 16:10:52 -0800 (PST) From: "f.johan.beisser" X-X-Sender: To: Dave VanAuken Cc: Subject: Re: when sensible/possible to assign ubnet to interface In-Reply-To: Message-ID: <20011215160802.M16958-100000@localhost> X-Ignore: This statement isn't supposed to be read by you X-TO-THE-FBI-CIA-AND-NSA: HI! HOW YA DOIN? MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Sat, 15 Dec 2001, Dave VanAuken wrote: > Hosting box has a number of non-consecutive IP addresses on it... > > At what time does it make more sense to simply have an entire subnet > pointing at that interface... and what would the syntax be to alias > that. > > Rather than > ifconfig_fxp0="inet 192.168.131.12 netmask 255.255.255.0" > ifconfig_fxp0_alias0="inet 192.168.131.13 netmask 255.255.255.0" > ifconfig_fxp0_alias1="inet 192.168.131.51 netmask 255.255.255.0" > ifconfig_fxp0_alias2="inet 192.168.131.52 netmask 255.255.255.0" > ifconfig_fxp0_alias3="inet 192.168.131.53 netmask 255.255.255.0" whenever assigning an aliased interface to the same subnet (in this case, 192.168.131.0/24) use a netmask of 255.255.255.255. > > do > ifconfig_fxp0="inet 192.168.131.12 netmask 255.255.255.0" > ifconfig_fxp0_alias0="inet 192.168.131.13 netmask 255.255.255.0" > ifconfig_fxp0_alias1="inet 192.168.131.51/27 netmask 255.255.255.224" > > Possible? Doable? syntax check? won't work. read the man page for ifconfig(8). > thanks > > (did a brief but by no mean thorough check on this, RTFM's or net > resource links appreciated) most of this is in the man pages, some is a little obscure. -------/ f. johan beisser /--------------------------------------+ http://caustic.org/~jan jan@caustic.org "John Ashcroft is really just the reanimated corpse of J. Edgar Hoover." -- Tim Triche To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message