Subnetting Itexampractice
Subnetting Itexampractice
net
SUBNETTING
itexampractice.net
Basic terms
IP address - identifies a device connected to the network. It is a 32-bit address, 4 octets.
Subnet mask - identifies which part of an IP address is reserved for the network and which part is to be
used for a host or hosts.
IPv4
192.168.1.7 /24
Reserved for the network host subnet mask
Classes of IP addresses:
Number of Number of
Class IP address range Network mask Prefix
networks hosts
A 1. -127 255.0.0.0 /8 125 16,777,214
B 128. -191 255.255.0.0 /16 16,382 65,534
C 192. -223 255.255.255.0 /24 2,097,150 254
D 224. -239 Multicast addresses
E 240. -254 Restricted / Experimental / Do not use
Private IP addresses:
A: 10.0.0.0 - 10.255.255.255
B: 172.16.0.0 - 172.31.255.255
C: 192.168.0.0 - 192.168.255.255
CIDR
Classless Inter-Domain Routing – uses a slash followed by a number, called the prefix.
Full table:
https://www.ripe.net/support/training/material/LIR-Training-Course/LIR-Training-Handbook-Appendices/CIDR-Chart-IPv4.pdf
itexampractice.net
Examples
215.20.5.0 /24
We need 5 networks
128 64 32 16 8 4 2 1
0 0 0 0 0 1 0 1
5= 00000101
2. Convert your original mask to binary, find how many bits you need and find
the increment
255.255.255.0 =
11111111.11111111.11111111.00000000
5= 00000101
11111111.11111111.11111111.11100000
255.255.255.224
Our increment
32
itexampractice.net
3. Find networks
itexampractice.net
215.20.5.0 /24
We need 30 hosts
1. Convert to binary the number of networks you need
128 64 32 16 8 4 2 1
0 0 0 1 1 1 1 0
30 = 00011110
2. Convert your original mask to binary, find how many bits you need and find
the increment
255.255.255.0 =
11111111.11111111.11111111.00000000
11111111.11111111.11111111.11100000
11111111.11111111.11111111.11100000
255.255.255.224
Our increment
32
itexampractice.net
3. Find networks
itexampractice.net
EXCEPTIONS
Network values:
2,4,8,16,32,64,128
Host values:
3,7,15,31,,63,127
To keep it simple:
VLSM
Variable Length Subnet Masking allows you to divide an IP address (a network address) to subnets of
different sizes, unlike same-size subnetting.
Examples:
Address: 192.168.1.0/24
Amount of Network
Hosts Address/Mask
38 192.168.1.0/26
11 192.168.1.64/28
4 192.168.1.80/29
Address: 200.10.10.0/24
Amount of Network
Hosts Address/Mask
100 200.10.10.0/25
21 200.10.10.128/27
2 200.10.10.160/30
2 200.10.10.164/30
2 200.10.10.168/30
Address: 150.150.0.0/16
Amount of Network
Hosts Address/Mask
280 150.150.0.0/23
111 150.150.2.0/25
22 150.150.2.128/27
itexampractice.net
Address: 10.0.0.0/8
Amount of Network
Hosts Address/Mask
8749 10.0.0.0/18
2333 10.0.64.0/20
211 10.0.80.0/24
22 10.0.81.0/27
Address: 120.120.120.0/24
Amount of Network
Hosts Address/Mask
109 120.120.120.0/25
33 120.120.120.128/26
2 120.120.120.192/30
2 120.120.120.196/30
2 120.120.120.200/30
2 120.120.120.204/30
2 120.120.120.208/30
Address: 172.172.0.0/16
Amount of Network
Hosts Address/Mask
987 172.172.0.0/22
311 172.172.4.0/23
2 172.172.6.0/30
itexampractice.net
LINKS
Subnetting calculators:
www.subnet-calculator.com
www.jodies.de/ipcalc
VLSM:
www.vlsm-calc.net
itexampractice.net
TIPS
Take your time!
Play with SIMPLE examples first
Master ALL basics
Do subnetting 1000 times – you will learn it ;-)
Want to take the CCNA / MTA exam? Make sure you can answer in LESS than 5
seconds: ‘What is the broadcast address for a host 192.168.76.4 /29’
Use online subnetting calculators and tests
And again… TAKE YOUR TIME!