0% found this document useful (0 votes)
168 views

Tutorial - 02 A

The document discusses IP addressing and subnetting. It contains 7 questions that cover: 1. The components of an IP address and how to determine network addresses, first address, and last address given a subnet mask. 2. Identifying which addresses belong to the same network. 3. Calculating address ranges for different subnet masks. 4. Determining the minimum number of host bits needed to create a specified number of subnets. 5. Creating subnets from a network address and calculating their subnet masks. 6. Creating subnets by taking different numbers of bits from the host ID and calculating their subnet masks. 7. Designing subnets for a company from a class C network

Uploaded by

Chanduni Gamage
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
168 views

Tutorial - 02 A

The document discusses IP addressing and subnetting. It contains 7 questions that cover: 1. The components of an IP address and how to determine network addresses, first address, and last address given a subnet mask. 2. Identifying which addresses belong to the same network. 3. Calculating address ranges for different subnet masks. 4. Determining the minimum number of host bits needed to create a specified number of subnets. 5. Creating subnets from a network address and calculating their subnet masks. 6. Creating subnets by taking different numbers of bits from the host ID and calculating their subnet masks. 7. Designing subnets for a company from a class C network

Uploaded by

Chanduni Gamage
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

_________________________________________________________________

Faculty of Information Technology, University of Moratuwa


BSc. (Hons) in Information Technology
Computer Networks – IN 2510- Tutorial 02
Level 2, Semester 2 -2015
--------------------------------------------------------------------------------------------------

1. What are two main components of an IP address?


Network ID
Host ID

2. In a block of addresses, we know the IP address of one host is 25.34.12.56/16. What is


the network address, first address and the last address in the block?
25.34.12.56/16  Host IP Address
25.34.0.0/16  Network Address
25.34.0.1/16  First Address
25.34.255.254/16  Last Address
25.34.255.255/16  Broadcast Address (not the last IP)

3. Find out which of the following addresses belong to the same network

I. 123.4.6.2 123.4.78.9 132.14.56.12 123.4.0.0


Network Address
123.4.6.2 123.0.0.0
123.4.78.9 123.0.0.0
132.14.56.12 132.14.0.0
123.4.0.0 123.0.0.0

II. 10.0.0.1 10.1.1.1 10.1.2.2 11.0.0.1


Network Address
10.0.0.1 10.0.0.0
10.1.1.1 10.0.0.0
10.1.2.2 10.0.0.0
11.0.0.1 11.0.0.0

III. 172.16.16.16 172.17.16.16 173.16.16.16 173.16.16.20


Network Address
172.16.16.16 172.16.0.0
172.17.16.16 172.17.0.0
173.16.16.16 173.16.0.0
173.16.16.20 173.16.0.0
4. Find the range of address in following blocks.

I. 123.56.77.32/29
Host part

1111 1111.1111 1111. 1111 1111.1111 1000  Subnet Mask

123 . 56 . 77 .0010 0001 = 123.56.77.33  1st ip address


123 . 56 . 77 .0010 0110 = 123.56.77.38  last ip address

II. 200.17.21.128/27

Host part

1111 1111.1111 1111.1111 1111.1110 0000  Subnet Mask

200 . 17 . 21 .1000 0001 = 200.17.21.129  1st ip


200 . 17 . 21 .1001 1110 = 200.17.21.158  last ip

III. 17.34.16.0/23

Host part

1111 1111.1111 1111.1111 1110.0000 0000  Subnet Mask

17 . 3 4 .0001 0000.0000 0001 = 17.34.16.1  1st ip


17 . 3 4 .0001 0001.1111 1110 = 17.34.17.254  last ip

IV. 180.34.64.64/30

Host part

1111 1111.1111 1111.1111 1111.1111 1100  Subnet Mask

180 . 34 . 64 .0100 0001 = 180.34.64.65  1st ip


180 . 34 . 64 .0100 0010 = 180.34.64.66  last ip
5. You are given the network address 175.200.0.0; you are required to have 4 subnets.
What is the minimum number of Host Bits can you take in to the Network Bits for this
purpose?

Write down the addresses of 4 subnets. Write the subnet mask for the network.

175.200.0.0/16 Class B
4 subnets

3-bits (23 - 2 = 6 combinations)

175.200. 0 0 0 0 0 0 0 0. 0 0 0 0 0 0 0 0

175.200. 0 0 0 0 0 0 0 0 . 0  175.200.0.0/19  NOT USED

175.200. 0 0 1 0 0 0 0 0 . 0  175.200.32.0/19

