Computer Science - Networking - Discussion
Discussion Forum : Networking - Section 2 (Q.No. 40)
40.
You are working with three networks that have the network IDs 192.168.5.0, 192.168.6.0, and 192.168.7.0. What subnet mask can you use to combine these addresses into one?
Discussion:
13 comments Page 1 of 2.
AK Saddam said:
7 years ago
Binary of 3 hosts are:
11000000.10101000.00000101.00000000 (192.168.5.0)
11000000.10101000.00000110.00000000 (192.168.6.0)
11000000.10101000.00000111.00000000 (192.168.7.0).
Here, 22 bits are common for 3 hosts.
So in the 3rd octet, we will count 6 bit for the subnet mask. so it will be 255.255.252.0.
11000000.10101000.00000101.00000000 (192.168.5.0)
11000000.10101000.00000110.00000000 (192.168.6.0)
11000000.10101000.00000111.00000000 (192.168.7.0).
Here, 22 bits are common for 3 hosts.
So in the 3rd octet, we will count 6 bit for the subnet mask. so it will be 255.255.252.0.
Wasim sajjad said:
4 years ago
11000000.10101000.00000101.000000 00 (192.168.5.0) =255.255.255.255-3.
11000000.10101000.00000110.000000 00 (192.168.6.0) = 255.255.255.255-3.
11000000.10101000.00000111.000000 00 (192.168.7.0). = 255.255.255.255-3.
11000000.10101000.00000110.000000 00 (192.168.6.0) = 255.255.255.255-3.
11000000.10101000.00000111.000000 00 (192.168.7.0). = 255.255.255.255-3.
Sehal said:
1 decade ago
I think right answer is C because we are using 3 bits for sub net we will skip 3 bits and then add all other bits then we got answer C.
Anyone explain please.
Anyone explain please.
Asis said:
1 decade ago
Please help me while writing more.
192 is class C address, then how 255.255.252.0 is possible as 255.255.255.0 is default class C subnet mask.
192 is class C address, then how 255.255.252.0 is possible as 255.255.255.0 is default class C subnet mask.
Snehal said:
1 decade ago
As we need to adjust 3 hosts, so 2^2=4 will suffice that,as per binary chart for subnet we have 252 in block of 4, hence 255.255.252.0.
Rahmat said:
4 years ago
D is correct, as default subnet mask for class C is 255.255.255. , as 3 hosts are required, hence 252 is used.
Shewangizaw Bogale said:
9 years ago
I think 255.255.255.252 should be the answer as it is a class C network.
Thank you @Shiva and @Sehal.
Thank you @Shiva and @Sehal.
Shiva said:
9 years ago
I think 255.255.255.252 should be the answer as it is a class c network.
Krishna said:
1 decade ago
How the answer is possible ?
Ashu said:
8 years ago
I think option D is correct.
(1)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers