1 00:00:00,230 --> 00:00:01,710 Your patience pays off. 2 00:00:01,730 --> 00:00:08,480 Subnetting allows you to create multiple logical networks that exist within a single class A, B or 3 00:00:08,510 --> 00:00:09,290 C network. 4 00:00:09,760 --> 00:00:16,090 If you do not subnet, you are only able to use one network from your class A, B or C network, which 5 00:00:16,090 --> 00:00:18,340 is well, pretty unrealistic. 6 00:00:19,260 --> 00:00:26,430 So subnetting is the process of designating some high order bits from the host part as part of the network 7 00:00:26,430 --> 00:00:30,720 prefix and adjusting the subnet mask appropriately. 8 00:00:31,140 --> 00:00:34,950 So this divides a network into smaller subnets. 9 00:00:35,100 --> 00:00:42,270 In other words, in order to subnet a network, extend the natural mask with some of the high order 10 00:00:42,270 --> 00:00:48,240 bits from the host ID portion of the address in order to create a subnetwork ID. 11 00:00:49,250 --> 00:00:50,780 So I'll give you an example. 12 00:00:51,110 --> 00:01:02,990 Let's take a class C network of 192.168.2.0, which has a natural mask of 255.255.255.0. 13 00:01:03,720 --> 00:01:09,960 You can create subnets by moving two bits from the host part to the network prefix. 14 00:01:10,800 --> 00:01:14,820 Now, the last octet of the network mask starts with 11. 15 00:01:16,130 --> 00:01:19,460 So this eight bit corresponds to 192. 16 00:01:19,490 --> 00:01:20,630 In decimal form. 17 00:01:21,810 --> 00:01:26,700 Now the network ID is 26 bit in Cidr notation. 18 00:01:26,700 --> 00:01:30,660 It's now a slash 26 subnetwork. 19 00:01:31,810 --> 00:01:40,210 You can find the network prefix by a bitwise and operation between the IP address and the subnet mask. 20 00:01:42,940 --> 00:01:50,710 The number of subnetworks available and the number of possible hosts in a network may be readily calculated. 21 00:01:51,910 --> 00:01:57,220 In our example, two bits were borrowed to create Subnetworks. 22 00:01:57,900 --> 00:02:02,850 Thus creating two to the power of two possible subnets. 23 00:02:03,540 --> 00:02:04,410 You with me. 24 00:02:04,890 --> 00:02:09,389 So now let's calculate the maximum number of hosts for each subnet. 25 00:02:11,030 --> 00:02:14,510 In our example, 26 bits are used to define the network. 26 00:02:15,180 --> 00:02:20,160 The remaining bits after the subnet, bits are used for dressing hosts within the subnet. 27 00:02:20,910 --> 00:02:29,940 So the host part of the IP address is six bit all zeros and the all ones values for the host ID are 28 00:02:29,940 --> 00:02:32,310 not allowed in a subnetwork right. 29 00:02:32,400 --> 00:02:38,160 These two values are reserved for the network address and broadcast address respectively. 30 00:02:39,530 --> 00:02:46,460 So the maximum number of hosts which can be addressed in these subnetworks is two to the power of six 31 00:02:46,490 --> 00:02:49,850 minus two, which equals 62. 32 00:02:50,660 --> 00:02:51,410 Excellent. 33 00:02:51,500 --> 00:02:55,700 So as a result, the IP addresses of the devices in the subnetwork. 34 00:02:55,700 --> 00:03:09,260 192.168.2.128 slash 26 will be between 192.168.2.129 and 192.168.2.190.