Cisco CCNA mock exam questions sample test – Question 133

.Which of the following is the correct command to define a default route using a gateway address of

A. ip default-route
B. ip route
C. default-gateway
D. ip route default

Correct Answer: B

The ip route command is used to manually define a static route to a destination network. The syntax of the command is as follows:
ip route [destination_network] [mask] [next-hop_address or exit interface] [administrative_distance] [permanent]
The attributes of the command are as follows:
destination_network: Defines the network that needs to be added in the routing table.
mask: Defines the subnet mask used on the network.
next-hop_address: Defines the default gateway or next-hop router that receives and forwards the packets to the remote network.
administrative_distance (AD): States the administrative distance. Static routes have an AD of 1, which can be changed to change the priority of the route.
Creating a default route is accomplished by substituting for both the [destination_network] and [mask] fields, yielding the following command to create a default route through
router(config)# ip route
Any route configured manually is considered a static route. Another example of a command that creates a non-default route is shown below:
router(config)# ip route
This command would instruct the router on which the command was executed to send any traffic for the network to the router located at
You can also affect the route by changing the administrative distance of the route. By default, all static routes have an AD of 1, making them preferable to routes learned from routing
protocols. However, you can add the AD parameter at the end of the command as shown below, making the static route less desirable than one learned from a routing protocol such
as RIP:
router(config)# ip route 150
One reason to configure the routes this way could be to make the static route a backup route to the route learned by RIP, such as when the static route is a less desirable route
through a distant office.
Once the ip route command has been used to add either a static route or a static default route to a router, the routes should appear in the routing table. They will be indicated with an
S next to a static route and an S* for a default static route. The first two examples from the explanation above would appear in the routing table as follows:
S* [1/0] via
S [1/0] via
The ip default-route, default-gateway, and ip route default commands are incorrect because they are not valid Cisco IOS commands.
Routing Fundamentals
Configure, verify, and troubleshoot IPv4 and IPv6 static routing
Cisco > Cisco ASDM User Guide, 6.1 > Configuring Dynamic And Static Routing > Field Information for Static Routes
Cisco > Support > IP > IP Routing > Design > Design TechNotes > Specifying a Next Hop IP Address for Static Routes > Document ID: 27082