*BSD News Article 63137


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.hawaii.edu!ames!usenet.kornet.nm.kr!news.kreonet.re.kr!news.dacom.co.kr!newsrelay.netins.net!solaris.cc.vt.edu!news.mathworks.com!fu-berlin.de!cs.tu-berlin.de!uni-erlangen.de!news.tu-chemnitz.de!narses.hrz.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Multiple Ip Addresses
Date: 9 Mar 1996 16:14:34 GMT
Organization: Private BSD site, Dresden
Lines: 21
Message-ID: <4hsapa$2ht@uriah.heep.sax.de>
References: <4hgcl0$5p@plaster.csdc.toshiba.com.au> <4ho9l5$l2a@news.ios.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.3

gmann@haven.ios.com (Glen Mann) writes:
> I had success with
> 
>   ifconfig de0 inet alias a.b.c.d
> 
> but had seen that another post had put a netmask (ffffffff I think) on the 
> end.  Anyone know why the netmask?  The IP I used was valid and within 
> the same domain as the "base" host.

The domain (in the DNS sense) is quite uninteresting.  However, if
your alias is in the same network range as the primary address, the
kernel needs to know which address to stick as the sender address of
the outgoing packets.  Hence, netmask 0xffffffff for all `secondary'
addresses.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)