You are on page 1of 35

Calculation of Network ID

Logical Operator
 A logical operator is a symbol or word used to connect two or more
expressions to produce another compound value.

 The value of the compound value depends only on that of the original
expressions and on the meaning of the operator.

 Common logical operators include AND, OR, and NOT.


‘AND’ Operator
 AND operator returns a value of TRUE if both its inputs are TRUE.

 To get the output result as TRUE through AND operation, both the input values
must be TRUE

 To get the output result as ‘1’, all input values must be ‘1’. If any of the input
value is a zero, the result output will be zero.

Input-1 0 1 1 0
Input-2 1 1 0 0
Output after AND Operation 0 1 0 0
Calculation of Network ID
(From AND Operation)

Let the IP is: 194.105.89.90/29


That is: 194.105.89.90 255.255.255.248
128 64 32 16 8 4 2 1
1 1 1 1 1 1 1 1

194.105.89.90 1 1 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0 1 0 1 1 0 0 1 0 1 0 1 1 0 1 0
255.255.255.248 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0
After AND Operation: 1 1 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0 1 0 1 1 0 0 1 0 1 0 1 1 0 0 0
Decimal Value after AND 194. 105. 89. 88
(we get the Net ID)

So the subnetwork ID is : 194.105.89.88/29


Calculation of Network ID
(From AND Operation) 128 64 32 16 8 4 2 1
1 1 1 1 1 1 1 1
192.168.20.100/25

192.168.20.100 255.255.255.128

192.168.20.100 1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 1 0 1 0 0 0 1 1 0 0 1 0 0
255.255.255.128 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0
AND Operation 1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0
Network ID : 192.168.20.0
Calculation of Network ID
(From AND Operation)
200.100.50.100 / 28
200.100.50.100 255.255.255.240

128 64 32 16 8 4 2 1
1 1 1 1 1 1 1 1

200.100.50.100 1 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 0 0 1 0 0
255.255.255.240 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0
AND Operation 1 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 0 0 0 0 0
Net ID: 200. 100. 50. 96
Calculation of Network ID
(From AND Operation)
Instead of ANDING everything, we are ANDING only the last OCTET of IP and Subnet

128 64 32 16 8 4 2 1
212.50.35.50/28 1 1 1 1 1 1 1 1

212.50.35.50 255.255.255.240

50= 0 0 1 1 0 0 1 0

240= 1 1 1 1 0 0 0 0
0 0 1 1 0 0 0 0 = 48 (after AND)

48

Network ID is: 212.50.35.48


/25 128
Calculation of Network ID
/26 192
/27 224
(From AND Operation)
/28 240
128 64 32 16 8 4 2 1
/29 248 212.50.35.120/27
1 1 1 1 1 1 1 1
/30 252

120= 0 1 1 1 1 0 0 0

224= 1 1 1 0 0 0 0 0
0 1 1 0 0 0 0 0 =96
= 96

Network ID: 212.50.35.96/27


Calculation of Network ID
(From AND Operation)
128 64 32 16 8 4 2 1

212.50.35.150/25 1 1 1 1 1 1 1 1
1 0 0 0 0 0 0 0
212.50.35.150 255.255.255.128
1 0 0 1 0 1 1 0
1 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0
0
Calculation of Network ID
(From AND Operation)

128 64 32 16 8 4 2 1
1 1 1 1 1 1 1 1

Find the Net ID:

200.100.50.50/27 = 200.100.50.32
200.50.60.70/28 = 200.50.60.64
200.50.70.150/29 = 200.50.70.144
Values We Need To Work With Network Design
1. We need the Network ID

2. We need the Subnet Size (means the maximum number of IP addresses we


can get from the Network)

3. We need the number of Possible networks

4. We need the Broadcast ID for every sub-networks.

5. We need the first available IP address & last IP address of every network.

6. We need the available IP address range (the IP addresses which can be


assigned to the users)
Calculation of Subnet Size
Calculation of Subnet Size (number of possible IP addresses):

1. To calculate the Subnet Size, we need to remember a Magic Number which


is 256

2. Then we deduct the value of the last octet of the Subnet Mask from the
Magic Number.

3. For example, if the Subnet Mask is with CIDR value/26, that means
255.255.255.192, then the Subnet Size is = 256-192 = 64 (number of
possible IP addresses)
Calculation of Subnet Size
Calculation of Subnet Size (number of possible IP addresses):

• For example, the IP address is 192.168.20.0/26

• Subnet Size = 256 – 192 = 64 (Possible IP addresses)


Calculation of Number of Networks
Calculation of Subnet Size (number of possible IP addresses):

• First we need to calculate the subnet size.

• Number of Networks will be:


Magic Value/Subnet Size
Calculation of Number of Networks
Calculation of Subnet Size (number of possible IP addresses):

• For example, the IP address is 192.168.20.0/26

• Subnet Size = 256 – 192 = 64 (Possible IP addresses)

• Number of Network: Magic Value/Subnet Size = 256/64 = 4


Calculation of Network Parameters
Formula:
1. Subnet Size = (Magic Value – Last value of Subnet)

