??xml version="1.0" encoding="utf-8" standalone="yes"?>
Subnetworks exercises 2:
Basics:
Deal addresses for subnet shown in the picture so that every interface of a router has its own address of that subnet and so that in the cloud all hosts have enough addresses. Remember to reserve addresses also for network and broadcast addresses. In one network there can be only one subnet. Use variable length subnet masks (VLSM) for optimal subnets. Reserve for growth need not take into account.
Exercise 1:
Usable address space:
192.168.0.0/22
Amount of hosts in the networks:
A: 15
B: 51
C: 31
D: 370
E: 1
F: 16
G: 24
H: 4
I: 24
J: No hosts, only the interfaces of the routers.
D: 192.168.0.0/23 --- 192.168.1.255/23
B: 192.168.2.0/26 --- 192.168.2.63/26
C: 192.168.2.64/26 --- 192.168.2.127/26
G: 192.168.2.128/27 --- 192.168.2.159/27
I: 192.168.2.160/27 --- 192.168.2.191/27
A: 192.168.2.192/27 --- 192.168.2.223/27
H: 192.168.2.224/28 --- 192.168.2.239/28
E: 192.168.2.240/29 --- 192.168.2.247/29
J: 192.168.2.248/30 --- 192.168.2.251/30
How many addresses are out of use?
255-251 = 4, from 192.168.3.0 to 192.168.3.255, there are 256, so totally, 260 are out of use.
Exercise 2:
Usable address spaces:
192.168.0.0/25
192.168.128.0/26
192.168.128.192/26
Amount of hosts in the networks:
A: 2
B: 4
C: 6
D: 25
E: 3
F: 15
G: 10
H: 1
I: 45
J No hosts, only the interfaces of the routers.
I: 192.168.0.0/26 --- 192.168.0.63/26
D: 192.168.0.64/27 --- 192.168.0.95/27
F: 192.168.0.96/27 --- 192.168.0.127/27
G: 192.168.128.0/28 --- 192.168.128.15/28
C: 192.168.128.16/28 --- 192.168.128.31/28
B: 192.168.128.32/29 --- 192.168.128.39/28
E: 192.168.128.40/29 --- 192.168.128.47/29
H: 192.168.128.48/29 --- 192.168.128.55/29
A: 192.168.128.56/29 --- 192.168.128.63/29
J: 192.168.128.192/30 --- 192.168.128.195/30
How many addresses are out of use?
255-195 = 60 addresses are out of use.
195.148.9.213 and subnet mask 255.255.255.224
What was the number of the subnet?
213 = 11010101, 224 = 11100000, 213 & 224 = 11000000 = 192
Network address is 195.148.9.192, broadcast address is 195.148.9.223
2^3 = 8 subnets
2. What is the mask if the network address is 199.167.100.0 and
broadcast address is 199.167.100.255?
The mask is 255.255.255.0
3. Is the address 172.21.64.0 with mask 255.255.192.0 the host, network or
broadcast address?
64 = 1000000, 192 = 11000000, the address is network address
4. What are the network and broadcast addresses if the host address
172.21.200.4 and subnet mask 255.255.255.192?
How many subnets together? How many addresses in a network?
4 = 100, 192 = 11000000, 4 & 192 = 0
Network address is 172.21.200.0, broadcast address is 172.21.200.63
2^2 = 4 subnets, 2^6 = 64 addresses in a network
5. What are network and broadcast addresses if the host address is
201.7.110.76 and subnet mask 255.255.255.240?
How many subnets together?
76 = 1001100, 240 = 11110000, 76 & 240 = 01000000 = 64
Network address is 201.7.110.64, broadcast address is 201.7.110.79
2^4 = 16 subnets
6. Deal a class C network to 32 subnets How many addresses are there in every
subnet? How many bits are there in the subnet mask?
2^5 = 32, 8-5 = 3
2^3 = 8 addresses in every subnet, 29 bits in the subnet mask
7. (VLSM) The router connects five subnets. Account of hosts: 3, 5, 10, 30
and 100 pcs. Deal one class C network so that every network has enough
addresses. Remember to calculate one address for the interface of the router.
How many unusable addresses are left?
Assume the class C network is 194.211.79.0, subnet a, b, c, d, e stand for 3, 5, 10, 30, 100 pcs
194.211.79.0/25 --- 194.211.79.127/25 for e
194.211.79.128/26 --- 194.211.79.191/26 for d
194.211.79.192/28 --- 194.211.79.207/28 for c
194.211.79.208/28 --- 194.211.79.223/28 for b
194.211.79.240/29 --- 194.211.79.247/29 for a
240-223-1+255-247 = 24 unusable addresses are left