200-301 Question 291
Single answerYou are configuring a router in a network where all unknown destination networks should be forwarded to a specific gateway. The router's routing table currently has no default route configured. Which command would you use to set the 'Gateway of Last Resort' to 192.168.1.1?
- A
ip route 0.0.0.0 0.0.0.0 192.168.1.1
- B
ip default-gateway 192.168.1.1
- C
ip default-network 192.168.1.1
- D
route add default gw 192.168.1.1
Show answer and explanation
Correct answer: A
Explanation
To configure the Gateway of Last Resort on a Cisco router, you need to define a static default route using the command 'ip route 0.0.0.0 0.0.0.0
- A. Correct.
This is the correct command syntax for configuring a static default route in Cisco IOS, which sets the Gateway of Last Resort. The '0.0.0.0 0.0.0.0' represents the default route for all unknown networks.
- B. Incorrect.
This command is used to configure the default gateway on a switch operating in Layer 2 mode. It does not set the Gateway of Last Resort on a router.
- C. Incorrect.
The 'ip default-network' command is used to configure a default network for IGRP-based routing, not to set a static default route or Gateway of Last Resort.
- D. Incorrect.
This is a Linux/Unix-based command for adding a default gateway and is not applicable in Cisco IOS.