LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-19-2009, 02:37 PM   #1
networkingnub
LQ Newbie
 
Registered: Jul 2009
Posts: 16

Rep: Reputation: 0
Subnetting tough time seeing it. Class B example.


I am kinda new to the whole subnetting thing. I am learning and as such came across this comment:

The binary arithmetic involved in using CIDR block addressing is painful. It is much easier to start with another private network address space, say 172.16.0.0, and use the third byte to represent internal subnets: 172.16.1.0, 172.16.2.0, 172.16.3.0, and so on. Now you use the default ( or "classful") subnet mask of 255.255.255.0 (or /24) and each subnet includes 254 host addresses. See how much easier it is to start with a Class B (/16) network, and split it into 254 Class Cs (/24)? Perhaps the designers of TCP/IP weren't so dumb after all when they chose to use byte boundaries in the initial network addressing scheme

I am not sure I see how it is easier using the numbers with the example above.
 
Old 07-19-2009, 03:29 PM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
It isn't really any easier, just depends on which system you find easier. If you work with IP a lot its best to get used to translating between both systems as different kit uses different notation in different circumstances.
 
Old 07-19-2009, 04:39 PM   #3
networkingnub
LQ Newbie
 
Registered: Jul 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by baldy3105 View Post
It isn't really any easier, just depends on which system you find easier. If you work with IP a lot its best to get used to translating between both systems as different kit uses different notation in different circumstances.
Thanks I went to this site to start on my subnetting education; did the binary stuff etc etc but got stuck on the above paragraph as to why it was easier for the OP. Link is here http://www.watchguard.com/infocenter...ial/135191.asp The pargraph is located right after the 192.x.x.x table on the site.
 
Old 07-19-2009, 10:13 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you for example start with the private network 172.16.0.0, and use the third octet for subnetting: E.G.
172.16.10.0/255.255.255.0, 172.16.11.0/255.255.255.0, 172.16.12.0/255.255.255.0; you don't need to do any math.

Now compare if you use the network 172.16.144.0/36 and you subnet it into 12 subnets. The first 4 bits of the 3rd octet are added to the network address part.
You need to add the network part of the third octet (144) to the host part of the third octet to obtain the final IP address for a host. The third is a combination of the subnet address and the upper bits of the host address. No math involved to express it in dotted decimal notation. Just look at the 3rd octet to see which subnet it is.

If you use byte boundaries, then you only need to change the third octet to designate a different subnet. Otherwise, to look at an IP address, you need to use the netmask to see which subnet it belongs to. Not difficult, but you don't see it at a glance.

If you don't need more than 254 hosts per subnet, using the entire third octet for subnetting makes it extremely easy to enter routes, etc. without having to do any math.

Last edited by jschiwal; 07-19-2009 at 10:16 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tough (to me) c++ questions about pointer to class object reference and more parv Programming 6 01-11-2008 09:26 PM
having a super tough time getting my tv tuner to work WickedAwsome Linux - Hardware 5 06-16-2006 04:55 PM
subnetting vs Class address......concept not clear. b0nd Linux - Networking 8 01-18-2006 06:43 AM
Having a tough time with K-shell pipeline pjz Programming 4 03-24-2005 03:05 PM
I'm having a tough time communcating through a serial port using java. Cobra133 Linux - Software 1 06-28-2004 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration