
Subnetting
IP addressing and Subnetting: To fully understand Subnetting, it is vital to know how many network and host bits are present in Class A, Class B, and Class C networks.
Network Address 17.1.1.1 broken down into network and host bits.
SUBNETTING: Subnetting is simply a process of “borrowing” host bits in order to create the subnet portion of an address. Note in the following examples that the network portion of the address never changes. The subnet field always borrows from the host bits.
Why Use Subnetting? Subnetting is a highly effective method of conserving IP address. Consider a point to point ISDN connection with two host addresses, one on each side of the connection. Using an entire Class C address range for this network segment would be a waste of addresses. A default Class C network mask of 255.255.255.0 yields 254 usable host addresses, but only two are needed for this small network.
Subnetting allows the use of a “tighter” subnet mask that the default; that is, one that yields a smaller amount of network addresses. The benefit is that the address that would have been wasted are now still usable by other segments of the network.
Determining the number of valid subnets To determine the number of valid subnets for a given number and mask, use this formula: The number of subnet bits is determined by examining the default network mask for that class, and comparing it to the actual network mask. Taking network 172.20.20.0 255.255.255.0 as an example, the default mask for the class B network is 255.255.0.0. write out the default mask and the actual mask in binary:
TRICK: No. of subnet bits = network bits in (subnet mask) – network bits in (default subnet mask) No. of valid subnet = 2x -2 For example: ii) 10.16.15.0/24 iii) 192.168.1.64/27
Determining the subnet number (subnet address) of a given IP address and subnet mask First, the IP Address and its subnet mask will be converted to binary. The Boolean AND is simply a bit-by-bit comparison of the IP Address and the Subnet Mask. 1 + 1 = 1
Consider Network Address 178.56.21.9/24. Convert the IP address and the subnet mask into binary, remembering that /24 is equivalent to 255.255.255.0
Example: What is the subnet address of 200.154.150.89/27
Host Range in a given subnet 200.154.150.64/27
Meeting Stated Design Requirements: Example:
Solution: No. of subnet ≥ 150 As 165.10.0.0 is a Class B address with default mask 255.255.0.0. 16 bits are being used for network and leaving another 16 bits to be divided between subnet and host bits. As no. of Hosts per subnet should not be more than 200, and No. of subnet can be more than 150. We are not going to use more than 7 bits for the hosts, it means we have 9 bits for the subnet. So x = 9
|





