nerdexam
Cisco

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.

Submitted by lars.no· Mar 5, 2026

Question

Which command can you enter to set the default route for all traffic to an interface?

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)
  • A
    77% (20)
  • B
    8% (2)
  • C
    12% (3)
  • D
    4% (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.

Arouter(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/1Correct

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.

Brouter(config)#ip route 0.0.0.0 255.255.255.255 GigabitEthernet0/1

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.

Crouter(config-router)#default-information originate

`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.

Drouter(config-router)#default-information originate always

`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

#Default route#Static routing#Cisco IOS routing configuration

Community Discussion

No community discussion yet for this question.

Full 200-301 Practice