A Cisco IOS router receives an IPv4 packet destined for . The routing table contains a static route `ip route 10.150.20.0 255.255.255.0 172.16.1.2` pointing to a next-hop address. Place the steps describing how the router recursively resolves the next-hop and forwards the packet in the correct sequential order from first to last.
- 1The router receives the packet destined for and inspects its IPv4 destination header.
- 2The router performs an initial lookup in the IPv4 routing table and matches the static route entry for , identifying as the next-hop IP address.
- 3The router performs a second (recursive) routing table lookup for the next-hop IP to determine the outbound interface.
- 4The router identifies connected subnet on interface GigabitEthernet0/1 and queries the ARP cache for the MAC address of .
- 5The router encapsulates the IP packet into a Layer 2 frame with the destination MAC address of and transmits it out GigabitEthernet0/1.
Cevap
The correct sequence for recursive next-hop resolution is: receiving the packet and inspecting the destination header, performing the primary routing table lookup for the destination network, executing the recursive lookup for the next-hop IP address, resolving the Layer 2 MAC address on the egress interface, and encapsulating/transmitting the frame.
When a static route is configured with a next-hop IP address rather than a directly connected exit interface, Cisco IOS must perform a recursive lookup. The router first inspects the packet header and matches the destination subnet against the routing table. Next, it identifies the next-hop IP address associated with that static route entry. Because an IP address cannot directly dictate physical egress, a second (recursive) lookup is performed to find which local connected subnet and physical interface reach that next-hop IP. Once GigabitEthernet0/1 is identified, the router checks its ARP table to map the next-hop IP to a destination MAC address, encapsulating and transmitting the frame out the resolved egress interface.
Adım Adım Çözüm
Anahtar Kavram
IPv4 Static Route Recursive Lookup & Packet Forwarding Logic