200-301 Question 316
Single answerA network engineer has configured a router with the following command: ip route 0.0.0.0 0.0.0.0 192.168.1.1. What is the purpose of this configuration?
- A
To define a static route for the 192.168.1.1 network
- B
To create a default route for packets destined to unknown networks
- C
To configure a route for the router's local subnet
- D
To enable dynamic routing protocols on the router
Show answer and explanation
Correct answer: B
Explanation
The command ip route 0.0.0.0 0.0.0.0 192.168.1.1 is used to configure a default route, which is a static route that matches all destination IP addresses not found in the routing table. These packets are forwarded to the next-hop IP address, which in this case is 192.168.1.1. Default routes are commonly used to send traffic to a gateway of last resort when no specific route is found for a given destination.
- A. Incorrect.
This option is incorrect because the command does not specifically target the 192.168.1.1 network; it uses 0.0.0.0/0, which represents a default route.
- B. Correct.
This is correct because the command creates a default route that forwards packets destined for unknown networks to the next-hop IP address 192.168.1.1.
- C. Incorrect.
This option is incorrect because the command does not configure a route for the local subnet. It applies to all unknown destinations.
- D. Incorrect.
This option is incorrect because the command does not enable dynamic routing protocols. It is used to configure a static default route.