Home › Previous year questions › GATE 2019 CS › Question 38GATE 2019 CS – Question 38 Computer Networks · IPv4: Addressing, CIDR, Fragmentation and NAT · 2 marks · Multiple choice
Consider three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5, and 100.10.5.6 respectively. The subnet mask is set to 255.255.255.252 for all the three machines. Which one of the following is true?
M, N, and P all belong to the same subnet Only M and N belong to the same subnet Only N and P belong to the same subnet M, N, and P belong to three different subnets Practise this question in The GATE Grind →
Show answer and explanation Correct answer: (C) Only N and P belong to the same subnet
Explanation A /30 mask gives blocks of four addresses: 100.10.5.0-3 (M), 100.10.5.4-7 (N and P). So only N and P share a subnet.
More IPv4: Addressing, CIDR, Fragmentation and NAT questions GATE 2018 CS Q64 – Consider an IP packet with a length of 4,500 bytes that includes a 20-byte IPv4 header and… GATE 2015 CS (CS1) Q26 – Which one of the following fields of an IP header is NOT modified by a typical IP router? GATE 2016 CS (CS1) Q34 – Which one of the following protocols is NOT used to resolve one form of address to another… GATE 2016 CS (CS1) Q63 – An IP datagram of size 1000 bytes arrives at a router. The router has to forward this… GATE 2014 CS (CS2) Q35 – In the diagram, L1 is Ethernet and L2 is Token-Ring. An IP packet travels from S to R.… GATE 2014 CS (CS3) Q35 – Host A in IPv4 network A sends datagram D to host B in IPv4 network B. Transmission is… All IPv4: Addressing, CIDR, Fragmentation and NAT questions →