A Cisco router displays the following routing table output:
text
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 4 subnets, 3 masks
O 10.75.0.0/16 [110/20] via 192.168.12.2, 00:14:22, GigabitEthernet0/0
D 10.75.96.0/19 [90/307200] via 192.168.13.2, 01:42:05, GigabitEthernet0/1
S 10.75.100.0/24 [1/0] via 192.168.14.2, 03:02:10, GigabitEthernet0/2
O IA 10.75.100.32/27 [110/65] via 192.168.15.2, 00:05:10, GigabitEthernet0/3
The router receives an IP packet destined for . Which next-hop IP address and outgoing interface will the router select to forward this packet?
- A192.168.14.2 via GigabitEthernet0/2
- 192.168.15.2 via GigabitEthernet0/3Cevap
- C192.168.13.2 via GigabitEthernet0/1
- D192.168.12.2 via GigabitEthernet0/0
Cevap
Next-hop address 192.168.15.2 via interface GigabitEthernet0/3
When a router receives a packet, it compares the destination IP address against all entries in its routing table and selects the route with the longest prefix match (most specific subnet mask). The destination address 10.75.100.50 matches four routes in the routing table: /16, /19, /24, and /27. The /27 route (10.75.100.32/27) has the most matching network bits (27 bits), so the router forwards the packet to next-hop 192.168.15.2 out interface GigabitEthernet0/3.
Adım Adım Çözüm
Anahtar Kavram
Longest Prefix Match Rule
Tahmini Süre:1m 15s