CCNA IP Addressing VLSM Cheat Sheet
CCNA IP Addressing VLSM Cheat Sheet
Classes of IP Addresses
Class A: 0.0.0.0 to 127.255.255.255 Class B: 128.0.0.0 to 191.255.255.255 Class C: 192.0.0.0 to 223.255.255.255 Class D: 224.0.0.0 to 239.255.255.255 Class E: 240.0.0.0 to 255.255.255.255 Class E is reserved and can not be assigned. Class D is reserved for multicast application. Only Class A, B and C are available to address assignment Class A has 8-bits reserved for network, allowing for 28 networks and 224 hosts. The network mask for Class A networks is 255.0.0.0 Class B has 16-bits reserved for network, allowing 216 networks and 216 hosts. The network mask for Class B networks is 255.255.0.0 Class C has 24-bits reserved for network, allowing 224 networks and 28 hosts. The network mask for Class C networks is 255.255.255.0
Reserved Addresses
RFC 1918 define thes following reserved address spaces to be used in private network: 10.0.0 / 8 172.16.0.0 / 12 192.168.0.0 / 16 Apart from above mentioned addresses, 0.0.0.0 is used to assign and denote default routes. It cannot be assigned to a host. 127.0.0.0 is reserved for loopback and it is used for testing purposes
IP Subnetting
Subnetting allows sub-dividing the flat address spaces (Class A,B and C) into smaller networks called Subnets A number of bits (according to the requirement) are taken from the host portion of an IP address to create the subnetworks. The following figure depicts the number of bits and address format when Subnetting is used
Example: Network 192.168.1.0 needs to be subnetted to allow room for 8 additional subnetworks. 192.168.1.0 is class C address, which implies the subnet mask is 255.255.255.0.
2
As shown in the table, once we have listed the subnet addresses, calculating the host range and broadcast address is relatively simple. The broadcast address will be the last address of the subnet and one less the preceding subnet address. The host range will start from the next address after the subnet address for example for the subnet 192.168.1.32/27 the host range will start at 192.168.1.33 and end at one less the broadcast address Summary: Subnets=2n Where: n=number of bits required for Subnetting Used to calculate the subnets Host=2h-2 where h=remaining bits in host portion Used to calculate usable host addresses