Subnet Mask
A subnet mask is a 32-bit number applied to an IP address It facilitates identification of network address & node address of host A value of 1 is assigned to any bit that is part of Network address A value of 0 is assigned to any bit that is part of Node address
In subnetting, a network is divided into smaller subnets with each
subnet having its own subnet address. Each IP address is a pair : (netid, hostid) Network address is the Netid with Hostid=0
NETID
HOSTID
Masking
Masking is the process to extract the netid from an IP address Logical AND operation is used
Subnetting
Subnetting
Used in IP networks to break up larger networks into smaller subnetworks
To create subnetworks, you take bits from the host portion of the IP address and reserve them to define the subnet address
Benefits of subnetting
Reduced network traffic Simplified management Smaller broadcast domains
Subnet Mask
A subnet mask is a 32-bit value that allows the recipient of IP packets to distinguish the network ID portion of the IP address from the host ID portion of the IP address
A B C
Before Subnetting
1. Determine the number of required network IDs: 2. Determine the number of required host IDs per
When you receive a block of addresses from an ISP, what you get will look something like this: 210.212.51.16/29 The slash notation (/) means how many bits are turned on (1s). /29 255.255.255.248
CIDR Values
Subnet Mask 255.0.0.0 255.128.0.0 255.192.0.0 255.224.0.0 255.240.0.0 255.248.0.0 255.252.0.0 255.254.0.0 255.255.0.0 255.255.128.0 255.255.192.0 255.255.224.0 255.255.240.0 255.255.248.0 255.255.252.0 CIDR Value /8 /9 /10 /11 /12 /13 /14 /15 /16 /17 /18 /19 /20 /21 /22
CIDR Values
255.255.254.0 255.255.255.0 255.255.255.128 255.255.255.192 255.255.255.224 255.255.255.240 255.255.255.248 255.255.255.252 /23 /24 /25 /26 /27 /28 /29 /30
How many subnets does the chosen subnet mask produce? How many valid hosts per subnet are available? Whats the broadcast address of each subnet? What are the valid hosts in each subnet?
255.255.255.192 (/26)
192.168.10.0 = Network address 255.255.255.192 = Subnet mask
255.255.255.224 (/27)
192.168.10.0 = Network address 255.255.255.224 = Subnet mask
How many subnets? How many hosts? What are the valid subnets?
so 23 2 = 6. 25 2 = 30.
224 is 11100000,
256 224 = 32. subnets are 32, 64, 96, 128, 160, and 192.
Practice
Problem 1: 192.168.10.0 255.255.255.240 (/28) Problem 2:
255.255.255.128
128 is 10000000 in binary, there is only 1 bit for subnetting. This bit can be either off or on, the two available subnets are 0 and 128 Subnet 0 128 First host 1 129 Last host 126 254 Broadcast 127 255
255.255.192.0 (/18)
172.16.0.0 = Network address 255.255.192.0 = Subnet mask Subnets? 22 2 = 2. Hosts? 214 2 = 16,382. (6 bits in the third octet, and 8 in the fourth.)
Valid subnets?
Practice
Problem 1: 172.16.0.0 = Network address 255.255.254.0 = Subnet address
255.255.0.0 (/16)
Subnets? 28 2 = 254. Hosts? 216 2 = 65,534. Valid subnets? 256 255 = 1, 2, 3, etc.
(all in the second octet). The subnets would be 10.1.0.0, 10.2.0.0, 10.3.0.0, etc., up to 10.254.0.0.