2. Number of Network: Magic Value/Subnet Size

3. Number of Host per network: Subnet Size – 2


Calculation of Subnet Size and Number of Network
Let the IP is: 192.168.200.150/28
That is: 192.168.200.150 255.255.255.240

 Use the Magic Number (256).

 Deduct the last value of subnet mask from the Magic Number. In that way we
get the Subnet Size. (Here it is: 256-240=16)

 Subnet size determines the number of IP addresses available from a range.

 Number of subnet is obtained by dividing the magic number by the subnet size.
Here it is: 256/16 = 16
AlterNet Way of Calculating Network ID
Let the IP is: 192.168.200.150/28
That is: 192.168.200.150 255.255.255.240

 First, we need to find out the Subnet Size

 Here, size of the subnet (Using Magic Number): 256-240 =16

 The last OCTET of the subnet, which indicates the Subnet ID, will be the closest
multiplied value of the subnet size.

 In our case, it will be 16x9 = 144

 Hence the Network ID is : 192.168.200.144/28


AlterNet Way of Calculating Network ID
Let the IP is: 192.168.200.100/29

192.168.200.100 255.255.255.248
Subnet Size: 256-248=8

8x12=96
8x13=104

So, network ID is 192.168.200.96 255.255.255.248


AlterNet Way of Calculating Network ID
Let the IP is: 192.168.200.100/27
That is: 192.168.200.100 255.255.255.224

To find out the network ID:

Multiply the subnet size and in that way go to the closest value of the last octet of
IP address. That closest value is the Network ID.

Subnet Size: 256 – 224 = 32

Network ID: 32x3 = 96

Net work ID = 192.168.200.96

Number of subnet: 256/32 = 8


AlterNet Way of Calculating Network ID
 192.168.10.40/28 or, 192.168.10.40 255.255.255.240

Subnet Size: 256 – 240 = 16


Net ID= 32
Number of Network: 256/16 = 16
Number of host per network: Subnet size -2 = 16-2=14

 192.168.20.200/25 or, 192.168.20.200 255.255.255.128

Subnet Size = 256-128= 128


Net ID: 128
Number of Network: 256/128 = 2
Number of host per network: 128-2 =126
Practice: Calculate Subnet Size, Net ID, Number of
Network and Host per network
IP Address Subnet Size Network ID Number of Host Per
Network Network
192.168.20.100/28 16 192.168.20.96/28 16 16-2 =14
192.168.20.26/30 4 192.168.20.24/30 64 4-2 = 2
192.168.50.200/27 32 192.168.50.192/27 8 30
192.168.100.20/29 8 192.168.100.16/29 32 6
200.100.60.60/28 16 200.100.60.48/28 16 14
192.168.10.60/25 128 192.168.10.0/25 2 126
192.168.10.80/26 64 192.168.10.64/26 4 62
Practice: Calculate Subnet Size, Net ID, Number of
Network and Host per network

IP Address Subnet Size Network ID Number of Host Per


Network Network
192.168.50.150/27
200.100.50.50/28
192.168.80.80/26
Calculate Net ID, Subnet Size, Number of Network, Host per
network, and Broadcast IP
Let the IP is: 192.168.200.50/25 192.168.200.50 255.255.255.128

Network ID: 192.168.200.0 255.255.255.128

Subnet Size: 256-128 = 128

Number of subnets: 256/128 = 2


Network ID Subnet Number of Hosts per Usable IP Range Broadcast IP
Size Subnets network
192.168.200.0 128 126 126 192.168.200.1 – 192.168.200.126 192.168.200.127
192.168.200.128 128 126 192.168.200.129-192.168.200.254 192.168.200.255
Calculate Net ID, Subnet Size, Number of Network,
Host per network, and Broadcast IP
Let the IP is: 192.168.200.50/26
Network ID: 192.168.200.0 255.255.255.192
Subnet Size: 256-192 = 64
No of users in every network = 64-2 =62
No of networks = 256/64 =4
Network ID Subnet Number of Hosts per Usable IP Range Broadcast IP
Size Subnets network
192.168.200.0 64 4 62 192.168.200.1 – 192.168.200.62 192.168.200.63
192.168.200.64 192.168.200.65 – 192.168.200.126 192.168.200.127
192.168.200.128 192.168.200.129 – 192.168.200.191 192.168.200.192
192.168.200.192 192.168.200.193 – 192.168.200.254 192.168.200.255
Calculate Net ID, Subnet Size, Number of Network,
Host per network, and Broadcast IP
Let the IP is: 192.168.200.20/27
192.168.200.20 255.255.255.224
Subnet Size: 256-224=32, Number of Network: 256/32=8
Network ID Subnet Number of Hosts per Usable IP Range Broadcast IP
Size Subnets network
192.168.200.0 32 8 30 200.1-200.30 192.168.200.31
192.168.200.32 200.33-200.62 192.168.200.63
192.168.200.64 200.65-200.94 192.168.200.95
192.168.200.96 200.97-200.126 192.168.200.127
192.168.200.128 200.129-200.158 192.168.200.159
192.168.200.160 200.161-200.190 192.168.200.191
192.168.200.192 200.193-200.222 192.168.200.223
192.168.200.224 200.225-200.254 192.168.200.255
Calculate Net ID, Subnet Size, Number of Network, Host per
network, IP Address Range and Broadcast IP
Let the IP is: 192.168.200.50/27
192.168.200.50 255.255.255.224
Subnet Size: 256-224 = 32
Net ID: 192.168.200.32 255.255.255.224
No of Networks: 256/32 = 8
Network ID Subnet Number of Users per Usable IP Range Broadcast IP
Size Subnets network
192.168.200.0 32 8 32-2 =30 192.168.200.1-192.168.200.30 192.168.200.31
192.168.200.32 32 30 192.168.200.33-192.168.200.62 192.168.200.63
192.168.200.64 32 30 65-94 192.168.200.95
192.168.200.96 32 30 97-126 192.168.200.127
192.168.200.128 32 30 129.158 192.168.200.159
192.168.200.160 32 30 161-190 192.168.200.191
192.168.200.192 32 30 193.222 192.168.200.223
192.168.200.224 32 30 225-254 192.168.200.255
Calculate Net ID, Subnet Size, Number of Network,
Host per network, and Broadcast IP
Let the IP is: 192.168.10.125/25 192.168.10.125 255.255.255.128
Network ID: 192.168.10.0
Subnet Size: 256-128 = 128
Number of subnets: 256/128 = 2

