Private vs Public Network
- Private Network: Network which cannot be accesed directly from internet
- Public Network: Network which can be accessed from internet
- Private network cidr ranges
- 10.0.0.0/8: 10.0.0.0 to 10.255.255.255
- 172.16.0.0/12: 172.16.0.0 to 172.31.255.255
- 192.168.0.0/16: 192.168.0.0 to 192.168.255.255
Subnets
- Subnet (sub networks) are parts of larger network
Consider you need to create network with subnets for the following
A Building with 4 floors
- overview

- Each floor requires 50 devices
each floor ~= 50
2^n ~= 50
n = 6
N = 32-6 = 26
building ~= 50 * 4 = 200
2^n ~= 200
n = 8
N = 24
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
building network: 192.168.0.0/24
BD SM: 11111111.11111111.11111111.00000000
FL SM: 11111111.11111111.11111111.11000000
----------------------------------------------
.xx000000
.00000000 => 192.168.0.0/26
.01000000 => 192.168.0.64/26
.10000000 => 192.168.0.128/26
.11000000 => 192.168.0.192/26
- Each device requires 100 devices
each floor ~= 100
2^n ~= 100
n = 7
N = 25
building ~= 400
2^n ~= 400
n = 9
N = 23
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
172.16.0.0/23
BD SM: 11111111.11111111.11111110.00000000
FL SM: 11111111.11111111.11111111.10000000
----------------------------------------------
x.x0000000
0.00000000 => 172.16.0.0/25
0.10000000 => 172.16.0.128/25
1.00000000 => 172.16.1.0/25
1.10000000 => 172.16.1.128/25
- Each floor requires 30,000 devices
each floor ~= 30000
2^n ~= 30000
n = 15
N = 17
building ~= 120000
2^n ~= 120000
n = 17
N = 15
10.0.0.0/8
172.16.0.0/12
building: 10.0.0.0/15
BD SM: 11111111.11111110.00000000.00000000
FL SM: 11111111.11111111.10000000.00000000
--------------------------------------------
x.x
0.00000000 => 10.0.0.0/17
0.10000000 => 10.0.128.0/17
1.00000000 => 10.1.0.0/17
1.10000000 => 10.1.128.0/17
Building with 8 floors
- Each floor requires 100 devices
each floor ~= 100
2^n ~= 100
n = 7
N = 25
building ~= 800
2^n ~= 800
n = 10
N = 22
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
bd: 192.168.0.0/22
BD SM: 11111111.11111111.11111100.00000000
FL SM: 11111111.11111111.11111111.10000000
--------------------------------------------
xx.x
00.00000000 => 192.168.0.0/25
00.10000000 => 192.168.0.128/25
01.00000000 => 192.168.1.0/25
01.10000000 => 192.168.1.128/25
10.00000000 => 192.168.2.0/25
10.10000000 => 192.168.2.128/25
11.00000000 => 192.168.3.0/25
11.10000000 => 192.168.3.128/25
- Exercise:
- Each floor has 30,000 devices
- Each floor has 50 devices
Like this:
Like Loading...