lkml.org 
[lkml]   [2000]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: all zeroes/all ones used in host IP's...
Date
From
From: Meelis Roos <mroos@linux.ee>
Subject: Re: all zeroes/all ones used in host IP's...
Date: Sat, 29 Jan 2000 02:24:52 +0200

> MD> Actually, if you read the RFC 1122 section 3.2.1.3 you would indeed find that
> MD> for you example you get
>
> MD> Host-number = 0x02
> MD> Subnet-number = 0x0000
> MD> Network-number = 0x17
>
> How come? It reads:
>
> Q> We now summarize the important special cases for Class A, B,
> Q> and C IP addresses, using the following notation for an IP
> Q> address:
> Q>
> Q>{ <Network-number>, <Host-number> }
> Q>or
> Q>{ <Network-number>, <Subnet-number>, <Host-number> }

Yes, it does.

Now 0x17 is a Class A address, right?

Given a subneting with a netmask of 24 bits (as in his example) you would get
8 bit for network number (from the Class A), 16 bits for subnet number
(netmask - 8 = 16) and the last 8 bits come from the netmask (32 - netmask).

Those, you end up with the numbers above.

Please enligthen me if you can find an error in my reasoning, all under the
assumption of an non-CIDR case.

Cheers,
Magnus

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.051 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site