Re: Question: Gateway address == 0

From: Rik van Riel (riel@conectiva.com.br)
Date: Sat Apr 08 2000 - 13:43:29 EST


On Sun, 16 Apr 2000, Jan Bobrowski wrote:

> > > Kernel refuses to set gateway address to one having zeroed host
> > > part (ADDR & ~MASK == 0). I can't find any RFC that forbids it.
> >
> > You're trying to use the network address as gateway.
> > That's not supposed to be done, so refusing it seems
> > a good default.
>
> There's no such thing as "network address" in classless world.
> If you use netmasks you can't describe your network using single
> address.

Indeed, you need to describe your network using both
the network address and the netmask, eg:

192.168.0.0/16 or 192.168.192.0/20

Sure, the network address could in theory be used for
a device, but in practice nobody does that because it
isn't supported by all devices...

regards,

Rik

--
The Internet is not a network of computers. It is a network
of people. That is its real strength.

Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies http://www.conectiva.com/ http://www.surriel.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:11 EST