Classless Subnetting
Classless Subnetting
172 16 0 0
any more apples…
100 Apples
10 10 10
100
Apples
(10 * 10)
10
10 10
10 10 10
not use all the IP addresses for host
98 Apples addresses.
(100 – 2) • We lose two addresses for every
network or subnet.
1. Network Address - One address is
reserved to that of the network.
2. Broadcast Address – One address
is reserved to address all hosts in
that network or subnet.
(less 2) (less 2) (less 2)
80 Apples 8
8 8
10 * (10 - (less 2) (less 2) (less 2)
2)
8 8 8
(less 2) (less 2) (less 2)
64 Apples 8
8 8
8 * (10 - 2) (less 2) (less 2) (less 2)
8 8 8
(less 2) (less 2) (less 2)
172 16 0 0
172 16 0 0
Using Subnets: subnet mask 255.255.255.0 or /
24
Network Network Subnet Host
Network Mask:
255.255.0.0 or /16 11111111 11111111 00000000 00000000
Subnet Mask:
255.255.255.0 or /24
11111111 11111111 11111111 00000000
172 16 0 0 Subnets
Address
172 16 1 0
es
172 16 2 0 255
172 16 3 0 Subnets
172 16 Etc. 0 28 - 1
172 16 254 0
Cannot use last
172 16 255 0 subnet as it
contains
Rick Graziani [email protected] broadcast 11
Subnet Example
172.16.5.0/2 172.16.25.0/24
4
• You can only subnet the host portion, you do not have control of the
network portion.
• Subnetting does not give you more hosts, it only allows you to divide
your larger network into smaller networks.
• When subnetting, you will actually lose hosts:
– For each subnet you lose the address of that subnet
– For each subnet you lose the broadcast address of that subnet
– You “may” lose the first and last last subnets (coming)
Given the following Host IP Address, Network Mask and Subnet mask find the
following information:
• Major Network Information
– Major Network Address
– Major Network Broadcast Address
– Range of Hosts if not subnetted
• Subnet Information
– Subnet Address
– Range of Host Addresses (first host and last host)
– Broadcast Address
• Other Subnet Information
– Total number of subnets
– Number of hosts per subnet
Rick Graziani [email protected] 16
Subnetting – Example #2
Given the following Host IP Address, Network Mask and Subnet mask find the
following information:
• Major Network Information
– Major Network Address
– Major Network Broadcast Address
– Range of Hosts if not subnetted
• Subnet Information
– Subnet Address
– Range of Host Addresses (first host and last host)
– Broadcast Address
• Other Subnet Information
– Total number of subnets
– Number of hosts per subnet
Rick Graziani [email protected] 17
Major Network Information
128 64 32 16 8 4 2 1
138. 101. 114. 250
IP Address 10001010 01100101 01110010 11111010
Mask 11111111 11111111 11111111 11000000
255. 255. 255. 192
Step 1:
Translate Host IP Address and Subnet Mask into binary notation
Step 2:
Determine the Network (or Subnet) where this Host address lives:
1. Draw a line under the mask
2. Perform a bit-wise AND operation on the IP Address and the Subnet
Mask
Note: 1 AND 1 results in a 1, 0 AND anything results in a 0
3. Express the result in Dotted Decimal Notation
4. The result is the Subnet Address of this Subnet or “Wire” which is
138.101.114.192
Step 2:
Determine the Network (or Subnet) where this Host address lives:
Quick method:
1. Find the last (right-most) 1 bit in the subnet mask.
2. Copy all of the bits in the IP address to the Network Address
3. Add 0’s for the rest of the bits in the Network Address
Host Portion
• Subnet Address: all 0’s
• First Host: all 0’s and a 1
• Last Host: all 1’s and a 0
• Broadcast: all 1’s
Rick Graziani [email protected] 23
Step 5: Total Number of Subnets
G.D. S.D.
• TotalFirst
number
Host of subnets
10001010 01100101 01110010 11 000001
138 101 114 193
– Number of subnet bits 10
Last Host 10001010 01100101 01110010 11 111110
– 2 = 1,024
10
138 101 114 254
– 1,024 total subnets
Broadcast 10001010 01100101 01110010 11 111111
• Subtract one138“if” all-zeros
101 114
subnet cannot 255
be used
• Subtract one “if” all-ones subnet cannot be used
• TotalFirst
number
Host of hosts
10001010per subnet
01100101 01110010 11 000001
138 101 114 193
– Number of host bits 6
Last Host 10001010 01100101 01110010 11 111110
– 2 = 64
6
138 101 114 254
– 64Broadcast
host per subnets
10001010 01100101 01110010 11 111111
• Subtract one138for the subnet101
address114 255
Problem 1
• Host IP Address: 10.10.10.193
• Network Mask: 255.255.0.0
• Subnet Mask: 255.255.255.0
Problem 2
• Host IP Address: 10.10.10.193
• Network Mask: 255.255.255.0
• Subnet Mask: 255.255.255.240
Problem 3
• Host IP Address: 10.10.10.193
• Network Mask: 255.255.255.0
• Subnet Mask: 255.255.255.252
Rick Graziani [email protected] 26