• Home
  • Reviews
  • Articles
  • News
  • Tools
  • GamingHeaven
  • Forums
  • Network
 

Go Back   DriverHeaven.net > Forums > DriverHeaven's Heaven > DriverHeaven Guides

Notices

Reply
 
LinkBack Thread Tools
Old Sep 28, 2004, 12:22 PM   #1
Burned
 
Zardon's Avatar
 
Join Date: May 2002
Posts: 29,662
Zardon is godlike in his statusZardon is godlike in his statusZardon is godlike in his statusZardon is godlike in his statusZardon is godlike in his statusZardon is godlike in his statusZardon is godlike in his statusZardon is godlike in his statusZardon is godlike in his statusZardon is godlike in his statusZardon is godlike in his status

DH Guide: Subnet Masking

Forum member Greg "Gutterpunk" Suhr has put together a rather indepth guide detailing subnet masking.

When hearing Subnet Masking, most people just cringe because of the horror stories that are shared throughout networking. In actuality it is fairly simple. The main things you need to understand are:
  • Binary to decimal conversions, and decimal to binary
  • Understanding on how to separate network bits to host bits
  • A brief understanding of the different classifications of IP addresses
In this guide I will cover each of these aspects starting with converting binary to decimal and visa versa. In subnet masking you work with a series of 4 bytes each byte separated by a decimal. This makes up your IP Address. Remember 1 bit = 8 bytes. So each Address contains 8 bytes or 4 bits.

read here
Zardon is offline   Reply With Quote
Old Sep 28, 2004, 12:47 PM   #2
DriverHeaven Senior Member
 
Join Date: Feb 2003
Location: Trollhättan, Sweden
Posts: 512
Gardinen is on a distinguished road

On Cisco 2600 series routers, you can you the [subnet zero] command in order to use the first subnet.
Gardinen is offline   Reply With Quote
Old Sep 28, 2004, 01:44 PM   #3
DriverHeaven Junior Member
 
Join Date: Dec 2003
Location: Virginia
Posts: 77
Vidmaster23 is on a distinguished road

Very good guide.

Some good additions to this guide would be Hexidecimal to binary and Binary to hexidecimal.
Vidmaster23 is offline   Reply With Quote
Old Sep 28, 2004, 02:22 PM   #4
Styleless Wonder
 
No_Style's Avatar
 
Join Date: Jun 2002
Location: Ottawa, Ontario
Posts: 6,049
No_Style is on a distinguished road

Nice. Very nice! I'm taking CISCO now, and a lot of people will benefit from this in my class. I've referred one to your guide. LOL If you could get VLSM/CIDR subnet masking in that would be even better!

Oh, and the 2 subnets not being used aren't really illegal when doing regular subnetting, it's just that one is for broadcasting all the networks and the other is used to ID the network, I believe.

VLSM/CIDR allows you to use those "illegal" subnets. VLSM is basically it's subnetting a subnet. Funky stuff. While CIDR is subnetting a subnet, but also borrowing more than the alotted 8 bits.

Manual subnetting isn't hard, but if you make a mistake it can be brutal which is why subnet calculators are around.

Last edited by No_Style; Sep 28, 2004 at 02:32 PM.
No_Style is offline   Reply With Quote
Old Sep 28, 2004, 03:05 PM   #5
Back in London
 
germanjulian's Avatar
 
Join Date: Jul 2003
Location: London
Posts: 1,794
germanjulian is on a distinguished road

nice read. thank god this semester I am learning TCP/IP fully!!!! fully i mean fully...
germanjulian is offline   Reply With Quote
Old Sep 28, 2004, 03:34 PM   #6
VETUS INFLATIO
 
Falstaff's Avatar
 
Join Date: Sep 2002
Location: Red Lodge UK
Posts: 15,720
Falstaff has a spectacular aura aboutFalstaff has a spectacular aura aboutFalstaff has a spectacular aura about

looks like gold medal work to me. but then he always paid attention in class. LOL
Falstaff is offline   Reply With Quote
Old Sep 28, 2004, 05:00 PM   #7
boo!!!!
 
drakesteakn's Avatar
 
Join Date: Aug 2003
Location: Ft. Meyers, FL
Posts: 2,025
drakesteakn is on a distinguished road

he doesn't pay attention in class. he plays vid games. he just learns quick. nice work greg. i really enjoyed reading it
drakesteakn is offline   Reply With Quote
Old Sep 28, 2004, 05:14 PM   #8
I = Greatest Dood
 
GutterPunk's Avatar
 
Join Date: Nov 2003
Location: PuNk
Posts: 5,854
GutterPunk will become famous soon enough

they are illegal because you cannot use them for an actual network

