*BSD News Article 63401


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!uunet!in2.uu.net!newsfeed.internetmci.com!newsxfer2.itd.umich.edu!agate!sklower
From: sklower@oboe.CS.Berkeley.EDU (Keith Sklower)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Multiple IP Addresses on same Machine
Date: 1 Mar 1996 01:03:49 GMT
Organization: University of California, Berkeley
Lines: 29
Message-ID: <4h5idl$9nq@agate.berkeley.edu>
References: <312D11C8.41C67EA6@telstra.net> <4gtqoi$f3q@agate.berkeley.edu> <4gu6uc$e5t@bluesprings.in-brb.de>
NNTP-Posting-Host: oboe.cs.berkeley.edu

In article <4gu6uc$e5t@bluesprings.in-brb.de>,
Lars Hentschke <nuggets@bluesprings.in-brb.de> wrote:
}
}ifconfig de0 inet a.b.c.d netmask 0xffffff00 broadcast a.b.c.255
} configures the net-interface correctly, so that a "broadcastping" let
} answer all reachable machines.
} that's ok.

Have you tried merely ifconfig de0 inet a.b.c.d netmask 0xfffff00
without the broadcast clause?  All ones is supposed to be the default.

}ifconfig de0 inet a.b.c.d netmask 0xffffff00 broadcast a.b.c.255 alias e.f.g.h
} configures the interfaces with a broadcastadress e.f.g.h and a
} broadcastping onto a.b.c.255 dont work.
} that's not good, because the manpage allows it.

Well, I think the man page is wrong then.  There was never any
intent to have the ifconfig command set both a primary and secondary
IP address simultaneously in a single invocation.

}ifconfig de0 inet a.b.c.d netmask 0xffffff00 broadcast a.b.c.255 
}ifconfig de0 alias e.f.g.h netmask 0xffffff00
} only these two commands to the right for both subnets.


}Will this be corrected for 2.2 ?
What, exactly needs to be corrected?  The man page?  The reporting
of errors when adding an alias would try to add a redundant routing
table entry?