Refer to the following excerpt from a Cisco router's IPv4 routing table:
text
Gateway of last resort is 10.0.0.1 to network 0.0.0.0
O 192.168.10.0/24 [110/20] via 10.1.1.1, 00:05:12, GigabitEthernet0/0
D 192.168.10.32/28 [90/307200] via 10.2.2.2, 00:12:44, GigabitEthernet0/1
S 192.168.10.32/27 [1/0] via 10.3.3.3, 01:00:15, GigabitEthernet0/2
S* 0.0.0.0/0 [1/0] via 10.0.0.1, 02:15:00, GigabitEthernet0/3
Which next-hop IP address will the router select to forward a packet addressed to 192.168.10.38?
- 10.2.2.2Cevap
- B10.3.3.3
- C10.1.1.1
- D10.0.0.1
Cevap
10.2.2.2
When an IP packet arrives, the router compares the destination address against all routing table entries. The route with the longest matching prefix (most specific subnet mask) is selected. Here, 192.168.10.32/28 has a prefix length of 28 bits, which is longer than /27, /24, or /0. Therefore, the router forwards the packet to 10.2.2.2.
Adım Adım Çözüm
Anahtar Kavram
Longest Prefix Match (LPM)
Tahmini Süre:1m 30s