Network ID Subnet Number of Hosts per Usable IP Range Broadcast IP


Size Subnets network
192.168.10.0 128 2 126 192.168.10.1-192.168.10.126 192.168.10.127
192.168.10.128 128 2 126 192.168.10.129-192.168.10.254 192.168.10.255
Calculate Net ID, Subnet Size, Number of Network,
Host per network, and Broadcast IP
Let the IP is: 192.168.200.50/26 192.168.200.200 255.255.255.192
Network ID: 192.168.200.0

Subnet Size: 256-192 = 64


Number of subnets: 256/64 = 4

Network ID Subnet Number of Hosts per Usable IP Range Broadcast IP


Size Subnets network
192.168.200.0 64 4 62
Calculate Net ID, Subnet Size, Number of Network,
Host per network, and Broadcast IP
Let the IP is: 202.168.100.30/26
Subnet Size: 256 – 192 = 64

Network ID Subnet Number of Hosts per Usable IP Range Broadcast IP


Size Subnets network
Calculate Net ID, Subnet Size, Number of Network,
Host per network, and Broadcast IP

Let the IP is: 192.168.10.50/26 192.168.10.125 255.255.255.192


Network ID: 192.168.10.0
Subnet Size: 256-192 = 64
Number of subnets: 256/64 = 4

Network ID Subnet Number of Hosts per Usable IP Range Broadcast IP


Size Subnets network
Calculate Net ID, Subnet Size, Number of Network,
Host per network, and Broadcast IP
Let the IP is: 200.200.200.0/27 200.200.200.0 255.255.255.224
Network ID: 200.200.200.0
Subnet Size: 256-224 = 32
Number of subnets: 256/32 = 8
Network ID Subnet Number of Hosts per Usable IP Range Broadcast IP
Size Subnets network
Calculate Net ID, Subnet Size, Number of Network,
Host per network, and Broadcast IP
Let the IP is: 192.168.10.5/27 192.168.10.5 255.255.255.224
Network ID: 192.168.10.0
Subnet Size: 256-224 = 32
Number of subnets: 256/32 = 8
Network ID Subnet Number of Hosts per Usable IP Range Broadcast IP
Size Subnets network
192.168.10.0 32 8 30
192.168.10.32
192.168.10.64
192.168.10.96
192.168.10.128
192.168.10.160
192.168.10.192
192.168.10.224
Calculate Net ID, Subnet Size, Number of Network,
Host per network, and Broadcast IP
Let the IP is: 192.168.10.5/28 192.168.10.5 255.255.255.240
Network ID: 192.168.10.0
Subnet Size: 256-240 = 16
Number of subnets: 256/16 = 16
Network ID Subnet Number of Hosts per Usable IP Range Broadcast IP
Size Subnets network
192.168.10.0 16 16 14 192.168.10.15
192.168.10.16 192.168.10.31
192.168.10.32 192.168.10.47
192.168.10.48 192.168.10.63
192.168.10.64 192.168.10.79
192.168.10.80 192.168.10.95
192.168.10.96
……………….
Calculate Net ID, Subnet Size, Number of Network,
Host per network, and Broadcast IP
Let the IP is: 192.168.10.3/30 192.168.10.5 255.255.255.252
Network ID: 192.168.10.0
Subnet Size: 256-252 = 4
Number of subnets: 256/4 = 64
Network ID Subnet Number of Hosts per Usable IP Range Broadcast IP
Size Subnets network
192.168.10.0 4 64 2
192.168.10.4
192.168.10.8
192.168.10.12
192.168.10.16
192.168.10.20
……………..
192.168.10.252

You might also like