Discussion Locked

Pls help me About Subnetting

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Dear Brothers i want to know easy and detailed notes or guides for Custom Subnetting. I also want to know that what r the differences between CIDR and normal subnetting . What is CIDR and how to use it. Pls reply me as soon as possible.

8 replies

by tomsal

(Classless Inter-Domain Routing) A method for creating additional addresses on the Internet, which are given to Internet service providers (ISPs) that in turn delegate them to their customers. CIDR reduces the burden on Internet routers by aggregating routes so that one IP address represents thousands of addresses that are serviced by a major backbone provider. All packets sent to any of those addresses are sent to the ISP such as MCI or Sprint. In 1990, there were about 2,000 routes on the Internet. Five years later, there were more than 30,000. Without CIDR, the routers would not have been able to support the increasing number of Internet sites.Instead of the fixed 8, 16 and 24 bits used in the Class A-B-C network IDs, CIDR uses a variable network ID from 13 to 27 bits. For example, the CIDR address 204.12.01.42/24 indicates that the first 24 bits are used for network ID.

source: www.techweb.com/encyclopedia

Techweb is the best source (in my opinion) for easy to understand, yet technically accurate definitions of IT related terms. I use it a lot.

As far as how to subnet, I have some old hand written notes from a couple years ago that I will try to fit into the limited comment space below.

Stay tuned....

by tomsal

Class C EXAMPLE:

IP 192.168.24.0
Subnet Mask 255.255.255.0

A class C mask breaks down into Network and Host bits as follows:

11111111.11111111.11111111.[000]00000

1) Now I want to borrow 3 BITS from the HOST ID (the bits I am borrowing are bracketed above), to result in the subnet 255.255.255.224. Now my mask looks like this:

11111111.11111111.11111111./111/00000

The bits surrounded by / are the subnet ID bits.

2) My number of Network ID's Provided is 6, because (2^3)-2=6.

We can have two (2) possible combos, 1 or 0, and we are using 3 bits so that's how we get (2^3). We then subtract 2 because the combos are invalid (you can't have all 1's or all 0's).

3) Our IP addresses are now restructured.

*Add 1 to eachfor the host (0001)

192.168.24.33 11000000.10101000.00011000.001 (32)
192.168.24.65 11000000.10101000.00011000.010 (64)
192.168.24.97 11000000.10101000.00011000.011 (96)
192.168.24.129 11000000.10101000.00011000.100(128)
192.168.24.161 11000000.10101000.00011000.101(160)
192.168.24.193 11000000.10101000.00011000.110(192)

Done. I just custom subnetted a class C address to provide for 6 subnet addresses. Each of the six above would be the first host address of each subnet.

Hope that helps.

by tomsal

Subnet calcs are good, I use them myself. However, I always think that you shouldn't use machines to spit you an answer/calculation if at first you don't know how to arrive to that answer itself manually. With very complex calculations being the only exception.

But anyway www.solarwinds.net has a great subnet calc, my favorite. Simple, to the point and FREEWARE! :)

by tom.greendyk

Good explanation above...

For practical purposes, you might want to use a subnet calculator, which does all the work for you! There are many free ones available for download.

You just plug in an IP address, how many subnets you need, how many nodes on each subnet and voila! It tells you what your subnet/CIDR mask should be for each subnet.

In my opinion, the best one is from Net3 Group -- I tried to find a link to put here, but can't seem to locate one.

If you e-mail me privately, I'll e-mail you with it (448K). It's free and can be freely distributed.

Tom G

by michaele.

Cisco tech web site has these VERY detailed technical notes (link may wrap):

http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/index.htm

Specifically, the subnetting theory is contained in this chapter on Internet Protocols:

http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/ip.htm

Also, from this page: http://www.cisco.com/warp/public/759/ipj_2-4/ipj_2-4_oneb.html

There is this description of CIDR:

CIDR
Classless Inter-Domain Routing or CIDR (RFCs 1518 and 1519; September 1993) was introduced to improve both routing scalability and address space utilization in the Internet. By eliminating the notion of "network classes," CIDR allows for a better match between address requirements and address allocation. This results in expansion of the scope of hierarchical routing, which in turn improves scaling properties of the Internet routing system. CIDR has proven to be the palliative that has enabled the Internet to continue functioning while growth continues.

This all helped me with my recent quest to learn about subnetting, I hope it helps you also.

Cheers,

Michael Earley
Brisbane, Australia

by deadly ernest

Tom has given you a bloody good explaination. However, if you are setting up a subnet for a business then you are best to give yourself plenty of expansion and use either the reserved class A (10.x.x.x) or the Class B (172.1.x.x) address ranges. These have the added advantage that if any traffic leaks out to the Internet it will get killed at the first router it reaches.

The IP addresses 10.x.x.x, 172.1.x.x, 192.168.0.x are reserved for internal use only and Internet routers and PCs are set to ignore them.

If your network is connected to the Internet you will have to have a gateway set up to share the connection, thus having it provide Network Address Translation services and using one of these ranges adds security. If it is not connected it does not matter what addresses you use.

I tend to use the 10.x.x.x as it allows me to easily break up sub-nets based on operational and geographical groupings without needing a subnet calculator for most networks. Also give room fro expansion.

This discussion is closed to new replies.