Open In App

GATE | GATE-CS-2015 (Mock Test) | Question 4

Like Article
Like
Save
Share
Report

Consider the following routing table of a router.

Prefix Next Hop
192.24.0.0/18 D
192.24.12.0/22 B

Consider the following three IP addresses.

Prefix
192.24.0.0/18
192.24.12.0/22
192.24.54.0

How are the packets with above three destination IP addresses are forwarded?

(A)

1->D, 2->B, 3->B

(B)

1->D, 2->B, 3->D

(C)

1->B, 2->D, 3->D

(D)

1->D, 2->D, 3->D



Answer: (B)

Explanation:

Option I matches the first and third IP addresses because they fall within the range defined by its subnet mask. Option II matches the second IP address because it falls within the range defined by its subnet mask. Option III doesn’t match any IP addresses as they fall outside the range defined by its subnet masks. So, the correct option is B.


Quiz of this Question
Please comment below if you find anything wrong in the above post


Last Updated : 15 Feb, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads