JN0-102 · Question #165
You are at the top of the hierarchy and must configure OSPF on interface so-0/0/0 unit 100. Which two achieve this result? (Choose two.)
The correct answer is B. set protocols ospf area 0 interface so-0/0/0.100 D. edit protocols ospf area 0. To configure OSPF on a specific interface from the top of the hierarchy, you can either directly set the full path or navigate to a higher OSPF hierarchy and then edit the interface.
Question
You are at the top of the hierarchy and must configure OSPF on interface so-0/0/0 unit 100. Which two achieve this result? (Choose two.)
Options
- Aset protocols
- Bset protocols ospf area 0 interface so-0/0/0.100
- Cedit protocols ospf interface so-0/0/0.100
- Dedit protocols ospf area 0
How the community answered
(18 responses)- A6% (1)
- B78% (14)
- C17% (3)
Why each option
To configure OSPF on a specific interface from the top of the hierarchy, you can either directly set the full path or navigate to a higher OSPF hierarchy and then edit the interface.
`set protocols` is an incomplete command and does not specify what protocols to configure or how, so it cannot achieve the desired result.
The `set protocols ospf area 0 interface so-0/0/0.100` command directly creates or modifies the OSPF configuration for the specified interface within area 0 from the top-level configuration mode. This is a common method for direct configuration using the `set` command.
`edit protocols ospf interface so-0/0/0.100` attempts to directly `edit` an interface within OSPF, but `interface` is not a direct child of `ospf` at the top level for `edit` to work this way; it should be under `area`.
The `edit protocols ospf area 0` command changes the current configuration hierarchy level to `[edit protocols ospf area 0]`. From this new level, you can then issue further commands to configure interfaces specific to area 0, making it an efficient way to structure subsequent OSPF interface configurations.
Concept tested: Junos OS configuration mode commands - set, edit
Source: https://www.juniper.net/documentation/us/en/software/junos/junos-basics/topics/topic-map/cli-junos-overview.html#d19e681
Topics
Community Discussion
No community discussion yet for this question.