Date: Sat, 15 Dec 2001 16:10:52 -0800 (PST) From: "f.johan.beisser" <jan@caustic.org> To: Dave VanAuken <dave@hawk-systems.com> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: when sensible/possible to assign ubnet to interface Message-ID: <20011215160802.M16958-100000@localhost> In-Reply-To: <DBEIKNMKGOBGNDHAAKGNKEDJKOAA.dave@hawk-systems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011215160802.M16958-100000>