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

Notices

Reply
 
LinkBack Thread Tools Display Modes
Old Sep 28, 2004, 12:22 PM   #1 (permalink)
Zardon
Burned
 
Zardon's Avatar
 
Join Date: May 2002
Posts: 29,303
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 (permalink)
Gardinen
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 (permalink)
Vidmaster23
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.
__________________
My System:
Athlon 51-FX @ 2.2ghz
Asus SK8N
1 gig of PC3200 Mushkin DDR
Radeon 9700 Pro
Twin 80gig 7200RPM HD's
Vidmaster23 is offline   Reply With Quote
Old Sep 28, 2004, 02:22 PM   #4 (permalink)
No_Style
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.
__________________
"The Best Style Is No Style"
Specifications Here


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 (permalink)
germanjulian
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...
__________________
/|\ Asus P5W DH Deluxe, Intel C2D E6600, 2GB Corsair XMS2-6400C4 DDR2, E-VGA GeForce 7800 GT, Creative X-Fi Extreme Music, 500GB Seagate 7200.10 SATA, Lian Li PC-V1100 Aluminum Case Black, etc. http://germanjulian.com /|\
germanjulian is offline   Reply With Quote
Old Sep 28, 2004, 03:34 PM   #6 (permalink)
Falstaff
VETUS INFLATIO
 
Falstaff's Avatar
 
Join Date: Sep 2002
Location: Red Lodge UK
Posts: 15,649
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 (permalink)
drakesteakn
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 (permalink)
GutterPunk
I = Greatest Dood
 
GutterPunk's Avatar
 
Join Date: Nov 2003
Location: PuNk
Posts: 5,831
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
__________________
Rock On \m/ Thank you Mousey for the Sig!
---------------

Intel Core2Duo E6660 (3.4GHZ) ~ Tuniq Tower 120 ~ Enermax Galaxy 1000W ~ Corsair Dominator @ 1090MHZ 5-5-5-15 (OCZ XTC Modded Cooler)~ EVGA 8800GTX W/ HR-03 Plus 120MM ~ Asus DVD-RW LiteScribe ~ LG DVD-RW ~ Corsair Voyager 2GB ReadyBoost Drive ~ Vantec Nexus Fan Controller ~ ThermalTake Armor 25CM fan ~

.-'*'-. GutterPunk's Band to check out .-'*'-. Genre = Ska.-'*'-. Band = Big D and the Kids Table.-'*'-.
GutterPunk is offline   Reply With Quote
Old Sep 28, 2004, 05:21 PM   #9 (permalink)
Axel Foley
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 / Visiva Group
Axel Foley is offline   Reply With Quote
Old Sep 28, 2004, 05:35 PM   #10 (permalink)
GutterPunk
I = Greatest Dood
 
GutterPunk's Avatar
 
Join Date: Nov 2003
Location: PuNk
Posts: 5,831
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
__________________
Rock On \m/ Thank you Mousey for the Sig!
---------------

Intel Core2Duo E6660 (3.4GHZ) ~ Tuniq Tower 120 ~ Enermax Galaxy 1000W ~ Corsair Dominator @ 1090MHZ 5-5-5-15 (OCZ XTC Modded Cooler)~ EVGA 8800GTX W/ HR-03 Plus 120MM ~ Asus DVD-RW LiteScribe ~ LG DVD-RW ~ Corsair Voyager 2GB ReadyBoost Drive ~ Vantec Nexus Fan Controller ~ ThermalTake Armor 25CM fan ~

.-'*'-. GutterPunk's Band to check out .-'*'-. Genre = Ska.-'*'-. Band = Big D and the Kids Table.-'*'-.
GutterPunk is offline   Reply With Quote
Old Sep 28, 2004, 08:16 PM   #11 (permalink)
BWX
watching 1080i
 
BWX's Avatar
 
Join Date: Nov 2002
Location: April 13th 2029
Posts: 19,802
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.
__________________
rig
BWX is offline   Reply With Quote
Old Sep 28, 2004, 08:32 PM   #12 (permalink)
kbleft
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 (permalink)
No_Style
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!
__________________
"The Best Style Is No Style"
Specifications Here


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 (permalink)
Falstaff
VETUS INFLATIO
 
Falstaff's Avatar
 
Join Date: Sep 2002
Location: Red Lodge UK
Posts: 15,649
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 (permalink)
GutterPunk
I = Greatest Dood
 
GutterPunk's Avatar
 
Join Date: Nov 2003
Location: PuNk
Posts: 5,831
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
__________________
Rock On \m/ Thank you Mousey for the Sig!
---------------

Intel Core2Duo E6660 (3.4GHZ) ~ Tuniq Tower 120 ~ Enermax Galaxy 1000W ~ Corsair Dominator @ 1090MHZ 5-5-5-15 (OCZ XTC Modded Cooler)~ EVGA 8800GTX W/ HR-03 Plus 120MM ~ Asus DVD-RW LiteScribe ~ LG DVD-RW ~ Corsair Voyager 2GB ReadyBoost Drive ~ Vantec Nexus Fan Controller ~ ThermalTake Armor 25CM fan ~

.-'*'-. GutterPunk's Band to check out .-'*'-. Genre = Ska.-'*'-. Band = Big D and the Kids Table.-'*'-.
GutterPunk is offline   Reply With Quote
Reply

Bookmarks

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 On
Forum Jump