Soru

Zorluk: OrtaIPv4 Static Routing

A network administrator needs to direct traffic destined specifically for a single log server at 192.168.10.45192.168.10.45 through next-hop IPv4 address 10.1.1.210.1.1.2, while allowing all other traffic intended for the 192.168.10.0/24192.168.10.0/24 subnet to follow the existing default path. Which Cisco IOS command must be configured on the router to accomplish this requirement?

  1. ip route 192.168.10.45 255.255.255.255 10.1.1.2Cevap
  2. B
    ip route 192.168.10.45 255.255.255.0 10.1.1.2
  3. C
    ip route 192.168.10.45 0.0.0.0 10.1.1.2
  4. D
    ip route 192.168.10.0 255.255.255.255 10.1.1.2

Cevap

The command 'ip route 192.168.10.45 255.255.255.255 10.1.1.2' creates a host static route targeting the specific destination IP address.
The correct command uses a subnet mask of 255.255.255.255 (/32) combined with the exact host IP address 192.168.10.45. When the router performs forwarding lookup, the longest prefix match rule ensures that packets addressed to 192.168.10.45 match this 32-bit route rather than broader subnet routes.

Adım Adım Çözüm

1
Identify the routing requirement
Only traffic to the single IP host 192.168.10.45 must take the specific next-hop path 10.1.1.2.
Traffic to other hosts within the 192.168.10.0/24 subnet must follow another path, requiring a route that applies only to a single IP address.
2
Determine the subnet mask required for a host route
A 32-bit mask (255.255.255.255255.255.255.255) specifies exactly one IPv4 host address.
In IPv4 routing, a /32 prefix mask indicates that all 32 bits of the destination IPv4 address must match.
3
Construct the Cisco IOS static route command
ip route 192.168.10.45 255.255.255.255 10.1.1.2
The standard syntax is 'ip route <destination-prefix> <subnet-mask> <next-hop-ip>'.

Anahtar Kavram

IPv4 Host Static Routing and Longest Prefix Match
Tahmini Süre:1m 0s
Bu soruyu puanla