nerdexam
Juniper

JN0-102 · Question #241

You have been asked to configure your MX240 with a default route toward your upstream ISP at IP address 192.168.100.1. Which command successfully completes this task?

The correct answer is A. user@router# set routing-options static route 0.0.0.0/0 next-hop 192.168.100.1. To configure a default route in Junos, you must use the set routing-options static route 0.0.0.0/0 command with the appropriate next-hop IP address.

Configuration Basics

Question

You have been asked to configure your MX240 with a default route toward your upstream ISP at IP address 192.168.100.1. Which command successfully completes this task?

Options

  • Auser@router# set routing-options static route 0.0.0.0/0 next-hop 192.168.100.1
  • Buser@router# set routing-options default route 0.0.0.0/0 next-hop 192.168.100.1
  • Cuser@router# set forwarding-options static route 0.0.0.0/0 next-hop 192.168.100.1
  • Duser@router# set protocols default route 0.0.0.0/0 next-hop 192.168.100.1

How the community answered

(46 responses)
  • A
    80% (37)
  • B
    2% (1)
  • C
    4% (2)
  • D
    13% (6)

Why each option

To configure a default route in Junos, you must use the `set routing-options static route 0.0.0.0/0` command with the appropriate next-hop IP address.

Auser@router# set routing-options static route 0.0.0.0/0 next-hop 192.168.100.1Correct

In Junos OS, a default route is configured as a static route with a destination prefix of `0.0.0.0/0` under the `routing-options static route` hierarchy. This command correctly sets the default route to forward all unmatched traffic to the specified next-hop IP address.

Buser@router# set routing-options default route 0.0.0.0/0 next-hop 192.168.100.1

The `default route` parameter under `routing-options` is not the correct syntax for configuring a static default route in Junos; static default routes are specified using the `static route 0.0.0.0/0` syntax.

Cuser@router# set forwarding-options static route 0.0.0.0/0 next-hop 192.168.100.1

Static routes are configured under the `routing-options` hierarchy, not `forwarding-options`, which deals with data plane behavior like load balancing.

Duser@router# set protocols default route 0.0.0.0/0 next-hop 192.168.100.1

The `protocols` hierarchy is used for configuring dynamic routing protocols (e.g., OSPF, BGP), not for defining static routes.

Concept tested: Junos static default route configuration

Source: https://www.juniper.net/documentation/us/en/software/junos/static-routing/topics/task/static-routes-configuring-cli.html

Topics

#static routing#default route#Junos configuration

Community Discussion

No community discussion yet for this question.

Full JN0-102 Practice