Вы находитесь на странице: 1из 5

Lab: IP Addressing and Sub-netting

Date: 08-Sept-2016
Session-4
1. What is the broadcast address for network 156.26.0.0/16?
ANS > broadcast address 156.26.255.255
2. What is the broadcast address for network 156.26.0.0/24?
ANS > broadcast address 156.26.0.255
3. What is the broadcast address for network 156.26.0.0/28?
ANS > broadcast address 156.26.0.15
4. The Class C address 195.14.22.0 is subnetted using a 27-bit subnet
mask. How many subnets are there and what are the network numbers?
ANS > Num of subnets =2^3=8
NETWORK NUMBERS
a 195.14.22.1

to 195.14.22.31

b 195.14.22.32

to 195.14.22.63

c 195.14.22.64

to 195.14.22.95

d 195.14.22.96

to 195.14.22.127

e 195.14.22.128

to 195.14.22.159

f 195.14.22.160 to 195.14.22.191
g 195.14.22.192 to 195.14.22.223
@ITSS C-DAC Bengaluru 2016

h 195.14.22.224

- 195.14.22.254

5. What is the range of host addresses for the network 195.14.22.64/27?


ANS > 195.14.22.63 to 195.14.22.94
6. What is the broadcast address for network 195.14.22.64/27?
ANS > 195.14.22.95
7. You need to subnet a network that has 5 subnets, each with at least 16
hosts. Which classful subnet mask would you use? Explain.
Class C. Because class C has 1 host and we take 1st 3 bits of host
byte so that we can get 8 subnets in which we will get 5 subnets. Using
the remaining 5 host bits, we get maximum of 32 hosts. Out of which 1
will be for network id and last will be for broadcast id. So out of 32 we
can have 16 hosts in each subnet.
8. You have a network that needs 29 subnets while maximizing the
number of host addresses available on each subnet. How many bits must
you borrow from the host field to provide the correct subnet mask?
ANS > FIVE
9. If an Ethernet port on a router were assigned an IP address of
172.16.112.1/25, what would be the valid subnet address of this host?
ANS >

172.16.112.128 to 172.16.112.254

@ITSS C-DAC Bengaluru 2016

10. You have an interface on a router with the IP address of


192.168.192.10/29. Including the router interface, how many hosts can
have IP addresses on the LAN attached to the router interface?
ANS >

(2^3)-2=6

11. What is the subnetwork number of a host with an IP address of


172.16.66.0/21?
ANS >.

172.16.64.1 to 172.16.71.254

12. The network address of 172.16.0.0/19 provides how many subnets


and hosts?
ANS >.

Subnets=8 and hosts=(2^13)-2=8190

13. You have an interface on a router with the IP address of


192.168.192.10/29. What is the broadcast address the hosts will use on
this LAN?
ANS >

192.168.192.15

14. If a host on a network has the address 172.16.45.14/30, what is the


subnetwork this host belongs to?
ANS >

172.16.45.12 to 172.16.45.15

15. Assume that your company has been assigned the Class B address
156.26.0.0, you have the following requirements for your company's
network:

A maximum of 60 Class C size networks (1254 hosts)


A maximum of 14 networks having a maximum of 10 hosts

Four point-to-point networks

@ITSS C-DAC Bengaluru 2016

You need to satisfy these requirements, and you want to have addresses
in reserve that you can use if your company expands.

ANS > To satisfy the first requirement of a maximum of 60 Class C size


networks, subnet the 156.26.0.0/18 address into Class C size or /24
subnets. How many Class C size subnets will this provide? We are using
an additional 6 bits to subnet the 156.26.0.0/18 network, and 26 = 64
subnets. This will be sufficient to satisfy the first requirement.
How were these network numbers determined? The 156.26.0.0/18 network was derived from the
156.26.0.0/16 network. The first 16 bits are fixed and equal to 156.26.
For the first requirement, use networks 156.26.0.0/24 through 156.26.59.0/24.
To satisfy the second requirement, use the last Class C size network, 156.26.63.0, and subnet it to
the proper size. For a maximum of 10 hosts, you will need 4 bits for the host address. With 4 bits,
a network can support 14 hosts (16 2). Because a Class C size network is being subnetted, there
are only 8 bits to work with (the last byte). Four bits are needed for the hosts, which leaves 4 bits
for the network. The requirement is 14 networks, and 4 network bits can support 16 networks.
The last byte is divided, so 4 bits are used for the network and 4 bits for the host:
N N N N H H H H

The networks addresses are


0 0
0 0
0 0
...
1 1
1 1

0 0 0 0 0 0 =
0 1 0 0 0 0 =
1 0 0 0 0 0 =
...
1 0 0 0 0 0 =
1 1 0 0 0 0 =

0
16
32
224
240

156.26.63.0/28
156.26.63.16/28
156.26.63.32/28
156.26.63.224/28
156.26.63.240/28

The host addresses are


156.26.63.1156.26.63.14
156.26.63.17156.26.63.30
156.26.63.33156.26.63.46
...
156.26.63.225156.26.63.238
156.26.63.241156.26.63.254

For the final requirement of four point-to-point networks, the 156.26.63.240 network will be
subnetted using a 30-bit mask. A point-to-point network requires only two host addresses.

@ITSS C-DAC Bengaluru 2016

There are 4 bits available on the 156.26.63.240/28 subnet. Two are needed for the host bits. The
two remaining bits are sufficient for the four point-to-point networks that are required. The last
byte of the 156.26.63.240 is used for the final subnetting operation:
1 1 1 1 N N H H

The network numbers using a 30-bit mask are


1
1
1
1

1
1
1
1

1
1
1
1

1
1
1
1

0
0
1
1

0
1
0
1

0
0
0
0

0
0
0
0

=
=
=
=

240
244
248
252

156.26.63.240
156.26.63.244
156.26.63.248
156.26.63.252

@ITSS C-DAC Bengaluru 2016

Вам также может понравиться