175.200. 0 1 0 0 0 0 0 0 . 0  175.200.64.0/19

175.200. 0 1 1 0 0 0 0 0 . 0  175.200.96.0/19

175.200. 1 0 0 0 0 0 0 0 . 0  175.200.128.0/19

175.200. 1 0 1 0 0 0 0 0 . 0  175.200.160.0/19

175.200. 1 1 0 0 0 0 0 0 . 0  175.200.192.0/19

175.200. 1 1 1 0 0 0 0 0 . 0  175.200.224.0/19 NOT USED

Subnet Mask = 1111 1111.1111 1111.1110 0000.0000 0000


= 255.255.224.0
6. You are given the network address 50.0.0.0; if you take 9-bits and 10-bits from Host ID
part to create subnets, write down the first and last 6-subnet addresses. Also write the
subnet mask in both the cases.

50 . 0 . 0 . 0 /8 Class A

Net ID Host ID

Take 9-bits from Host ID part

50 . 0 0 0 0 0000.0000 0 0 0 0 . 0  50.0.0.0/17  Not used


50 . 0 0 0 0 0000.1000 0 0 0 0 . 0  50.0.128.0/17
50 . 0 0 0 0 0001.0000 0 0 0 0 . 0  50.1.0.0/17
50 . 0 0 0 0 0001.1000 0 0 0 0 . 0  50.1.128.0/17
50 . 0 0 0 0 0010.0000 0 0 0 0 . 0  50.2.0.0/17
50 . 0 0 0 0 0010.1000 0 0 0 0 . 0  50.2.128.0/17
50 . 0 0 0 0 0011.0000 0 0 0 0 . 0  50.3.0.0/17

50 . 1 1 1 1 1100.1000 0 0 0 0 . 0  50.252.128.0/17
50 . 1 1 1 1 1101.0000 0 0 0 0 . 0  50.253.0.0/17
50 . 1 1 1 1 1101.1000 0 0 0 0 . 0  50.253.128.0/17
50 . 1 1 1 1 1110.0000 0 0 0 0 . 0  50.254.0.0/17
50 . 1 1 1 1 1110.1000 0 0 0 0 . 0  50.254.128.0/17
50 . 1 1 1 1 1111.0000 0 0 0 0 . 0  50.255.0.0/17
50 . 1 1 1 1 1111.1000 0 0 0 0 . 0  50.255.128.0/17 Not used

Subnet Mask = 1111 1111.1111 1111.1000 0000.0000 0000


= 255.255.128.0

Take 10-bits from Host ID part

50 . 0 0 0 0 0000.0000 0 0 0 0 . 0  50.0.0.0/18 Not used


50 . 0 0 0 0 0000.0100 0 0 0 0 . 0  50.0.64.0/18
50 . 0 0 0 0 0000.1000 0 0 0 0 . 0  50.0.128.0/18
50 . 0 0 0 0 0000.1100 0 0 0 0 . 0  50.0.192.0/18
50 . 0 0 0 0 0001.0000 0 0 0 0 . 0  50.1.0.0/18
50 . 0 0 0 0 0001.0100 0 0 0 0 . 0  50.1.64.0/18

50 . 1 1 1 1 1110.1000 0 0 0 0 . 0  50.254.128.0/18
50 . 1 1 1 1 1110.1100 0 0 0 0 . 0  50.254.192.0/18
50 . 1 1 1 1 1111.0000 0 0 0 0 . 0  50.255.0.0/18
50 . 1 1 1 1 1111.0100 0 0 0 0 . 0  50.255.64.0/18
50 . 1 1 1 1 1111.1000 0 0 0 0 . 0  50.255.128.0/18
50 . 1 1 1 1 1111.1100 0 0 0 0 . 0  50.255.192.0/18 Not used

Subnet Mask = 1111 1111.1111 1111.1100 0000.0000 0000


= 255.255.192.0
7. A company is granted the network address 201.70.64.0 (Class C). The company needs
six (6) subnets. Design the subnets. Give the subnet mask. Also write the first 2 and last 2
IP addresses of the hosts in each of those subnets.

201.70.64 . 0000 0000  201.70.64.0/27


. 001  201.70.64.32/27
. 010  201.70.64.64/27
. 011  201.70.64.96/27
. 100  201.70.64.128/27
. 101  201.70.64.160/27
. 110  201.70.64.192/27
. 111  201.70.64.224/27

Subnet Mask = 255.255.255.224

Subnet 1: 201.70.64.32/27

