Questions and Answers On IP Addressing
Questions and Answers On IP Addressing
d. 255.255.248.0
*Answer: 255.255.240.0
2^3-2 = 6 subnets
2^4-2 = 14 subnets
(2^16 - 2^4) -2 = 2^12 - 2 = 4094 hosts possible per subnet
Because 3 bits of subnetting will only yield 6 usable subnets (7 if ip
subnet-zero is enabled), you will need to borrow another bit. To meet
your minimum requirement of 8 subnets, and the maximum number
of hosts per subnet, this Subnet mask will be correct: 255.255.240.0
Q4.) What is the network ID portion of the IP address
191.154.25.66 if the default subnet mask is used? (Done)
10111111.10011010.00011001.01000010 = 191.154.25.66 IP
address
11111111.11111111.00000000.00000000 = 255.255.0.0 Default
Class B Subnet mask
10111111.10011010.00000000.00000000 = 191.154.0.0 Network
ID is the Result of ANDing the IP address and Subnet mask
Q5.) Your company has the network ID 165.121.0.0. You are
responsible for creating subnets on the network, and each
subnet must provide at least 900 host IDs.
What subnet mask meets the requirement for the minimum
number of host IDs and provides the greatest number of
subnets?
*Answer: A Class B address with a subnet mask of 255.255.252.0
creates 62 subnets with 1,022 hosts each. The next largest subnet
creates 126 subnets, but each subnet contains only 510 hosts. In
binary format, the subnet mask reads as: 11111111 11111111
11111100 00000000. The third octet designates 1s for the first 6
digits. The 1s mask the subnet IDs. The calculation of the number of
host IDs available for each subnet is based on the number of digits
remaining in the network address after all of the subnets are
created. To calculate the number of host IDs, raise 2 to the tenth
power and then subtract 2. Note that there are two digits remaining
in the third octet and eight digits in the fourth octet (00 00000000);
these ten digits can be used to create host IDs. The two host IDs
that are subtracted are the two host IDs that contain all 0s and all
1s; those IDs identify the subnet itself and the broadcast address for
all hosts on the subnet, respectively. The number of possible host
IDs in each subnet ranges from 00 00000001 through 11 11111110.
Converted to decimal notation, this range is 0.1 through 3.254. For
example, in the network 165.121.0.0/22, host addresses can range
from 165.121.0.1 through 165.121.3.254.
= 12.1.0.0 network
= 255.240.0.0 subnet
=
=
=
=
12.16.0.0 subnet 16
12.32.0.0 subnet 32
12.48.0.0 subnet 48
0.15.255.255
Hints(Please answer)
a. How many hosts are allowed in each subnet? Answer: 2 usable
hosts
32 possible bits in an IP version 4 IP address.
32 - 30 = 2 possible bits left for our host
2^2-2 = 2 usable hosts
b. What is the Broadcast address for this network? (Please
show the "interesting" octet in binary)
c. What is the Network address for this network? (Please
show the "interesting" octet in binary)
128 64 32 16 8 4 2 1
0 1 1 0 1 1 0 1 = 109 decimal
16.32.96.01101101 = 16.32.96.109 -IP address of one of your hosts
in this small subnet
255.255.255.11111100 = 255.255.255.252 -Subnet Mask given in
CIDR /30
16.32.96.01101100 = 16.32.96.108 -Network ID for this subnetwork
16.32.96.01101111 = 16.32.96.111 -Subnet broadcast address
16.32.96.01101110 = 16.32.96.110 -The only usable host address
left range between the network and broadcast
8. You are a network administrator, seated at a workstation
at the remote end of a campus network. You are attempting
>=8 1
11-8=3
>=4 0
>=2 1
3-2=1
>=1 1
181.197.10111011.212 = 181.197.187.212 -Workstation's
configured IP Address
255.255.11100000.0 = 255.255.224.0 -Workstation's configured
Subnet Mask
181.197.10100000.0 = 181.197.160.0 -Workstation's Network ID
181.197.10100000.1 = 181.197.160.1 -First Host in Workstation's
Range
...
181.197.10111111.254 = 181.197.191.254 -Last Host in
Workstation's Range
181.197.10111111.255 = 181.197.191.255 -Workstation's Broadcast
ID
...96-128-160-192-224-256 -Network IDs for a 224 Subnet Mask
Interesting Octet = 143 Convert to binary:
>=128 1
143-128=15
>=64 0
>=32 0
>=16 0
>=8 1
15-8=7
>=4 1
7-4=3
>=2 1
3-2=1
>=1 1
* -These two network ID's not exactly the same, off by one bit (32)
Therefore, the Workstation knows the server isn't on an attached
network,
Send packet to my Default Gateway, let it handle packets destined
for other networks.
Q9. Which of the following might correct a problem like this?
Change the subnet address of the workstation to
255.255.248.0?
Answer: No, You know this would make the create more subnets,
when you would need fewer subnets with larger ranges.
181.197.10111011.212 = 181.197.187.212 -Workstation's
configured IP Address
255.255.11111000.0 = 255.255.248.0 -Testing 248 Subnet Mask
181.197.10111000.0 = 181.197.184.0 -New Subnet ID
181.197.10111111.255 = 181.197.191.255 -Same Broadcast ID as
configured, but subnets are increments of 8
Q10. Change the entire network's subnet mask to
255.255.240.0?
Answer: No, You would still be on different subnets, but changing the
network's subnet mask to 255.255.192.0 would allow these two IP
addresses to be on the same subnetwork. This might be a great deal
of work, but you can see that creating fewer subnets will make those
usable subnets have a broader range.
181.197.10001111.236 = 181.197.143.236 -Server's configured IP
address
255.255.11110000.0 = 255.255.240.0 -Testing 240 subnet mask
181.197.10000000.0 = 181.197.128.0 -Server's Network ID with 240
subnet mask
181.197.10111011.212 = 181.197.187.212 -Workstation's
configured IP Address
configured IP Address
255.255.11100000.0 = 255.255.224.0 -Workstation's configured
Subnet Mask
181.197.10100000.0 = 181.197.160.0 -Workstation's Network ID
181.197.10111011.213 = 181.197.187.213 -Server's New Address
255.255.11110000.0 = 255.255.240.0 -Server's New Subnet Mask
181.197.10110000.0 = 181.197.160.0 -Server's New Network ID
Interestingly enough, these two machines should be able to
communicate on the same physical network, even with different
subnet masks.
This is due to the fact that the workstation will first check to see if
the server is on it's subnet.
Workstation:
255.255.11100000.0 = 255.255.224.0 -Workstation's configured
Subnet Mask
181.197.10111011.213 = 181.197.187.213 -DESTINATION IP
Address
181.197.10100000.0 = 181.197.160.0 -Result of ANDing the
Destination Address,
Workstation determines that this destination is on it's own network,
and ARP's for the Server's MAC address.
Workstation then initiates an ICMP Echo Request to the server.
Server:
255.255.11110000.0 = 255.255.240.0 -Server's configured Subnet
Mask
181.197.10111011.212 = 181.197.187.212 -DESTINATION IP
Address
255.255.10110000.0 = 181.197.176.0 -Result of ANDing the
Destination Address,
Server Determines that the Workstation is on it's same network, and
sends an Echo Reply.