200-301 · Question #774
Which command can you enter to set the default route for all traffic to an interface?
The correct answer is A. router(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/1. To configure a default route for all traffic to exit a specific interface, the ip route 0.0.0.0 0.0.0.0 command followed by the interface name is used.
Question
Options
- Arouter(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/1
- Brouter(config)#ip route 0.0.0.0 255.255.255.255 GigabitEthernet0/1
- Crouter(config-router)#default-information originate
- Drouter(config-router)#default-information originate always
How the community answered
(26 responses)- A77% (20)
- B8% (2)
- C12% (3)
- D4% (1)
Why each option
To configure a default route for all traffic to exit a specific interface, the `ip route 0.0.0.0 0.0.0.0` command followed by the interface name is used.
The `ip route 0.0.0.0 0.0.0.0` command with an outgoing interface specifies that any traffic not matching a more specific route should be forwarded out of the GigabitEthernet0/1 interface, effectively setting the default route. This is the standard syntax for configuring a static default route in Cisco IOS.
A subnet mask of 255.255.255.255 (a host route) for a destination of 0.0.0.0 is syntactically incorrect and would not create a default route.
`default-information originate` is used within routing protocols (like OSPF or EIGRP) to inject a default route into the routing updates, not to configure a static default route directly on the router.
`default-information originate always` is also used within routing protocols to always advertise a default route, regardless of whether one exists in the local routing table, and does not configure a static default route.
Concept tested: Static default route configuration
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_static/configuration/xe-16-5/irs-xe-16-5-book/irs-static-rt-cfg.html
Topics
Community Discussion
No community discussion yet for this question.