Академический Документы
Профессиональный Документы
Культура Документы
CLASSLESS ROUTING
CLASSFUL ADDRESSING
The original IPv4 address architecture used an 8 bit
network number for Class A addresses, a 16 bit
network number for Class B addresses, and a 24
bit network number for Class C addresses.
Class A
1 - 126
Network
Class B
Host
128 - 191
Network
Class C
CCNA v3.0 Semester 3
Host
192 - 223
Network
Host
CLASSFUL ADDRESSING
Number of
Network Bits
Number of
Host Bits
Decimal
Address
Range
Number of
Addresses
Number of
Possible Host
Class A
Large
Networks
8 bits
24 bits
1 - 126
126
16,777,214
Class B
Medium-sized
Networks
16 bits
16 bits
128 - 191
65,534
65,534
Class C
Small Networks
24 bits
8 bits
192 - 223
2,097,152
254
Address
Class
3
CCNA v3.0 Semester 3
WHAT IS VLSM?
A Variable Length Subnet Mask (VLSM) is a means
of allocating IP addressing resources to subnets
according to their individual need rather than
some general network-wide rule.
VLSM allows an organization to use more than one
subnet mask within the same network address
space. It is often referred to as subnetting a
subnet, and can be used to maximize addressing
efficiency.
Large subnets are created for addressing LANs and
small subnets are created for WAN links (a 30 bit
mask is used to create subnets with only two
host).
CCNA v3.0 Semester 3
5
CCNA v3.0 Semester 3
RIP v2
EIGRP
OSPF
6
CCNA v3.0 Semester 3
Site B
Site C
10 users
8 users
207.21.24.0 /24
25 users
25 users
Site A
25 users
Site B
Site C
10 users
8 users
207.21.24.0
207.21.24.32
207.21.24.64
207.21.24.96
207.21.24.128
207.21.24.160
207.21.24.192
207.21.24.224
Bits
Masked
/27
/27
/27
/27
/27
/27
/27
/27
207.21.24.0
Site A
25 users 25 users
Site B
10 users
Site C
8 users
9
CCNA v3.0 Semester 3
Subnetting in a Box
To begin, in a
class C network
there are 256
addresses. When
we subnet the
address, we break
it down in to
smaller units or
subnets.
256 addresses
11
255
Subnetting in a Box
If we were to
borrow 1 bit, it
would break the
256 addresses in
to two parts
(networks) with
each part (subnet)
having 128
addresses.
128
128 addresses
128 addresses
127
12
255
Subnetting in a Box
0
If we were to
borrow 2 bits, it
would break each
of these 2
networks in half
again. This would
give us 4
networks, each
with 64 addresses.
128
64 addresses
64 addresses
63
192
64
64 addresses
191
64 addresses
127
13
255
Subnetting in a Box
32
0
128
160
If we were to
borrow 3 bits, it
would break each
of these 4
32
32
32
32
networks in half
addresses addresses addresses addresses
again. This would
give us 8
networks, each
159
31
63
191
with 32 addresses.
64
192
96
32
addresses
95
32
addresses
127
224
32
addresses
223
32
addresses
14
255
Subnetting in a Box
0
If we were to
borrow 4 bits, it
16
would break each
addresses
of these 8
15
networks in half
16
again. This would
16
give us 16
addresses
networks, each
31
with 16 addresses.
64
128
16
addresses
47
16
addresses
16
addresses
16
addresses
95
16
addresses
159
191
224
16
addresses
16
addresses
239
207
208
127
175
176
16
addresses
111
16
addresses
16
addresses
143
192
112
16
addresses
16
addresses
63
79
160
144
48
96
80
32
240
16
addresses
223
16
addresses
15
255
16
207.21.24.0
207.21.24.32
207.21.24.64
207.21.24.96
207.21.24.128
207.21.24.160
207.21.24.192
207.21.24.224
Masked
/27
/27
/27
/27
/27
/27
/27
/27
Site A
25 users
25 users
Site B
Site C
10 users
8 users
17
Site A
Free
Addresses
Site B &
WANClinks
0
1
2
3
4
5
6
7
207.21.24.0 /27
207.21.24.32 /27
207.21.24.64 /27
207.21.24.96 /27
207.21.24.128 /27
207.21.24.160 /27
207.21.24.192 /27
207.21.24.224 /27
25 users 25 users
10 users
8 users
Sub-subnet 0 207.21.24.160
Sub-subnet 1 207.21.24.176
/28
/28
Site B
Site C
Sub-subnet 0
Sub-subnet 1
Sub-subnet 2
Sub-subnet 3
Sub-subnet 4
Sub-subnet 5
Sub-subnet 6
Sub-subnet 7
/30
/30
/30
/30
/30
/30
/30
/30
WAN
1&2
207.21.24.192
207.21.24.196
207.21.24.200
207.21.24.204
207.21.24.208
207.21.24.212
207.21.24.216
207.21.24.220
Free
Addresses
18
Site A
207.21.24.192 /
30
207.21.24.32 /27
25 users
207.21.24.196 /
30
207.21.24.64 /27
25 users
Site C
207.21.24.160 /
28
10 users
207.21.24.176 /
28
8 users
19
CCNA v3.0 Semester 3
60 users
Branch 1
12 users
Branch 2
12 users
Branch 3
12 users
Branch 4
12 users
Branch 5
12 users
20
CCNA v3.0 Semester 3
Given the IP
address
195.39.71.0 /24,
subnet according
to the largest
subnet needed.
(Headquarters 60
hosts)
128
63
192
64
127
CCNA v3.0 Semester 3
191
255
21
Playing it safe, we
will not use the
first subnet
(subnet 0).
64
We will start
addressing with
195.39.71.64 /26.
Headquarters
needs 60 hosts, so
we will assign
them .64 - .127.
128
192
Headquarters
60 hosts
26 bit mask or /26
(255.255.255.192)
22
CCNA v3.0 Semester 3
The 5 Branch
offices only need
12 hosts each.
The next address
block available is
the .128 - .191
block (64
addresses). Here
we will apply
VLSM.
Using a /28 mask
will give us 16
hosts at each
location. This will
take care of 4 of
the Branch offices.
CCNA v3.0 Semester 3
128
160
Branch 3
Branch 1
12 hosts
12 hosts
/28
/28
(255.255.255.240) (255.255.255.240)
144
176
Branch 4
Branch 2
12 hosts
12 hosts
/28
/28
(255.255.255.240) (255.255.255.240)
192
64
Headquarters
60 hosts
26 bit mask or /26
(255.255.255.192)
23
To obtain a block
for Branch 5, we
will need to subnet
the .192 - .255
block using a /28
mask.
128
160
Branch 3
Branch 1
12 hosts
12 hosts
/28
/28
(255.255.255.240) (255.255.255.240)
144
176
Branch 4
Branch 2
12 hosts
12 hosts
/28
/28
(255.255.255.240) (255.255.255.240)
192
64
Headquarters
60 hosts
26 bit mask or /26
224
Branch 5
12 hosts
/28
(255.255.255.240)
208
(255.255.255.192)
24
CCNA v3.0 Semester 3
0
Now we need to
address the 5
WAN links that
connect to the
Branch offices.
These are point-topoint connections
and only require 2
addresses.
128
Branch 3
Branch 1
12 hosts
12 hosts
/28
/28
(255.255.255.240) (255.255.255.240)
144
176
Branch 4
Branch 2
12 hosts
12 hosts
/28
/28
(255.255.255.240) (255.255.255.240)
192
64
160
Headquarters
60 hosts
26 bit mask or /26
(255.255.255.192)
224
WAN
1
Branch 5
12 hosts
/28
228
(255.255.255.240) WAN
2
208
240
WAN
5
232
WAN
3
236
WAN
4
248
244
25
CCNA v3.0 Semester 3
The remaining
networks could be
used for future
growth of either
LANs or WANs.
Subnet 0 could
also be further
subnetted
according to the
needs of the
network.
128
160
Branch 3
Branch 1
12 hosts
12 hosts
/28
/28
(255.255.255.240) (255.255.255.240)
144
176
Branch 4
Branch 2
12 hosts
12 hosts
/28
/28
(255.255.255.240) (255.255.255.240)
192
64
Headquarters
60 hosts
26 bit mask or /26
(255.255.255.192)
224
WAN
1
Branch 5
12 hosts
/28
228
(255.255.255.240) WAN
2
208
240
WAN
5
232
WAN
3
236
WAN
4
248
244
26
CCNA v3.0 Semester 3
5 .3
9 .7
19
195.39.71.144 /28
195.39.71.160 /28
5 .3
9 .7
1 .2
24
/30
30
0/
195.39.71.128 /28
19
.22
.71
1.2
12
/3 0
30
9
5.3
19
19
5.3
9 .7
1.2
/
08
195.39.71.216 /30
195.39.71.64 /26
195.39.71.176 /28
195.39.71.192 /28
27
CCNA v3.0 Semester 3
Prefix Equivalents
Network Prefix
Number of Hosts
/27
1/8th of a Class C
32
/26
1/4th of a Class C
64
/25
1/2 of a Class C
128
/24
1 Class C or 1 /24
256
/23
2 Class C or 2 /24s
512
/22
4 Class C or 4 /24s
1,024
/21
8 Class C or 8 /24s
2,048
/20
16 Class C or 16 /24s
4,096
/19
32 Class C or 32 /24s
8,192
/18
64 Class C or 64 /24s
16,384
/17
32,768
/16
65,536
/15
131,072
/14
262,144
/13
524,288
/12
1,048,576
/11
2,097,152
/10
4,194,304
/9
8,388,608
/8
16,777,216
33