Networking Forums

Networking Forums > Computer Networking > Linux Networking > 21 bit subnet ?

Reply
Thread Tools Display Modes

21 bit subnet ?

 
 
Carl Farrington
Guest
Posts: n/a

 
      08-07-2003, 09:28 AM
I'm confused. A colleage has requested I number a network 10.6.0.0/21

that's a 21 bit subnet, 255.255.248.0, right?

'cause I'm (obviously) no expert and I'm looking around the net I see that
this might just be another way to describe a 24bit netmask (255.255.255.0)

What's the crack? Can anyone explain it to me?

thanks,


Carl


 
Reply With Quote
 
 
 
 
Skull
Guest
Posts: n/a

 
      08-07-2003, 09:33 AM
Sgranocchiando il cranio di Carl Farrington, vi trovai inciso:

> I'm confused. A colleage has requested I number a network 10.6.0.0/21
>
> that's a 21 bit subnet, 255.255.248.0, right?
>
> 'cause I'm (obviously) no expert and I'm looking around the net I see
> that this might just be another way to describe a 24bit netmask
> (255.255.255.0)


no, it isn't...

> What's the crack? Can anyone explain it to me?


try converting the netmask in binary and i think everything becomes
clearer...

c ya

--
Emanuele Balla aka Skull - Public Key #661E5CBF on www.keyserver.com
+----------------------------------------------------------------------+
"And 1.1.81 is officially BugFree(tm), so if you receive any bug-reports
on it, you know they are just evil lies." (By Linus Torvalds)
 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      08-07-2003, 09:39 AM
"Carl Farrington" <(E-Mail Removed)> wrote in message
news:bgt66c$4po$1$(E-Mail Removed)

> I'm confused. A colleage has requested I number a network 10.6.0.0/21
> that's a 21 bit subnet, 255.255.248.0, right?
> 'cause I'm (obviously) no expert and I'm looking around the net I see
> that this might just be another way to describe a 24bit netmask
> (255.255.255.0)
> What's the crack? Can anyone explain it to me?


Look at the number of hosts addressable in /21 and /24:

$ ./ipcalc.pl 10.6.0.0/21
Address: 10.6.0.0 00001010.00000110.00000 000.00000000
Netmask: 255.255.248.0 = 21 11111111.11111111.11111 000.00000000
Wildcard: 0.0.7.255 00000000.00000000.00000 111.11111111
Network: 10.6.0.0/21 00001010.00000110.00000 000.00000000
=> (Class A)
Broadcast: 10.6.7.255 00001010.00000110.00000 111.11111111
HostMin: 10.6.0.1 00001010.00000110.00000 000.00000001
HostMax: 10.6.7.254 00001010.00000110.00000 111.11111110
Hosts/Net: 2046 (Private Internet RFC 1918)

$ ./ipcalc.pl 10.6.0.0/24
Address: 10.6.0.0 00001010.00000110.00000000 .00000000
Netmask: 255.255.255.0 = 24 11111111.11111111.11111111 .00000000
Wildcard: 0.0.0.255 00000000.00000000.00000000 .11111111
Network: 10.6.0.0/24 00001010.00000110.00000000 .00000000
=> (Class A)
Broadcast: 10.6.0.255 00001010.00000110.00000000 .11111111
HostMin: 10.6.0.1 00001010.00000110.00000000 .00000001
HostMax: 10.6.0.254 00001010.00000110.00000000 .11111110
Hosts/Net: 254 (Private Internet RFC 1918)



--
use hotmail com for any email replies


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
 
Reply With Quote
 
Cedric Blancher
Guest
Posts: n/a

 
      08-07-2003, 09:45 AM
Dans sa prose, Carl Farrington nous ecrivait :
> I'm confused. A colleage has requested I number a network 10.6.0.0/21
> that's a 21 bit subnet, 255.255.248.0, right?


True.

> 'cause I'm (obviously) no expert and I'm looking around the net I see
> that this might just be another way to describe a 24bit netmask
> (255.255.255.0)


Nope.

> What's the crack? Can anyone explain it to me?


An IP address is composed of a network part and a host part. Netmask is
used to deduce network address (i.e. IP for which host part is 0) from IP.
In short, just operate a AND between IP and mask (binary representation).
The result you get is network address.

It is quite simple with classical 8, 16 and 24 bits masks, as they just
cut network part on a dot in classical representation. Other masks are a
bit more tricky to handle as you can see.

A 24 bits mask lets 8 bits for hosts. So you can address 254 hosts. A 21
bits mask allows you to address 2046 hosts, as its network part is smaller.

Debian has a tool called netmask that can help you in calculating ranges
and netmasks, both classical, CIDR or binary representation. Good tool for
learning

For your present case :

cbr@elendil:~$ netmask -r 10.6.0.0/21
10.6.0.0-10.6.7.255 (2048)

--
j'ai entendu dire que 1 million de site se font sur le web par mois.
Pour sortir ma pageweb de cette folie, j'entreprends d'utiliser tous les
moyens possibles pour la faire connaitre. Allez y le plus possible.
-+- H1 in: Guide du Neuneu d'Usenet - Errare neuneutus est -+-

 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      08-07-2003, 10:47 AM
Carl Farrington wrote:

> I'm confused. A colleage has requested I number a network 10.6.0.0/21
>
> that's a 21 bit subnet, 255.255.248.0, right?
>
> 'cause I'm (obviously) no expert and I'm looking around the net I see that
> this might just be another way to describe a 24bit netmask (255.255.255.0)
>
> What's the crack? Can anyone explain it to me?


That's a legitemate net mask. The local network will then allow 2046
addresses. A netmask does not have to fall on 8 bit boundaries.
--

Fundamentalism is fundamentally wrong.

To reply to this message, replace everything to the left of "@" with
james.knott.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing - Computers on either subnet have problems finding PCs on the other subnet ZZYZX Windows Networking 2 03-26-2011 01:01 AM
VPN Clients and subnet, NOT the usual "255.255.255.255 subnet mask" question! snowdog_2112 Windows Networking 4 09-09-2006 01:35 AM
Subnet ? John Home Networking 5 04-04-2005 05:53 PM
subnet to subnet routing question S James Linux Networking 0 09-04-2003 03:37 PM
firewall/router - subnet/router - subnet S James Linux Networking 0 09-04-2003 01:17 PM



1 2 3 4 5 6 7 8 9 10 11