How to Create a Subnet

For Complete YouTube Video: Click Here

We will try to understand How to Create a Subnet in this class.

We have already discussed a subnet and the need for a subnet in our previous classes.

How to Create a Subnet

To understand this class, consider the university network as shown below.

We have created the above in our previous class.

So far, in our discussion, we have only two parts for the ip address.

  1. Network ID
  2. Host ID

Whenever we want to create a subnetwork, the third part subnet ID comes.

Subnet ID bits are the bits chosen from the host ID.

We want to create four subnetworks with 60 hosts each in the above network.

For that, we need a class c address.

Let’s consider this class c address 194.24.2.0.

We have to choose one bit in the host ID for the subnet number to create two networks.

Similarly, two create four networks; we have to choose two bits for the subnet ID.

With two bits, the number of subnet codes possible is 00, 01, 10, and 11.

The image below is the subnet created using the four subnet codes.

The CSE network will have IP addresses ranging from 194.24.2.0 to 194.24.2.63.

The first address, 194.24.2.0, is used as the network ID, and 194.24.2.63 is used for the directed broadcast address of the subnetwork.

The host IDs range from 194.24.2.1 to 194.24.2.62.

The ECE network will have IP addresses ranging from 194.24.2.64 to 194.24.2.127.

The first address, 194.24.2.64, is used as the network ID, and 194.24.2.127 is used for the directed broadcast address of the subnetwork.

The host IDs range from 194.24.2.65 to 194.24.2.126.

The MECH network will have IP addresses ranging from 194.24.2.128 to 194.24.2.191.

The first address, 194.24.2.128, is used as the network ID, and 194.24.2.191 is used for the directed broadcast address of the subnetwork.

The host IDs range from 194.24.2.129 to 194.24.2.190.

The CIVIL network will have IP addresses ranging from 194.24.2.192 to 194.24.2.255.

The first address, 194.24.2.192, is used as the network ID, and 194.24.2.255 is used for the directed broadcast address of the subnetwork.

The host IDs range from 194.24.2.193 to 194.24.2.62.254.