As a network administrator, you are tasked with configuring RouterA to forward packets destined for networks not in its routing table to the next-hop IP address 192.168.1.1. Which command should you use in global configuration mode to set this up for IPv4 traffic?
To configure a default route in IPv4 on a Cisco router, you use the command ip route 0.0.0.0 0.0.0.0 192.168.1.1. The 0.0.0.0 0.0.0.0 specifies a destination network of all zeros with a subnet mask of all zeros, which matches any IPv4 address not found in the routing table. This tells the router to forward packets destined for unknown networks to the next-hop IP address 192.168.1.1. The other options are incorrect because:
ip route 0.0.0.0 255.255.255.255 192.168.1.1 defines a route to a specific host address 0.0.0.0, not a default route.
ip default-gateway 192.168.1.1 is used on devices without IP routing enabled, such as switches, and is not appropriate when IP routing is active.
ip route any any 192.168.1.1 is not a valid Cisco IOS command for configuring routes.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of a default route in networking?
Open an interactive chat with Bash
What do the `0.0.0.0 0.0.0.0` values represent in the command?
Open an interactive chat with Bash
Why is the command `ip default-gateway` not suitable for this scenario?
Open an interactive chat with Bash
Cisco CCNA 200-301
IP Connectivity
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access