Suppose computers A and B have IP addresses 10.105.1.113 and 10.105.1.91 respectively and they both use the same netmask N. Which of the values on N given below should not be used if A and B should belong to the same network?
A
255.255.255.192
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
255.255.255.0
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
255.255.255.224
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
255.255.255.128
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C 255.255.255.224 IP address of A = 10.105.1.113
=10.105.1.01110001
IP address of B = 10.105.1.91
= 10.105.1.01011011
For finding network address we take AND of IP
address with the netmask N. So we check one by one
(ii) By taking and with B255⋅255⋅255⋅0000000010⋅105⋅1⋅01011011¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯10⋅105⋅1⋅000000000
So both belong to same network
(b) (i)225⋅225⋅225⋅128255⋅255⋅255⋅1000000010⋅105⋅1⋅01110001IPofA¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯10⋅105⋅1⋅00000000
(ii) 255⋅255⋅255⋅1000000010⋅105⋅1⋅01011011IPofB¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯10⋅105⋅1⋅00000000
So both belong to same N/W
(d) (i) 255⋅255⋅255⋅1110000010⋅105⋅1⋅01110001IPofA¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯10⋅105⋅1⋅01100000
(ii)255⋅255⋅255⋅1110000010⋅105⋅1⋅010111011IPofB¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯10⋅105⋅1⋅01100000
Both are not same so it not belong to same network.