and thanks for the comments i worked pretty hard on this puppy
GutterPunk is offline   Reply With Quote
Old Sep 28, 2004, 05:21 PM   #9
DriverHeaven Newbie
 
Join Date: Oct 2002
Location: Italy
Posts: 6
Axel Foley is on a distinguished road

arrow

Quote:
In this guide I will cover each of these aspects starting with converting binary to decimal and visa versa. In subnet masking you work with a series of 4 bytes each byte separated by a decimal. This makes up your IP Address. Remember 1 bit = 8 bytes. So each Address contains 8 bytes or 4 bits.
Nice job, just a couple of things:

1. The beginning of the article, which I quoted above, confuses bits and bytes (1 byte=8 bits).

2. An IP address is 4 bytes (32 bits).

A beginner would get confused by reading the rest of the article if these two simple things aren't correctly explained.

Anyway good job Greg, keep it up.
Axel Foley is offline   Reply With Quote
Old Sep 28, 2004, 05:35 PM   #10
I = Greatest Dood
 
GutterPunk's Avatar
 
Join Date: Nov 2003
Location: PuNk
Posts: 5,854
GutterPunk will become famous soon enough

ooops lol.... 4 bytes or 32 bits... i didnt really get them confused just messed up lol thx for pointing that out
GutterPunk is offline   Reply With Quote
Old Sep 28, 2004, 08:16 PM   #11
BWX
watching 1080i
 
BWX's Avatar
 
Join Date: Nov 2002
Location: April 13th 2029
Posts: 19,432
BWX will become famous soon enough
System Specs

Wow, nice guide/ info.

...will have to paste it into a text doc and study it, lots of info there.
BWX is offline   Reply With Quote
Old Sep 28, 2004, 08:32 PM   #12
DriverHeaven Junior Member
 
Join Date: Jun 2002
Posts: 88
kbleft is on a distinguished road

Also, the conversion between binary and decimal is not explained correctly at all. When discussing conversion from binary to decimal, the article has a table on the first page where the values of the binary digits are converted to decimal numbers 0 through 7 and then those numbers are squared. For example, the first line of the table states 1*7^2=128. This explanation is totally wrong.

Each binary digit represents a power of two. The digits correspond to the following powers of two from left to right: 7 6 5 4 3 2 1 0. Thus, on the lefthand side, the digit represents a possible increment of 2^7 or 128. Likewise, the second digit from the left represents a possible increment of 2^6 or 64, and so on. The digit on the right represents a possible increment of 2^0 or 1. The values of binary digits can be either 0 or 1. Accordingly, for the first digit on the lefthand side, a value of 1 represents an increment of 128, while a value of 0 represents no increment of 128. Thus, the proper expression for the decimal value of the Jth digit is either (0*2^J) or (1*2^J). It is never, ever, 1*7^2.
kbleft is offline   Reply With Quote
Old Sep 28, 2004, 08:35 PM   #13
Styleless Wonder
 
No_Style's Avatar
 
Join Date: Jun 2002
Location: Ottawa, Ontario
Posts: 6,049
No_Style is on a distinguished road

Quote:
Originally Posted by GutterPunk
they are illegal because you cannot use them for an actual network

and thanks for the comments i worked pretty hard on this puppy
I would have said "unusable" or "reserved" instead of "illegal" because it makes it sound like some kind of crime if you do. You can use the first network on a VLSM/CIDR network though or when you enable "ip subnet zero" on a router. With IOS version 12 and up its enabled by default. What semester of CISCO are you at? As you learn more and more, you'll realize how much the Internet was based on a foundation of poor planning.

Again, good work on the whole run down of it

P.S - Here's a nice document for those who want a nice charts relating to subnetting from Cisco! It will compliment Greg's work really really nicely!

Last edited by No_Style; Sep 28, 2004 at 08:44 PM.
No_Style is offline   Reply With Quote
Old Sep 28, 2004, 10:00 PM   #14
VETUS INFLATIO
 
Falstaff's Avatar
 
Join Date: Sep 2002
Location: Red Lodge UK
Posts: 15,720
Falstaff has a spectacular aura aboutFalstaff has a spectacular aura aboutFalstaff has a spectacular aura about

I know it sounds cheezy but I used the calculator in windows accessories to do the conversions.
Falstaff is offline   Reply With Quote
Old Sep 28, 2004, 10:51 PM   #15
I = Greatest Dood
 
GutterPunk's Avatar
 
Join Date: Nov 2003
Location: PuNk
Posts: 5,854
GutterPunk will become famous soon enough

