Professional Documents
Culture Documents
Networking Binder
Networking Binder
Networking Binder
21 = 2 29 = 512
22 = 4 210 = 1,024
23 = 8 211 = 2,048
24 = 16 212 = 4,096
25 = 32 213 = 8,192
26 = 64 214 = 16,384
27 = 128 215 = 32,768
28 = 256 216 = 65,536
128 64 32 16 8 4 2 1
1 1 1 1 1 1 1 1
Binary Decimal
00000000 0
10000000 128
11000000 192
11100000 224
11110000 240
11111000 248
11111100 252
SUBNET CALCUALTION TABLE (2 X )
Binary (N.N.N.H) Decimal CIDR # Subnets (2x) Block Size (2y) # Hosts (2y - 2)
N.N.N.00000000 255.255.255.0 /24 20 = 1 28 = 256 28 – 2 = 254
N.N.N.10000000 255.255.255.128 /25 21 = 2 27 = 128 27 – 2 = 126
N.N.N.11000000 255.255.255.192 /26 22 = 4 26 = 64 26 – 2 = 62
N.N.N.11100000 255.255.255.224 /27 23 = 8 25 = 32 25 – 2 = 30
N.N.N.11110000 255.255.255.240 /28 24 = 16 24 = 16 24 – 2 = 14
N.N.N.11111000 255.255.255.248 /29 25 = 32 23 = 8 23 – 2 = 6
N.N.N.11111100 255.255.255.252 /30 26 = 64 22 = 4 22 – 2 = 2
Binary (N.N.H.H) Decimal CIDR # Subnets (2x) Block Size (2y) # Hosts (2y - 2)
N.N.00000000.00000000 255.255.0.0 /16 20 = 1 216 = 65,536 216 – 2 = 65,534
N.N.10000000.00000000 255.255.128.0 /17 21 = 2 215 = 32,768 215 – 2 = 32,766
N.N.11000000.00000000 255.255.192.0 /18 22 = 4 214 = 16,384 214 – 2 = 1,.382
N.N.11100000.00000000 255.255.224.0 /19 23 = 8 213 = 8,192 213 – 2 = 8,190
N.N.11110000.00000000 255.255.240.0 /20 24 = 16 212 = 4,096 212 – 2 = 4,094
N.N.11111000.00000000 255.255.248.0 /21 25 = 32 211 = 2,048 211 - 2 = 2,046
N.N.11111100.00000000 255.255.252.0 /22 26 = 64 210 = 1,024 210 – 2 = 1,022
N.N.11111110.00000000 255.255.254.0 /23 27 = 128 29 = 512 29 – 2 = 510
N.N.11111111.00000000 255.255.255.0 /24 28 = 256 28 = 256 28 – 2 = 254
N.N.11111111.10000000 255.255.255.128 /25 29 = 512 27 = 128 27 – 2 = 126
N.N.11111111.11000000 255.255.255.192 /26 210 = 1,024 26 = 64 26 – 2 = 62
N.N.11111111.11100000 255.255.255.224 /27 211 = 2,048 25 = 32 25 – 2 = 30
N.N.11111111.11110000 255.255.255.240 /28 212 = 4,096 24 = 16 24 – 2 = 14
N.N.11111111.11111000 255.255.255.248 /29 213 = 8,192 23 = 8 23 – 2 = 6
N.N.11111111.11111100 255.255.255.252 /30 214 = 16,384 22 = 4 22 – 2 = 2
CLASS A POSSIBLE SUBNET MASKS
x y y
Binary (N.H.H.H) Decimal CIDR # Subnets (2 ) Block Size (2 ) # Hosts (2 - 2)
0 22 22
N.00000000.00000000.00000000 255.0.0.0 /8 2 =1 2 = 16,777,216 2 – 2 = 16,777,214
1 23 23
N.10000000.00000000.00000000 255.128.0.0 /9 2 =2 2 = 8,388,608 2 – 2 = 8,388,606
2 22 22
N.11000000.00000000.00000000 255.192.0.0 /10 2 =4 2 = 4,194,304 2 – 2 = 4,194,302
3 21 21
N.11100000.00000000.00000000 255.224.0.0 /11 2 =8 2 = 2,097,152 2 – 2 = 2,097,150
4 20 20
N.11110000.00000000.00000000 255.240.0.0 /12 2 = 16 2 = 1,048,576 2 – 2 = 1,048,574
5 19 19
N.11111000.00000000.00000000 255.248.0.0 /13 2 = 32 2 = 524,288 2 – 2 = 524,286
6 18 18
N.11111100.00000000.00000000 255.252.0.0 /14 2 = 64 2 = 262,144 2 – 2 = 262,142
7 17 17
N.11111110.00000000.00000000 255.254.0.0 /15 2 = 128 2 = 131,072 2 – 2 = 131,070
8 16 16
N.11111111.00000000.00000000 255.255.0.0 /16 2 = 256 2 = 65,536 2 – 2 = 65,534
9 15 15
N.11111111.10000000.00000000 255.255.128.0 /17 2 = 512 2 = 32,768 2 – 2 = 32,766
10 14 14
N.11111111.11000000.00000000 255.255.192.0 /18 2 = 1,024 2 = 16,384 2 – 2 = 1,.382
11 13 13
N.11111111.11100000.00000000 255.255.224.0 /19 2 = 2,048 2 = 8,192 2 – 2 = 8,190
12 12 12
N.11111111.11110000.00000000 255.255.240.0 /20 2 = 4,096 2 = 4,096 2 – 2 = 4,094
13 11 11
N.11111111.11111000.00000000 255.255.248.0 /21 2 = 8,192 2 = 2,048 2 - 2 = 2,046
14 10 10
N.11111111.11111100.00000000 255.255.252.0 /22 2 = 16,384 2 = 1,024 2 – 2 = 1,022
15 9 9
N.11111111.11111110.00000000 255.255.254.0 /23 2 = 32,768 2 = 512 2 – 2 = 510
16 8 8
N.11111111.11111111.00000000 255.255.255.0 /24 2 = 65,536 2 = 256 2 – 2 = 254
17 7 7
N.11111111.11111111.10000000 255.255.255.128 /25 2 = 131,072 2 = 128 2 – 2 = 126
18 6 6
N.11111111.11111111.11000000 255.255.255.192 /26 2 = 262,144 2 = 64 2 – 2 = 62
19 5 5
N.11111111.11111111.11100000 255.255.255.224 /27 2 = 524,288 2 = 32 2 – 2 = 30
20 4 4
N.11111111.11111111.11110000 255.255.255.240 /28 2 = 1,048,576 2 = 16 2 – 2 = 14
21 3 3
N.11111111.11111111.11111000 255.255.255.248 /29 2 = 2,097,152 2 =8 2 –2=6
22 2 2
N.11111111.11111111.11111100 255.255.255.252 /30 2 = 4,194,304 2 =4 2 –2=2
Understanding IPv4 Addresses
• An IP Address is a logical address used in order to
uniquely identify a device on an IP network.
• It’s a Network Layer Address
• There are Two Versions:
– IP version 4 (IPv4)
– IP version 6 (IPv6)
• This course focuses on IPv4 Addresses
Understanding IPv4 Addresses
• Made up of 32 binary bits, which can be divided into a network portion and a
host portion with the help of a subnet mask.
– The 32 binary bits are broken into four octets (1 octet = 8 bits).
– Each octet is converted to decimal and separated by a period (dot).
– For this reason, an IP address is said to be expressed in dotted decimal format.
Understanding IPv4 Addresses
Understanding IPv4 Addresses
• Lecture Goals
– Convert Binary to Decimal
– Convert Decimal to Binary
Basic of Binary Math
• Why is it important?
– We need to know basic binary math to
perform subnetting
• Remember This
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255
What is the binary 11111111 in decimal?
128 64 32 16 8 4 2 1
Binary 1 1 1 1 1 1 1 1
Decimal 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255 Decimal
128 64 32 16 8 4 2 1
Binary 1 0 1 0 1 0 1 0
Decimal 128 + 0 + 32 + 0 + 8 + 0 + 2 + 0 = 170 Decimal
128 64 32 16 8 4 2 1
Binary 1 1 1 0 0 1 1 1
Decimal 128 + 64 + 32 + 0 + 0 + 4 + 2 + 1 = 231 Decimal
128 64 32 16 8 4 2 1
Binary 1 0 0 0 0 0 1 1
Decimal 128 + 0 + 0 + 0 + 0 + 0 + 2 + 1 = 131 Decimal
128 64 32 16 8 4 2 1
Binary 1 1 0 0 0 0 0 0 = 11000000
Decimal 128 + 64 + 0 + 0 + 0 + 0 + 0 + 0 = 192 Decimal
Start adding the numbers from left to right until you achieve the decimal amount you
are looking for!
What is 202 in binary?
128 64 32 16 8 4 2 1
Binary 1 1 0 0 1 0 1 0 = 11001010
Decimal 128 + 64 + 0 + 0 + 8 + 0 + 2 + 0 = 202 Decimal
Start adding the numbers from left to right until you achieve the decimal amount you
are looking for!
What is 54 in binary?
128 64 32 16 8 4 2 1
Binary 0 0 1 1 0 1 1 0 = 00110110
Decimal 0 + 0 + 32 + 16 + 0 + 4 + 2 + 0 = 54 Decimal
Start adding the numbers from left to right until you achieve the decimal amount you
are looking for!
What is 76 in binary?
128 64 32 16 8 4 2 1
Binary 0 1 0 0 1 1 0 0 = 01001100
Decimal 0 + 64 + 0 + 0 + 8 + 4 + 0 + 0 = 76 Decimal
Start adding the numbers from left to right until you achieve the decimal amount you
are looking for!
IP Address Conversion Process
Whether you are given an IP address in dotted decimal or binary format, follow the
respective process above for each octet one-by-one until you have completed the
process.
Note: Use your Windows calculator in Programmer mode to make the process
faster!
BINARY MATH WORKSHEET
CONVERSION CHART
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
128 64 32 16 8 4 2 1
Binary =
Decimal + + + + + + + =
128 64 32 16 8 4 2 1
Binary =
Decimal + + + + + + + =
128 64 32 16 8 4 2 1
Binary =
Decimal + + + + + + + =
128 64 32 16 8 4 2 1
Binary =
Decimal + + + + + + + =
128 64 32 16 8 4 2 1
Binary =
Decimal + + + + + + + =
6. CONVERT 163 TO BINARY
128 64 32 16 8 4 2 1
Binary =
Decimal + + + + + + + =
7. CONVERT 94 TO BINARY
128 64 32 16 8 4 2 1
Binary =
Decimal + + + + + + + =
128 64 32 16 8 4 2 1
Binary =
Decimal + + + + + + + =
192.168.98.18
01000010.11010010.11000110.11000101
BINARY MATH WORKSHEET ANSWER KEY
CONVERSION CHART
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
128 64 32 16 8 4 2 1
Binary 1 1 1 1 0 0 0 0 =
Decimal 128 + 64 + 32 + 16 + 0 + 0 + 0 + 0 = 240 Decimal
128 64 32 16 8 4 2 1
Binary 1 0 0 1 1 0 0 1 =
Decimal 128 + 0 + 0 + 16 + 8 + 0 + 0 + 1 = 153 Decimal
128 64 32 16 8 4 2 1
Binary 0 1 1 0 1 0 1 1 =
Decimal 0 + 64 + 32 + 0 + 8 + 0 + 2 + 1 = 107 Decimal
128 64 32 16 8 4 2 1
Binary 1 0 1 1 0 0 1 1 =
Decimal 128 + 0 + 32 + 16 + 0 + 0 + 2 + 1 = 179 Decimal
128 64 32 16 8 4 2 1
Binary 1 1 1 1 0 0 0 0 = 11110000 Binary
Decimal 128 + 64 + 32 + 16 + 0 + 0 + 0 + 0 =
6. CONVERT 163 TO BINARY
128 64 32 16 8 4 2 1
Binary 1 0 1 0 0 0 1 1 = 10100011 Binary
Decimal 128 + 0 + 32 + 0 + 0 + 0 + 2 + 1 =
7. CONVERT 94 TO BINARY
128 64 32 16 8 4 2 1
Binary 0 1 0 1 1 1 1 0 = 01011110 Binary
Decimal 0 + 64 + 0 + 16 + 8 + 4 + 2 + 0 =
128 64 32 16 8 4 2 1
Binary 1 1 1 0 0 0 0 1 = 11100001 Binary
Decimal 128 + 64 + 32 + 0 + 0 + 0 + 0 + 1 =
192.168.98.18
192 = 11000000
168 = 10101000
98 = 01100010
18 = 00010010
01000010.11010010.11000110.11000101
01000010 = 66
11010010 = 210
11000110 = 198
11000101 = 197
– IP Address: 9.10.40.15
– Subnet Mask: 255.0.0.0
– IP Address: 135.240.110.100
– Subnet Mask: 255.255.0.0
– IP Address: 200.200.10.5
– Subnet Mask: 255.255.255.0
CIDR Notation
• “Slash” Notation tells you how many bits are associated
with Subnet Mask
• It’s a shortcut way of telling us what the Subnet Mask is:
/8 = 11111111.00000000.00000000.00000000
/8 = 255.0.0.0
b. You need to subnet it into 16 sub-networks, how many host bits do you need to borrow?
b. You need to subnet it into 8 sub-networks, how many host bits do you need to borrow?
b. You need to subnet it into 16 sub-networks, how many host bits do you need to borrow?
24 = 16, which means we need to borrow 4 bits
b. You need to subnet it into 8 sub-networks, how many host bits do you need to borrow?
Need to borrow 3 Hosts Bits
b. You need to subnet it into 64 sub-networks, how many host bits do you need to
borrow?
a. How many host bits were borrowed to create subnets and how many subnets were
created?
b. How many host bits remain and what is the address block size per subnet?
b. You need to subnet it into 64 sub-networks, how many host bits do you need to
borrow?
26 = 64, so we need to borrow 6 host bits to create 64 subnets
a. How many host bits were borrowed to create subnets and how many subnets were
created?
2 host bits were borrowed. 22 = 4 subnets created
b. How many host bits remain and what is the address block size per subnet?
16 – 2 = 14 host bits remain. 214 = 16,384 Address Block Size / Subnet
1 2
1 2 3 4
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
192.168.100.0 /25, 2 Subnets, 126 hosts / Subnet 192.168.1.100 /28, 16 Subnets, 14 Hosts / Subnet
Subnet ID Subnet Address Host Address Range Broadcast Address Subnet ID Subnet Address Host Address Range Broadcast Address
1 192.168.100.0 192.168.100.1 - 192.168.100.126 192.168.100.127 1 192.168.100.0 192.168.100.1 - 192.168.100.14 192.168.100.15
2 192.168.100.128 192.168.100.129 - 192.168.100.254 192.168.100.255 2 192.168.100.16 192.168.100.17 - 192.168.100.30 192.168.100.31
3 192.168.100.32 192.168.100.33 - 192.168.100.46 192.168.100.47
192.168.1.100 /26, 4 Subnets, 62 Hosts / Subnet 4 192.168.100.48 192.168.100.49 - 192.168.100.62 192.168.100.63
Subnet ID Subnet Address Host Address Range Broadcast Address 5 192.168.100.64 192.168.100.65 - 192.168.100.78 192.168.100.79
1 192.168.100.0 192.168.100.1 - 192.168.100.62 192.168.100.63 6 192.168.100.80 192.168.100.81 - 192.168.100.94 192.168.100.95
2 192.168.100.64 192.168.100.65 - 192.168.100.126 192.168.100.127 7 192.168.100.96 192.168.100.97 - 192.168.100.110 192.168.100.111
3 192.168.100.128 192.168.100.129 - 192.168.100.190 192.168.100.191 8 192.168.100.112 192.168.100.113 - 192.168.100.126 192.168.100.127
4 192.168.100.192 192.168.100.193 - 192.168.100.254 192.168.100.255 9 192.168.100.128 192.168.100.129 - 192.168.100.142 192.168.100.143
10 192.168.100.144 192.168.100.145 - 192.168.100.158 192.168.100.159
192.168.1.100 /27, 8 Subnets, 30 Hosts / Subnet 11 192.168.100.160 192.168.100.161 - 192.168.100.174 192.168.100.175
Subnet ID Subnet Address Host Address Range Broadcast Address 12 192.168.100.176 192.168.100.177 - 192.168.100.190 192.168.100.191
1 192.168.100.0 192.168.100.1 - 192.168.100.30 192.168.100.31 13 192.168.100.192 192.168.100.193 - 192.168.100.206 192.168.100.207
2 192.168.100.32 192.168.100.33 - 192.168.100.62 192.168.100.63 14 192.168.100.208 192.168.100.209 - 192.168.100.222 192.168.100.223
3 192.168.100.64 192.168.100.65 - 192.168.100.94 192.168.100.95 15 192.168.100.224 192.168.100.225 - 192.168.100.238 192.168.100.239
4 192.168.100.96 192.168.100.97 - 192.168.100.126 192.168.100.127 16 192.168.100.240 192.168.100.241 - 192.168.100.254 192.168.100.255
5 192.168.100.128 192.168.100.129 - 192.168.100.158 192.168.100.159
6 192.168.100.160 192.168.100.161 - 192.168.100.190 192.168.100.191
7 192.168.100.192 192.168.100.193 - 192.168.100.222 192.168.100.223
8 192.168.100.224 192.168.100.225 - 192.168.100.254 192.168.100.255