Configure R1 so any traffic with no matching route is sent to 192.168.1.1. Which configuration achieves this?
Choose an answer
Tap an option to check your answer.
Correct answer: R1#config t R1(config)#ip routing R1(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1.
Why this is the answer
The correct command to configure a default route on a Cisco router is ip route 0.0.0.0 0.0.0.0 [next-hop-ip-address or exit-interface]. Here, 0.0.0.0 0.0.0.0 represents the destination network and subnet mask for "any network, any mask," which is the definition of a default route. 192.168.1.1 is the next-hop IP address. The option ip route default-route 192.168.1.1 uses incorrect syntax; default-route is not a valid keyword in this context. The option ip route 192.168.1.1 0.0.0.0 0.0.0.0 incorrectly places the next-hop IP address where the destination network should be and uses an invalid mask for the next-hop. The ip default-gateway command is used on a Layer 2 switch to set its own default gateway for management traffic, not for routing traffic on a Layer 3 device like a router.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed