Académique Documents
Professionnel Documents
Culture Documents
PURPOSE OF SUBNETTING
BEST PRACTICE
Suppose
Therefore,
IP Address Block
group
of IP addresses
1 block = 1 subnet = 1 network
Network Address
representative
Broadcast Address
the
last address in a
block
always odd number
Host Address
usable
ip address
For instance
192.168.1.0 - network address
192.168.1.1
.
.
host addresses
.
192.168.1.254
192.168.1.255 - broadcast address
/ - Prefix Length
192.168.1.0/24 - refers to the network bits and
the number of IP addresses that can be created.
CIDR
CLASSLESS
INTER-DOMAIN ROUTING
Pronounced as CIDER
CIDR is a slash notation of subnet mask. CIDR tells us
number of on bits in a network address.
Gets its name from the notion that it ignores the
traditional A,B,C class designations and sets the
network-host ID boundary wherever it wants to, in a
way that simplifies routing across the resulting IP
address space.
SUBNETTING
A
Classful vs Classless
Classful
192.168.1.0
/24
255.255.255.0
Classless
192.168.1.0
/29
255.255.248.0
MAGIC
NUMBER
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Exercises
Given
Given
Given
CREATING MULTIPLE
SUBNETS IN A
NETWORK
BORROWED BITS
When
Creating Subnets
Number
Example
2(where h is
: 192.168.1.0/28
Number
Number
of host bits = 32 28 = 4
Number
Number
2 = 16 2 =
14
Therefore,
Subnet
Mask = 255.255.255.240
Another solution
/28
=
11111111.11111111.11111111.1
1110000
Remaining zeros = 4 = 2 4 2 =
16 2 = 14 useable host
addresses
Practice Exercise#1
Your
Answer:
172.20.0.0/16
Practice Exercise 2
Your
Answer:
Because
This
Therefore,
CALCULATING IP
ADDRESS RANGES
Example
Your
Answer:
172.20.0.0/16
Solution:
Step
Step
1
9
17
25
2
10
18
26
3
11
19
27
4
12
20
28
5
13
21
29
6
14
22
30
7
15
23
31
8
16
24
32
Step
Step
4 - Counting by 4 (the block size) in the interesting octet (the third octet)
allows you to calculate the remaining subnets:
172.16.0.0
172.16.4.0
172.16.8.0
.
.
172.16.252.0
64
32
16
In
the third octet, 11111100, the last 1 falls under the value of 4,
then you add 2 + 1 to get the BROADCAST ADDRESS
2+
172.20.0.0
IP Address Range
Subnet Address
Broadcast Address
Usable IP Address
172.16.0.0
172.16.3.255
172.16.0.1 172.16.3.254
172.16.4.0
172.16.7.255
172.16.4.1 172.16.7.254
172.16.8.0
172.16.11.255
172.16.8.1
172.16.11.254
172.16.12.0
172.16.15.255
172.16.12.1
172.16.15.254
172.16.248.0
172.16.251.255
172.16.248.1
172.16.251.254
172.16.252.0
172.16.255.255
172.16.252.1
172.16.255.254
Practice Exercise # 2
Determine
ANSWER
SUBNE
T No.
SUBNET
ADDRESS
BROADCAST
ADDRESS
USEABLE HOST
ADDRESSES
172.20.0.0
172.20.15.255
172.20.0.1 172.20.15.254
172.20.16.0
172.20.31.255
172.20.16.1
172.20.31.254
172.20.32.0
172.20.47.255
172.20.32.1
172.20.47.254
172.20.48.0
172.20.63.255
172.20.48.1
172.20.63.254
172.20.64.0
172.20.79.255
172.20.64.1
172.20.79.254
172.20.80.0
172.20.95.255
172.20.80.1
172.20.95.254
172.20.112.0
172.20.127.255
172.20.96.1
172.20.111.254
172.20.112.1
ANSWER
SUBNET NO
SUBNET
ADDRESS
BROADCAST
ADDRESS
USEABLE HOST
ADDRESSES
172.20.128.0
172.20.143.255
172.20.128.1
172.20.143.254
10
172.20.144.0
172.20.159.255
172.20.144.1
172.20.159.254
11
172.20.160.0
172.20.175.255
172.20.160.1
172.20.175.254
12
172.20.176.0
172.20.191.255
172.20.176.1
172.20.191.254
13
172.20.192.0
172.20.207.255
172.20.192.1
172.20.207.254
172.20.224.0
172.20.239.255
172.20.208.1
172.20.223.254
172.20.224.1
IN SUMMARY
How
VLSM
VLSM
is
EXAMPLE
HOW TO
If 2H 2 = Number of
valid hosts per subnet
Then
2H 2 50
Therefore
for H)
You
32-26
= 6 hosts bits
Started
Now
All
NN
00000000
=
01000000 =
10000000 =
11000000 =
.0
.64
.128
.192
B = 27 hosts
Determine the number of H bits needed
for this network:
2H 2 27
H=5
You
But
Because
10000000
10100000
Converted
follows:
10000000
=.128
10100000
=.160
Each
You
Pick
Use
C and Network D = 12
hosts each
Determine the number of H bits
needed for these networks:
2H 2 12
H=4
You
For
Where:
Because
10110000
Converted to decimal, these subnets
are as follows:
10100000 = .160
10110000 = .176
These
11111111.11111111.11111111.11110000
or
255.255.255.240
or
/28
Pick one of these new subsubnets for Network C and one for
Network D
You
But
you need only 2 H bits, not 6. Therefore, you are left with
00NNNN00
where
00000000
= .0/30
00000100
= .4/30
00001000
= .8/30