Quote:
Originally Posted by kbleft
Also, the conversion between binary and decimal is not explained correctly at all. When discussing conversion from binary to decimal, the article has a table on the first page where the values of the binary digits are converted to decimal numbers 0 through 7 and then those numbers are squared. For example, the first line of the table states 1*7^2=128. This explanation is totally wrong.

Each binary digit represents a power of two. The digits correspond to the following powers of two from left to right: 7 6 5 4 3 2 1 0. Thus, on the lefthand side, the digit represents a possible increment of 2^7 or 128. Likewise, the second digit from the left represents a possible increment of 2^6 or 64, and so on. The digit on the right represents a possible increment of 2^0 or 1. The values of binary digits can be either 0 or 1. Accordingly, for the first digit on the lefthand side, a value of 1 represents an increment of 128, while a value of 0 represents no increment of 128. Thus, the proper expression for the decimal value of the Jth digit is either (0*2^J) or (1*2^J). It is never, ever, 1*7^2.
Wow I mustve mixed it up good call, as you are right... i dunno what i was thinking good thing i showed both ways... but I was thinking i had someone try to teach it to me that way thanks will be fixed
GutterPunk is offline   Reply With Quote
Old Sep 29, 2004, 02:18 AM   #16
VETUS INFLATIO
 
Falstaff's Avatar
 
Join Date: Sep 2002
Location: Red Lodge UK
Posts: 15,720
Falstaff has a spectacular aura aboutFalstaff has a spectacular aura aboutFalstaff has a spectacular aura about

You put so much work into that Greg, and you ignored your women, tsk tsk....
more for me, woo hoo
Falstaff is offline   Reply With Quote
Old Sep 29, 2004, 10:19 AM   #17
I = Greatest Dood
 
GutterPunk's Avatar
 
Join Date: Nov 2003
Location: PuNk
Posts: 5,854
GutterPunk will become famous soon enough

I proof read it so many times cant believe i didnt catch those
GutterPunk is offline   Reply With Quote
Old Sep 29, 2004, 10:42 AM   #18
tek
F*&k The Police
 
tek's Avatar
 
Join Date: May 2003
Location: Boston, US
Posts: 2,103
tek is on a distinguished road

I'm currently in a Cisco class, and we learned about all this stuff (binary to decimal, etc) in Module 1 (chapter 1). Pretty simple stuff... just use the Windows Calculator... lol
tek is offline   Reply With Quote
Old Sep 29, 2004, 12:32 PM   #19
I = Greatest Dood
 
GutterPunk's Avatar
 
Join Date: Nov 2003
Location: PuNk
Posts: 5,854
GutterPunk will become famous soon enough

the conversions are easy the stupid address space assigning sucks... it took me awhile to get the hang of it, but once you understand it, your golden
GutterPunk is offline   Reply With Quote
Old Sep 29, 2004, 01:12 PM   #20
The quest continues
 
Chaos's Avatar
 
Join Date: May 2002
Location: Nova Scotia
Posts: 4,432
Chaos is on a distinguished road
System Specs

excellent guide GutterPunk, takes me back to TCP/IP classes of my MCSE training (shudders)
Chaos is online now   Reply With Quote
Old Sep 30, 2004, 12:50 AM   #21
VETUS INFLATIO
 
Falstaff's Avatar
 
Join Date: Sep 2002
Location: Red Lodge UK
Posts: 15,720
Falstaff has a spectacular aura aboutFalstaff has a spectacular aura aboutFalstaff has a spectacular aura about

now you got time for women greg....lol
Falstaff is offline   Reply With Quote
Old Sep 30, 2004, 11:01 AM   #22
I = Greatest Dood
 
GutterPunk's Avatar
 
Join Date: Nov 2003
Location: PuNk
Posts: 5,854
GutterPunk will become famous soon enough

Lol, I always have time for a good woman
GutterPunk is offline   Reply With Quote
Old Sep 30, 2004, 06:58 PM   #23
DriverHeaven Junior Member
 
Join Date: Oct 2004
Location: California
Posts: 60
SiikMiike is on a distinguished road

=æ

do you guys really read all this?
SiikMiike is offline   Reply With Quote
Old Sep 30, 2004, 09:10 PM   #24
BWX
watching 1080i
 
BWX's Avatar
 
Join Date: Nov 2002
Location: April 13th 2029
Posts: 19,432
BWX will become famous soon enough
System Specs

Quote:
Originally Posted by SiikMiike
do you guys really read all this?



DUDE-- you can't use a sig that big.. read the rules.
BWX is offline   Reply With Quote
Old Aug 27, 2006, 01:56 PM   #25
DriverHeaven Addict
 
Join Date: Aug 2006
Posts: 257
mtsaint is on a distinguished road

wow...im going to eat some cheetoes now
mtsaint is offline   Reply With Quote