1,962 views
3 votes
3 votes
A network with three hosts M, N and P have IP address 194.56.10.2, 194.56.10.5 and
194.56.10.6 and their subnet mask is 255.255.255.252. Which of the following will be
in a same subnet?
(a) All three will be in same subnet
(b) M and N
(c) N and P
(d) All will be in different subnet

2 Answers

Best answer
4 votes
4 votes
Answer c  N and P
This types of question already asked in 2003
If two host belong to same network then their subnet id should be same . Subnet id can be obtained using subnet mask .Take a IP address of a host and perform Bitwise AND operation with subnet mask results subnet id.
Subnet mask : 255.255.255.254
Ip address of M IPm: 194.56.10.2
Ip address of N IPn : 194.56.10.5
Ip address of P IPp: 194.56.10.6
Subnet id of M sidm = SM        11111111.11111111.11111111.11111100                                                                                        Bitwise AND                                                                                                                                                                                        IPm                                           11000010.00111000.00001010.00000010                                                                        ____________________________________________________________________
                                         =      11000010.00111000.00001010.00000000
                                          =     194.56.10.0
 
Subnet id of N= SM             11111111.11111111.11111111.11111100                                                                                             Bitwise AND                                                                                                                                                                                                          IPn                   11000010.00111000.00001010.00000101                     ___________________________________________________________________                                                                                                              = 11000010.00111000.00001010.0000.100                                                                                                                                       =194.56.10.4
 
Subnet id of P= SM             11111111.11111111.11111111.11111100                                                                                              Bitwise AND                                                                                                                                                                                                     IPp                          11000010.00111000.00001010.00000110               __________________________________________________________________________ .                                                                                             = 11000010.00111000.00001010.00000100
                                         = 194.56.10.4
    Sid of N = Sid of P
     Hence N and P are host of same network 
 
 
edited by

Related questions

3 votes
3 votes
2 answers
3
Na462 asked Nov 11, 2017
618 views
In a class $C$ address, $3$ bits are borrowed for subnetting of host id part. Total possible number of subnet masks are _________________.