Lesson 2: Subnetting Basics
Lesson 2: Subnetting Basics
Allows you to take one larger network and break it into a bunch of smaller networks. benefits:
Reduced network traffic
Optimized network performance Simplified management
distances
192.168.2.1
192.168.3.1
192.168.3.2
192.168.2.2
192.168.3.3
A 32-bit value that allows the recipient of IP packets to distinguish between: The 1s in the subnet mask represent: Not all networks need subnets:
meaning they use the default subnet mask. These default masks cannot change.
Class A network, you cant change the first byte in a subnet mask; it must read 255.0.0.0 at a minimum. Class B: start with 255.255.0.0 Class C: start with 255.255.255.0.
The network ID portion of the IP address. The host ID portion of the IP address. the positions that refer to the network or subnet
addresses.
Class Format
A B C Network. Node. Node. Node Network. Network. Node. Node Network. Network. Network. Node
Class B address with a subnet address Network address 1000 0010. 0011 1001. Subnet Host address
To create subnet:
Take bits from the host portion of the IP address
and reserve them to define the subnet address. This means fewer bits for hosts, so the more subnets, the fewer bits available for defining hosts.
21 = 2 22 = 4
28 = 256 29 = 512
23 = 8
24 = 16 25 = 32 26 = 64 27 = 128
210 = 1,024
211 = 2,048 212 = 4,096 213 = 8,192 214 = 16,384
192.168.2.1 255.255.255.0
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 0
192.168.2.1 255.255.255.224
23=8subnets
network
25-2=30 addresses
CIDR creates a hierarchical addressing structure by breaking the network address space into CIDR blocks CIDR notation:
describes a network by specifying the base
address and the number of bits used for the network portion i.e., 10.0.0.0/8
a network using 24 bits for host numbering a maximum of 224 -2 possible host addresses.
Method that ISPs use to allocate a number of addresses to a company, a homea customer. 192.168.10.32/28:
Telling you what your subnet mask is.
The slash notation (/)
how many bits are turned on (1s).
Keep in Mind:
the largest subnet mask available (regardless of the
Example:
A Class A default subnet mask:
which is 255.0.0.0
This means that the first byte of the subnet mask is all ones (1s), or 11111111.
A slash notation:
you need to count all the 1s bits to figure out your mask.
Class C
Class D (multicast) Class E (reserved)
192.0.0.0
224.0.0.0 240.0.0.0
223.255.255.255
239.255.255.251 255.255.255.255
/24
/4 /4
255.255.255.0
255.254.0.0 255.255.0.0
255.255.128.0 255.255.192.0 255.255.224.0
/15 /16
/17 /18 /19
255.255.255.224 255.255.255.240
255.255.255.248 255.255.255.252
/27 /28
/29 /30
This is a big reason why most companies use Class A network addresses.
Since they can use all subnet masks, they get the
We cant use a /31 or /32 because we have to have at least 2 host bits for assigning IP addresses to hosts.
2y 2 = number of hosts per subnet. y is the number of unmasked bits, or the 0s.
Example: in 11000000, the number of 0s gives us 26 2 hosts. In this example, there are 62 hosts per subnet. You need to subtract 2 for the subnet address and the broadcast address, which are not valid hosts.
Example: if 64 is the subnet number and 127 is the broadcast address, then 65126 is the valid host range.
192.168.10.0 192.168.10.1
192.168.10.128 192.168.10.129