SUBNET-2
SUBNET-2
2
Subnetting vs. VLSM
• Subnetting allows you to divide big networks
into smaller, equal-sized slices.
3
Addressing a Network with
Standard Subnetting
• Site A has two Ethernet networks
• Site B had one Ethernet network
• Site C had one Ethernet network
Site A Site B Site C
207.21.24.0 /24
25 users 25 users 10 users 8 users
How many network addresses are needed?
4
Addressing a Network with
Standard Subnetting
• Site A has two Ethernet networks Site A Site B Site C
6
Subnetting in a Box
To begin, in a 0
class C network
there are 256
addresses. When
we subnet the
address, we break
it down in to
smaller units or
subnets. 256 addresses
255
7
Subnetting in a Box
If we were to 0 128
borrow 1 bit, it
would break the
256 addresses in
to two parts
(networks) with
each part (subnet)
having 128
addresses. 128 addresses 128 addresses
The subnet mask
would be
255.255.255.128.
127 255
8
Subnetting in a Box
If we were to 0 128
borrow 2 bits, it
would break each
of these 2
networks in half 64 addresses 64 addresses
again. This would
give us 4
networks, each
with 64 addresses. 63 191
64 192
The subnet mask
would now be
255.255.255.192.
64 addresses 64 addresses
127 255
9
Subnetting in a Box
If we were to 0 32 128 160
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
31 63 159 191
with 32 addresses.
64 96 192 224
The subnet mask
would now be
255.255.255.224.
32 32 32 32
addresses addresses addresses addresses
Bits
Subnet # Subnet Address
Masked Site A Site B Site C
0 207.21.24.0 /27
1 207.21.24.32 /27
2 207.21.24.64 /27
3 207.21.24.96 /27
25 users 25 users 10 users 8 users
4 207.21.24.128 /27
5 207.21.24.160 /27
6 207.21.24.192 /27
7 207.21.24.224 /27
13
Addressing a Network Using VLSM
Subnet 1 & 2 can be used to address Site A Ethernet
networks. Subnet 5 can be subnetted to accommodate
Site B & C Ethernet networks. Subnet 6 can be subnetted
to accommodate the WAN links. Site A Site B Site C
207.21.24.192 207.21.24.196
/30 /30
15
Addressing a Network Using VLSM
Exercise 1
Your company has been assigned IP network 195.39.71.0 /24.
Given that headquarters (60 hosts) is connected to five branch
offices (12 hosts each) by a WAN link, and to an ISP (the ISP
owns the addresses on that link), determine an appropriate IP
addressing scheme.
Headquarters
60 users ISP
16
Given the IP 0 128
address
195.39.71.0 /24,
subnet according
to the largest
subnet needed.
(Headquarters 60
hosts)
63 191
18
The 5 Branch 0 128 160
offices only need Branch 1 Branch 3
12 hosts 12 hosts
12 hosts each. /28 /28
(255.255.255.240) (255.255.255.240)
The next address
144 176
block available is Branch 2 Branch 4
the .128 - .191 12 hosts 12 hosts
block (64 /28 /28
(255.255.255.240) (255.255.255.240)
addresses). Here
we will apply 64 192
VLSM.
Headquarters
Using a /28 mask 60 hosts
will give us 16
26 bit mask or /26
hosts at each
(255.255.255.192)
location. This will
take care of 4 of
the Branch offices.
19
To obtain a block 0 128 160
for Branch 5, we Branch 1 Branch 3
12 hosts 12 hosts
will need to subnet /28 /28
the .192 - .255 (255.255.255.240) (255.255.255.240)
64 192 224
Branch 5
12 hosts
Headquarters
/28
60 hosts (255.255.255.240)
20
Now we need to 0 128 160
address the 5 Branch 1 Branch 3
12 hosts 12 hosts
WAN links that /28 /28
connect to the (255.255.255.240) (255.255.255.240)
Branch offices.
144 176
These are point-to- Branch 2 Branch 4
point connections 12 hosts 12 hosts
/28 /28
and only require 2 (255.255.255.240) (255.255.255.240)
addresses.
64 192 224 232
Branch 5 WAN
5
Here we will use Headquarters 12 hosts
/28 228 236
a /30 mask to 60 hosts (255.255.255.240)
further subnet the
26 bit mask or /26
subnets. 208 216 240
(255.255.255.192) WAN WAN
1 3
212 220
WAN WAN
2 4
21
Subnet 0 could be 0 128 160
used later if Branch 1 Branch 3
12 hosts 12 hosts
needed for future /28 /28
growth of HQ or (255.255.255.240) (255.255.255.240)
212 220
WAN WAN
2 4
22
Applying the Addresses to the Topology
Address
195.39.71.64 /26 provided by ISP
195.39.71.216 /30
/ 30 19
5.3
/30
08
19
9.7
1 .2 12
1.2
5.3
9.7 24
1 .2
5 .3
9.7
19 /3 0
9.7
1.2
5.3
20
19
/3 0
195.39.71.128 /28 195.39.71.144 /28 195.39.71.160 /28 195.39.71.176 /28 195.39.71.192 /28
23