Soru

Zorluk: OrtaIPv4 Static Routing

A Cisco router receives an IPv4 packet destined for 192.168.10.45192.168.10.45. The router has a single static route configured as follows: `ip route 192.168.10.0 255.255.255.0 10.1.1.2`. Arrange the steps of the router's lookup and packet forwarding process in the correct sequential order from first to last.

  1. 1The router receives the IPv4 packet destined for 192.168.10.45192.168.10.45 on an ingress interface.
  2. 2The router performs a longest-prefix match lookup and matches the destination to static route prefix 192.168.10.0/24192.168.10.0/24.
  3. 3The router identifies next-hop IP address 10.1.1.210.1.1.2 and initiates a recursive lookup in the routing table.
  4. 4The router resolves 10.1.1.210.1.1.2 to connected subnet entry 10.1.1.0/3010.1.1.0/30 associated with interface GigabitEthernet0/1.
  5. 5The router encapsulates the IP packet into a Layer 2 frame and forwards it out interface GigabitEthernet0/1 toward 10.1.1.210.1.1.2.

Cevap

The correct order of steps for processing a recursive static route lookup is: (1) Receive the IPv4 packet on an ingress interface, (2) Match the destination IP to the static route prefix 192.168.10.0/24192.168.10.0/24, (3) Identify next-hop IP 10.1.1.210.1.1.2 and initiate a recursive lookup, (4) Resolve the next-hop IP to connected route 10.1.1.0/3010.1.1.0/30 on interface GigabitEthernet0/1, and (5) Encapsulate the packet into a Layer 2 frame and transmit out GigabitEthernet0/1.
When a static route is configured using a next-hop IP address rather than an explicit exit interface (e.g., `ip route 192.168.10.0 255.255.255.0 10.1.1.2`), Cisco IOS performs a recursive lookup process. The router first matches the packet's destination IPv4 address to the static route entry. Next, it extracts the next-hop IP address and performs a second routing table lookup to find which interface connects to that next-hop subnet. Once the exit interface is identified from a connected or secondary route, the router encapsulates the packet in a Layer 2 frame and sends it out the resolved interface.

Adım Adım Çözüm

1
Receive IPv4 packet
Packet destination IP 192.168.10.45192.168.10.45 is extracted for table inspection.
Ingress processing triggers the forwarding decision engine.
2
Match static route prefix
Destination matches `192.168.10.0/24` with next-hop `10.1.1.2`.
Static route entry specifies the destination network reachable via a next-hop IP address.
3
Perform recursive route lookup
Secondary lookup query initiated for IP address 10.1.1.210.1.1.2.
Static routes configured with only a next-hop IP address require a recursive lookup to identify the outgoing physical interface.
4
Resolve outbound interface
Next-hop 10.1.1.210.1.1.2 resolves to connected interface GigabitEthernet0/1.
The routing table contains a directly connected prefix 10.1.1.0/3010.1.1.0/30 attached to GigabitEthernet0/1.
5
Encapsulate and forward frame
Packet is sent out GigabitEthernet0/1.
Final packet transmission requires determining the Layer 2 header rewrite details for the specific exit interface.

Anahtar Kavram

IPv4 Static Route Recursive Lookup Mechanism
Bu soruyu puanla