In: Computer Science
a) In a subnet, a host has been assigned the following configuration parameters: 10.42.4.232/13. What is the last valid IP address on the network that this host is a part of?
b) In a subnet, a host has been assigned the following configuration parameters: 172.20.122.6/255.255.248.0. What is the broadcast address on the network that this host is a part of?
c) In a subnet, a host has been assigned the following configuration parameters: 10.158.253.161/255.192.0.0. What is the broadcast address on the network that this host is a part of?
d) In a subnet, a host has been assigned the following configuration parameters: 192.168.27.76/28. What is the first valid IP address on the network that this host is a part of?
e) In a subnet, a host has been assigned the following configuration parameters: 10.26.22.90/12. What is the first valid IP address on the network that this host is a part of?
All answers must be in dotted decimal notation.
a.
The IP address given is: 10.42.4.232/13
Host bits = 32 - 13 = 19
Number of hosts , = 524288
Number of valid hosts = 524288 - 2 = 524286
Broadcast address is: Wild Card Mask (00000000.00000111.11111111.11111111) OR Network Address (00001010.00101010.00000100.11101000)
00000000.00000111.11111111.11111111
+ 00001010.00101010.00000100.11101000
00001010. 00101111.11111111.11111111
i.e., 10.47.255.255 is the broadcast address.
So, the last valid IP address is: 10.47.255.254
b.
The IP address given is: 172.20.122.6/255.255.248.0
Mask is: /21
Host bits = 32 - 21 = 9
Number of hosts , = 512
Number of valid hosts = 512 - 2 = 510
Broadcast address is: Wild Card Mask (00000000.00000000.00000111.11111111) OR Network Address (10101100.00010100.01111010.00000110)
00000000.00000000.00000111.11111111
+ 10101100.00010100.01111010.00000110
10101100.00010100.01111111.11111111
i.e., Broadcast address: 172.20.127.255
c.
Given, IP address is: 10.158.253.161/255.192.0.0
Mask is: /10
Host bits = 32 -10 = 22
Number of hosts , = 4194304
Number of valid hosts = 4194304 - 2 = 4194302
Broadcast address is: Wild Card Mask (00000000.00111111.11111111.11111111) OR Network Address (00001010.10011110.11111101.10100001)
00000000.00111111.11111111.11111111
+00001010.10011110.11111101.10100001
00001010.10111111.11111111.11111111
Broadcast address is: 10.191.255.255
d.
Given, IP address is: 192.168.27.76/28
Host bits = 32 - 28 = 4
Number of hosts = = 16
Number of valid hosts = 16 - 2 = 14
The first valid IP address is: 192.168.27.64
e.
Given, IP address is: 10.26.22.90/12
Host bits: 32 - 12 = 20
Number of hosts: = 1048576
Number of valid hosts: 1048576 - 2 = 1048574
The first valid IP address is: 10.26.0.1