0% found this document useful (0 votes)
52 views13 pages

Networking Assignment

The document outlines various networking assignments involving subnetting, IP address configuration, and host calculations. It includes solutions for configuring servers, determining subnet masks, calculating the number of subnets and hosts, and converting binary to decimal. Additionally, it addresses issues related to network connectivity between devices.

Uploaded by

marcolifa167
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views13 pages

Networking Assignment

The document outlines various networking assignments involving subnetting, IP address configuration, and host calculations. It includes solutions for configuring servers, determining subnet masks, calculating the number of subnets and hosts, and converting binary to decimal. Additionally, it addresses issues related to network connectivity between devices.

Uploaded by

marcolifa167
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

NETWORKING ASSIGNMENT.

1. You need to configure a server that is on the subnet mask of


192.168.19.24/29.The router has the first available host address.
Which subnet mask you should assign to the server.

Solutions.

Subnet address = 192.168.19.24/29


- 29 bits reserved for the network portion and 3 bits for the host
portion.
- The subnet musk for /29 can be derived as follows:

• Binary:
11111111.11111111.11111111.11111000

• Decimal:
255.255.255.248

Thus, the subnet mask is 255.255.255.248

-To calculate the subnet block size.


The number of possible IP addresses in a/29 subnet is determined by 2h,
where h Is the number of host bits (32-29=3 host bits). Therefore

23=8 IP addresses per subnet.

-To determine the range of IP addresses in the subnet.


The block size is determined by the least significant bit in the subnet
mask:

256-248=8
The subnet ranges around 192.168.19.24 are:
192.168.19.24/29:192.168.19.24 to 192.168.19.31
Answers:

The router has the first available host address, which is


192.168.19.25
The server should be assigned another available host address
192.168.19.26
The server should also use the subnet mask 255.255.255.248 to
stay within the same subnet.

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


hosts?

Solutions.
• Determine the class of IP address.
-172.16.0.0 is a class B IP address.
-For class B the default subnet mask is /16.
-In this case the subnet mask is /19, which means 3 additional
bits are borrowed for subnetting(19-16=3).

• Calculate the number of subnets.

Number of subnets =2n

Where n is the number of bits borrowed for subnetting. Her,


n=3

So;

Number of subnet =23 =8

• Calculate the number of hosts per subnet.

The number of host bits in the subnet is

Host bits=32-29 =13

Number of hosts per subnet=2h-2


Where h is the number of hosts bits ,and we subtract 2 for the
network and broadcast addresses. h=13,so
No. of hosts per subnet =213 – 2=8192-2=8190

So;

Number of subnet are 8,


Number of hosts per subnet are 8190.

3. 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?

Solutions.
• This 29 bits are used for the network portion leaving 342-29=3
bits for the host portion.

-The subnet mask of ip addderess 192.168.192.10/29is


255.255.255.248

• To calculate the total number of IP address in the subnet

Total IP adderess=2h ,where h number of hosts bits h=3


- 23 =8
So;

Subnet range : 192.168.192.8 to 192.168.192.15

Network address=192.168.192.8

Broadcast address=192.168.192.15

Usable host addresses=192.168.192.9 to 192.168.192.14

• To caunt the usable host address


Usable hosts=Total IP address -2
8 – 2=6

So ;

Number of usable hosts (including the router interface) are 6


4. You need to subnet a network that has 5 subnets, each with at least 16
hosts. Which classful subnet mask would you use?
255.255.255.192
255.255.255.224
255.255.255.240
255.255.255.248
Solutions.
Step 1: Understand the requirements
5 subnets: This means we need enough bits to create at least 5 different
subnets.
Each subnet must have at least 16 hosts: The minimum hosts required per
subnet will be 16, so we need to calculate how many usable IPs we have per
subnet.
Step 2: Calculate the number of usable IPs per subnet

The formula for calculating the number of usable hosts in a subnet is:
Number of usable hosts = 2n – 2
2n≥16
To find the smallest value of , solve for :
24= 16
So, each subnet requires 4 host bits to accommodate at least 16 hosts.

Step 3: Calculate the subnet mask

To find the correct subnet mask, combine the network bits with enough host
bits to divide the network into subnets while keeping the hosts counts in mind.
Given the need for 5 subnets and 4 host bits, let’s calculate the subnet mask.

