lkml.org 
[lkml]   [1997]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Is netmask 255.255.255.254 illigal?
Date
On Sat, 11 Jan 1997 22:46:39 -0500 (EST), 
Eugene Kanter <eugene@saturn.net> wrote:
>kernel 2.1.20
>
>ifconfig eth0 206.42.0.97 netmask 255.255.255.254 broadcast 206.42.0.255
>SIOCSIFNETMASK: Invalid argument
>
>What is wrong?
>
>Did I do something not right or it is kernel bug?

netmask 255.255.255.254 only leaves 1 bit host addresses. Since you
must have a network (all bits 0) and a broadcast address (all bits 1),
this leaves no room for hosts. 2.1.20 checks and rejects this. If you
really mean a broadcast address of 206.42.0.255 then your netmask
should be 255.255.255.0.



\
 
 \ /
  Last update: 2005-03-22 13:38    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site