201.70.64. 0 0 1 0 0 0 0 1  201.70.64.33
201.70.64. 0 0 1 0 0 0 1 0  201.70.64.34

201.70.64. 0 0 1 1 1 1 0 1  201.70.64.61
201.70.64. 0 0 1 1 1 1 1 0  201.70.64.62

Subnet 2: 201.70.64.64/27

201.70.64. 0 1 0 0 0 0 0 1  201.70.64.65
201.70.64. 0 1 0 0 0 0 1 0  201.70.64.66

201.70.64. 0 1 0 1 1 1 0 1  201.70.64.93
201.70.64. 0 1 0 1 1 1 1 0  201.70.64.94

Subnet 3: 201.70.64.96/27

201.70.64. 0 1 1 0 0 0 0 1  201.70.64.97
201.70.64. 0 1 1 0 0 0 1 0  201.70.64.98

201.70.64. 0 1 1 1 1 1 0 1  201.70.64.125
201.70.64. 0 1 1 1 1 1 1 0  201.70.64.126

Subnet 4: 201.70.64.128/27

201.70.64. 1 0 0 0 0 0 0 1  201.70.64.129
201.70.64. 1 0 0 0 0 0 1 0  201.70.64.130

201.70.64. 1 0 0 1 1 1 0 1  201.70.64.157
201.70.64. 1 0 0 1 1 1 1 0  201.70.64.158
Subnet 5: 201.70.64.160/27

201.70.64. 1 0 1 0 0 0 0 1  201.70.64.161
201.70.64. 1 0 1 0 0 0 1 0  201.70.64.162

201.70.64. 1 0 1 1 1 1 0 1  201.70.64.189
201.70.64. 1 0 1 1 1 1 1 0  201.70.64.190

8. An organization is granted the block 16.0.0.0 in class A. The administrator wants to


create 500 subnets.
I. Find the subnet mask.

16.0.0.0/8
500 subnets
29 - 2 = 510 So 9-bits should be taken from host part.

Subnet Mask = 255.255.128.0 or /17

II. Find the number of addresses in each subnet.

215 – 2 = 65534

III. Find the first and last address in the first subnet.

1st subnet = 16.0.128.0/17

16.0 . 1000 0000 . 0000 0001  16.0.128.1

16.0 . 1111 1111 . 1111 1110  16.0.255.254

IV . Find the first and last address in the last subnet.

Last subnet = 16.1111 1010.0000 0000.0 = 16.250.0.0/17

16.250. 0000 0000 . 0000 0001  16.250.0.1

16.250. 0111 1111 . 1111 1110  16.250.127.254


9. An organization is granted the block 130.56.0.0 in class B. The administrator wants to
create 1024 subnets.
I. Find the subnet mask.

130.56.0.0/16 Class B
1024 subnets 211 – 2 = 2046

Subnet Mask = 1111 1111.1111 1111.1111 1111.1110 0000


= 255.255.255.224

II. Find the number of addresses in each subnet.

25 – 2 = 30

III. Find the first and last address in the first subnet.

1st subnet = 130.56.0.32/27

130.56. 0 0 0 0 0 0 0 0 . 0 0 1 0 0 0 0 1  130.56.0.33
130.56. 0 0 0 0 0 0 0 0 . 0 0 1 1 1 1 1 0  130.56.0.62

IV. Find the first and last address in the last subnet (subnet 1024)

last subnet = 130.56.1000 0000.0000 0000 = 130.56.128.0/27

130.56.128. 0 0 0 0 0 0 0 1  130.56.128.1
130.56.128. 0 0 0 1 1 1 1 0  130.56.128.30
10. An organization is granted the block 211.17.180.0 in class C. The administrator wants
to create 32 subnets.
I. Find the subnet mask.

32 subnets 26 – 2 = 62

Subnet Mask = 1111 1111.1111 1111.1111 1111.1111 1100


= 255.255.255.252

II. Find the number of addresses in each subnet.

22 – 2 = 2

III. Find the first and the last address in the first subnet.

1st subnet = 211.17.180.0 0 0 0 0 1 0 0  211.17.180.4/30

211.17.180. 0 0 0 0 0 1 0 1  211.17.180.5/30
211.17.180. 0 0 0 0 0 1 1 0  211.17.180.6/30

IV. Find the first and the last address in the last subnet (subnet 32)

last subnet = 211.17.180.1 0 0 0 0 0 0 0 = 211.17.180.128/30

211.17.180. 1 0 0 0 0 0 0 1  211.17.180.129/30
211.17.180. 1 0 0 0 0 0 1 0  211.17.180.130/30

You might also like