An administrator examines the following routing table output from a Cisco router:
text
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
D 10.10.20.0/24 [90/2170112] via 192.168.1.2, 00:15:42, GigabitEthernet0/0
O 10.10.20.0/26 [110/20] via 192.168.1.6, 00:08:12, GigabitEthernet0/1
S 10.10.0.0/16 [1/0] via 192.168.1.10
C 10.10.20.128/25 is directly connected, GigabitEthernet0/2
If the router receives a packet with a destination IP address of 10.10.20.45, which two statements correctly describe how the router processes this packet? (Select two.)
- The router forwards the packet out GigabitEthernet0/1 because the prefix 10.10.20.0/26 represents the longest matching prefix for the destination IP address.Cevap
- The router evaluates administrative distance only among routes that share the exact same longest prefix match length.Cevap
- CThe router forwards the packet to next-hop 192.168.1.10 because static routes have a lower administrative distance (1) than OSPF or EIGRP routes.
- DThe router forwards the packet via 192.168.1.2 because EIGRP (AD 90) is preferred over OSPF (AD 110) for destination prefix 10.10.20.0.
Cevap
The router selects the OSPF route (10.10.20.0/26) and forwards the packet out interface GigabitEthernet0/1 because 26 bits is the longest matching prefix for host 10.10.20.45. Administrative distance is only evaluated when multiple routing protocols advertise the exact same destination network prefix length.
The destination address 10.10.20.45 matches three routes in the routing table: 10.10.0.0/16, 10.10.20.0/24, and 10.10.20.0/26. Router forwarding logic mandates that the route with the longest matching prefix (/26) is chosen first. Consequently, the packet is egressed out interface GigabitEthernet0/1. Furthermore, administrative distance is only referenced when comparing multiple sources advertising the exact same network prefix and subnet mask.
Adım Adım Çözüm
Anahtar Kavram
Longest Prefix Match Rule vs. Administrative Distance