On Friday 28 February 2003 11:47, Erik S. Johansen wrote:
> I got a colocated box on which I ditched redhat and installed gentoo (thank
> god the preinstalled redhat had a GB swap, just enough to do a gentoo
> install and switch ;). It's my 6th gentoo box so far. and I just now
> noticed a little oddity in the network init scripts related to aliases:
>
> When adding an alias to ethX, the primary IPs netmask is not inherited. My
> primary ip has a /23 mask, whereas the aliased ip gets a /24 mask. This
> doesn't really affect me, but it appears to be a bug that maybe could be
> fixed before it does affect someone. Or is this for some reason
> intentional?

In general ip aliases are independant of the "main" IP address. As such they 
get a default netmask if they are not specified. The IP appears to be a 
C-class address and as such it gets a /24 netmask. The script could be so 
smart to enumerate all ip's on the computer and use that to get a better 
default netmask, but for most purposes such a script is not necessary. It 
should be possible to provide the netmask though, if not that is a BUG

Paul

-- 
Paul de Vrieze
Researcher
Mail: [EMAIL PROTECTED]
Homepage: http://www.devrieze.net

Attachment: pgp00000.pgp
Description: signature

Reply via email to