Courseiva
Interior Gateway ProtocolsmediumMultiple ChoiceObjective-mapped

JNCIP-ENT Interior Gateway Protocols Practice Question

You need to adjust the OSPF cost on a specific interface to manipulate path selection. Which command sets the OSPF cost on an interface?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

set protocols ospf area 0.0.0.0 interface xe-0/0/0.0 cost 50

OSPF interface cost is explicitly configured under the interface hierarchy within protocols ospf using the 'cost' statement.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • set routing-options interface xe-0/0/0.0 ospf-cost 50

    Why it's wrong here

    This is an invalid configuration path.

  • set protocols ospf area 0.0.0.0 interface xe-0/0/0.0 cost 50

    Why this is correct

    The 'cost' command explicitly sets the OSPF cost for that interface.

  • set interfaces xe-0/0/0.0 ospf-cost 50

    Why it's wrong here

    OSPF cost must be set under protocols ospf.

  • set protocols ospf area 0.0.0.0 interface xe-0/0/0.0 metric 50

    Why it's wrong here

    The keyword is 'cost', not 'metric', for interface OSPF cost settings.

Visual reference

R1 R2 R3 R4 10 100 10 100 OSPF picks R1→R2→R4 (cost 20) over R1→R3→R4 (cost 200)

About these practice questions

One of 336 original JNCIP-ENT practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Juniper Networks exam blueprint

This JNCIP-ENT practice question is part of Courseiva's free Juniper Networks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the JNCIP-ENT exam.