Professional Documents
Culture Documents
0.
192.
0.
11011111.11111111.11111111.11111111
0 223.255.255.255
11000000.00000000.00000000.00000000
0.
10111111.11111111.11111111.11111111
01111111.11111111.11111111.11111111
0 191.255.255.255
10000000.00000000.00000000.00000000
0.
128.
00000001.00000000.00000000.00000000
0.
127.
0.
01111111.11111111.11111111.11111110
1 127.255.255.254
01111111.00000000.00000000.00000001
Power of 2
Sum
Binary
Value
32
16
128 64
*Prefix Size refers to the leading bits of all addresses in the block.
#
Link-local addresses are self assigned when a DHCP address is unavailable.
LOOPBACK
10101001.11111110.11111110.11111111
1 169.254.254.255
10101001.11111110.00000000.00000001
0.
169.254.
0. 0 192.168.255.255
16 Bit 192.168.
11000000.10101000.00000000.00000000 11000000.10101000.11111111.11111111
C
LINK-LOCAL#
00001010.11111111.11111111.11111111
00001010.00000000.00000000.00000000
10
CLASS
IP address classes
CLASS
START IP
END IP
ID*
1. 0. 0. 0 126.255.255.255
0
SUBNET MASKING
Binary
Value
Sum
Power of 2
128 64
32
16
256-240=16
255.255.255.240
11111111.11111111.11111111.11110000
= 16
^
10000
Binary
Decimal
24=16=2x2x2x2
255.255.240. 0
177.168. 83.101
177.168.???. 0
83 / (256-240) 5.188
^ 3rd IP Octet
Youre in Subnet 5
??? = 5(Subnet)x16(increment)=80
Subnet IP
177.168.80.0
SN#
Subnet ID
First Host
Last Host
Broadcast Address
198.203. 18.
0 198.203. 18.
VLSM:Variable
Standard subnetting provides a relatively small number of subnetworks, all with the same number of hosts.
VLSM allows us to split up these subnets into smaller and smaller groups, to use the addresses efficiently.
Say we were asked to subnet the 192.168.1.0/24 CIDR block, and the following were the network sizes needed:
55, 2, 28, 2, 11, 2, 2. (Networks of 2 hosts are usually between routers.)
Now, if we used standard subnetting, we would have to use the 255.255.255.240 Subnet Mask to provide 14 subnets
(because 6 isnt enough) but there are only 14 available hosts in each subnet! What do we do?
Lets start by sorting the necessary subnet sizes from largest to smallest: 55, 28, 11, 2, 2, 2, 2
Now, figure out what Subnet Mask is needed to fit 55 hosts (Check on your binary reference for powers of 2):
2H - 2 = Number of Available Hosts; So we need 2H to be at least (55 + 2). The smallest power of 2 bigger
than 55 is 26 = 64. So that means we have 6 Host Bits (from 26). That means the last octet has six zeros.
11000000. Use your cheat sheet to find that means our overall subnet mask is 255.255.255.192.
Lets see whats happening in the diagram at the bottom:
We can take one of those two available subnets and give it to the office that needs 55 hosts.
Next, we need to fit 28. 25 = 32, that will fit. That makes our last octet 11100000 or 255.255.255.224.
That split our subnet into two equal subnets with 32 hosts available. Lets do it again.
We need a subnet to fit 11 hosts now. 24 = 16, that will fit. 11110000 is our new ending octet, or
255.255.255.240. That gives us two subnets with 16 hosts each. One goes to the office with 11 hosts, and
well split up the last one.
We need a Subnet Mask to support four groups of two hosts. So we split that last subnet twice instead of once.
23 = 8... 22 = 4. That means we use 11111100 as our last octet, or 255.255.255.252.
(Connections between two routers always use this subnet mask.)
1 2 3 4
192.168.1.160
192.168.1.176
192.168.1.128
192.168.1.192 (BROADCAST)