Network bits: 8 bits for Class C (since Class C ranges from 192.0.0.0 to
223.255.255.255)
Host bits: 4 bits (to allow for at least 16 hosts)

To combine these, we look at different options:

255.255.255.192:

First 26 bits are used for the network (8 bits of Class C + 18 bits for
subnetting).
The remaining 6 bits are used for hosts.

This would give:


Subnets: 22 = 4 subnets (since the first 2 bits are for subnetting)
Hosts per subnet:26 – 2= 62 usable hosts (since the last 6 bits are for hosts).

255.255.255.224:

First 27 bits are used for the network (8 bits of Class C + 19 bits for
subnetting).
The remaining 5 bits are used for hosts.
This would give:
Subnets: 23 = 8 subnets
Hosts per subnet:55 – 2=30 usable hosts.

255.255.255.240:

First 28 bits are used for the network (8 bits of Class C + 20 bits for
subnetting).
The remaining 4 bits are used for hosts.

This would give:


Subnets: 24 = 16 subnets
Hosts per subnet:24 – 2 = 16 usable hosts.
255.255.255.248:

First 29 bits are used for the network (8 bits of Class C + 21 bits for
subnetting).

The remaining 3 bits are used for hosts.

This would give:


Subnets: 25 = 32 subnets
Hosts per subnet: 23 – 2 = 6 usable hosts.

Step 4: Match the requirement

We need 5 subnets with at least 16 hosts.


From the choices, 255.255.255.240 fits these requirements perfectly because:
It provides 16 subnets (24),
Each subnet has 14 usable hosts (24 – 2).

Conclusion:
The correct classful subnet mask to use is 255.255.255.240.
5. Which two statements describe the IP address 10.16.3.65/23? The
subnet address is 10.16.3.0 255.255.254.0. The lowest host address in
the subnet is 10.16.2.1 255.255.254.0. The last valid host address in the
subnet is 10.16.2.254 255.255.254.0. The broadcast address of the
subnet is 10.16.3.255 255.255.254.0.

Solutions.

CIDR notation means /23 subnet mask is 255.255.254.0 , this use 23


bits for the network portion leave 9 bits for the host portion.

The block size for the third octet is 256 – 254=2


So ;
Each subnet increments by 2 in the third octent.

To find the subnet address for the 10.16.3.65

-Identify the block size ,each subnet start at multiple of 2 in the third
octent.
-The IP address 10.16.3.65 falls in the range where the third octent is
2 to 3.
o The starting address (subnet address) is 10.16.2.0
o The broadcast address is 10.16.3.255.
o The usable host address are
▪ Start: Subnet address +1 = 10.16.2.1
▪ End : Broadcast address -1 =10.16.3.254.
Let’s verify each statements:

• “The subnet address is 10.16.3.0 255.255.254.0” So this


statement is incorrect because the correct subnet address is
10.16.2.0
• “The lowest host address in the subnet is 10.16.2.1 255 255
254.0” So this statement is correct because then first usable
host in the subnet is 10.16.2.1
• “The last valid host address in the subnet is 10.16.2.254
255.255.254.0” So this statement is incorrect because the last
valid host is 10.16.3.254, not 10.16.2.254
• “the broadcast address of the subnet is 10.16.3.255
255.255.254.0” So this statement is correct because the
broadcast address for this subnet is 10.16.3.255

Final answers:

The two correct statements are ;

• The lowest host address in the subnet is 10.16.2.1


255.255.254.0
• The broadcast address of the subnet is 10.16.3.255
255.255.254.0

6. You have been allocated a class C network address of 211.1.1.0 and are
using the default subnet mask of 255.255.255.0 how may hosts can you
have?

Solutions.

Class C IP address: 211.1.1.0


Default subnet mask: 255.255.255.0 or /24

So; in this case 24 bits are used for the network portion and 8 are used
for the host portion.

Total IPs = 2h

Where h is the number of host bits and are 8.


Total IPs =28 = 256

In any subnet:
• 1 address is reserved for the network address e.g 211.1.1.0
• 1 address is reserved for the broadcast address e.g 211.1.1.255
The number of usable host = 256 – 2 =254

So;
Final Answer, The class C network 211.1.1.0/24 allows 254 usable
hosts.

7. Subnet the Class C IP Address 205.11.2.0 so that you have 30 subnets.


What is the subnet mask for the maximum number of hosts? How many
hosts can each subnet have? What is the IP address of host 3 on subnet
2?

Solutions.

To create 30 subnets, we need enough subnet bits (n) to satisfy:

2n ≥ 30
Here,

25= 32 (sufficient to create 30 subnets).

Since 5 bits are used for the subnetting , the new subnet mask is:

New subnet mask = /24 + 5 + /29 and in dotted-decimal format


255.255.255.248.

Host bits remaining: 32 – 29 = 3

Total IPs per subnet: 23 – 2 = 6

-With a /29 mask , each subnet increments by 8 in the last octent


.The subnet ranges are,

• Subnet 1: 205.11.2.0 to 205.11.2.7


▪ Network address : 205.11.2.0
▪ Broadcast address : 205.11.2.7
▪ Usable hosts: 205.11.2.1 to 205.11.2.6

• Subnet 2: 205.11.2.8 to 205.11.2.15


▪ Network address : 205.11.2.8
▪ Broadcast address: 205.11.2.15r
▪ Usable hosts: 205.11.2.9 to 205.11.2.14
The usable host range in subnet 2 is 205.11.2.9 to 205.11.2.14.
The third host in range is 205.11.2.11

Final answers;
Subnet mask:255.255.255.248 or /29
Hosts per subnet: 6 usable hosts
IP address of hosts 3 on subnet 2: 205.11.2.11

8. Represent /26 in dotted decimal format.

Solutions.

The /26 is CIDR(Classless Inter-Domain Routing) notation


It indicate that 26 bits are allocated for the network portion of the subnet
mask.

Since an IPv4 address is 32 bits long:


32 – 26 =6 bits are left for the host portion.

So in decimal will write.

11111111.11111111.11111111.11000000
255 . 255 . 255 . 192

So the dotted-decimal representation of /26 is 255.255.255.192

9. How many hosts can be located on a network, where the IPv4 netmask is
27 bits?

Solutions.
The subnet mask is /27 which ,means 27 bits are used for the network
portion and 5 bits are used for the host portion.
Total IPs = 2h , Where h is the number of host bits; h=5
Total IPs = 25 = 32

Usable hosts= Total IPs – 2


Usable hosts = 32 -2 = 30

Final answer:
A network with an IPv4 netmask of /27 can accommodate 30 usable
hosts.

10. How many hosts can be addressed on 10.0.0.0/16?

Solutions.
CIDR notation :/16 means 16 bits are reserved for the network portion
Of the address,
32 – 16 = 16 bits are for host portion.

Total IPs = 216 = 65,536


Usable hosts = Total IPs -2
Usable hosts = 65,536 – 2 = 65,534
Final answer;
The network 10.0.0.0/16 can address 65,534 usable hosts.

11. Convert the following binary to decimal—01101101

Solutions.
01101101=(0×27)+(1×26)+(1×25)+(0×24)+(1×23)+(1×22)+(0×21)+(1×20)
01101101= 0 + 64 + 32 + 0 + 8 + 4 + 0 + 1
01101101= 109

The decimal equivalent of binary number 01101101 is 109.


12. When calculating usable hosts per subnet, the following formula is
used 2^bits - 2. For what reason is two subtracted?

Because to exclude the network address and broadcast address , as


these can not be assigned to devices.

13. Refer to the exhibit. The user at Workstation B reports that Server
A cannot be reached. What is preventing Workstation B from reaching
Server A?

Solutions.
Server A :IP : 131.1.123.24/27,
Gateway:131.1.123.33

Workstation B: IP: 131.1.123.43/27,


Gateway:131.1.123.33

Subnet mask: /27 corresponding to 255.255.255.224.


Block size: 256 – 224 = 32
To calculate subnet ranges:

Subnet 1: 131.1.123.0 to 131.1.123.31 (usable: 131.1.123.1 to


131.1.123.30)
Subnet 2: 131.1.123.32 to 131.1.123.63 (usable: 131.1.123.33 to
131.1.123.62)

So

Server A: IP: 131.1.123.24 falls in subnet1 (131.1.123.0/27)


Workstation B: IP: 131.1.123.43 falls in subnet 2(131.1.123.32/27)

So the server A and workstation B are in different subnets. This


misconfiguration prevent server A from communication with Workstation
B because Server A cannot correctly route packets to the gateway.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy