nerdexam
Juniper

JN0-102 · Question #62

Referring to the exhibit, which two actions would you take to only apply the 10.10.12.1/24 address to the ge-0/0/1.0 interface? user@router> show configuration groups { ge-int { interfaces { <ge-*> {

The correct answer is B. Apply the ge-int group to the configuration at the [edit interfaces ge-0/0/1] hierarchy. C. Apply the ge-int group to the configuration at the [edit interfaces ge-0/0/1 unit 0] hierarchy.. To apply a configuration group containing interface-specific settings to a logical unit, the group must be applied at either the physical interface or the logical unit hierarchy level.

Configuration Basics

Question

Referring to the exhibit, which two actions would you take to only apply the 10.10.12.1/24 address to the ge-0/0/1.0 interface? user@router> show configuration groups { ge-int { interfaces { <ge-*> { unit 0 { familyinet { address 10.10.12.1/24; } } } } } } ... interfaces { ge-0/0/1 { unit 0; }

Options

  • AApply the ge-int group to the configuration at the [edit] hierarchy.
  • BApply the ge-int group to the configuration at the [edit interfaces ge-0/0/1] hierarchy.
  • CApply the ge-int group to the configuration at the [edit interfaces ge-0/0/1 unit 0] hierarchy.
  • DApply the ge-int group to the configuration at the [edit interfaces] hierarchy.

How the community answered

(27 responses)
  • A
    19% (5)
  • B
    74% (20)
  • D
    7% (2)

Why each option

To apply a configuration group containing interface-specific settings to a logical unit, the group must be applied at either the physical interface or the logical unit hierarchy level.

AApply the ge-int group to the configuration at the [edit] hierarchy.

Applying the group at the [edit] hierarchy would cause the interfaces <ge-*> wild card to be interpreted globally, potentially affecting all interfaces or failing to apply as intended due to incorrect scope.

BApply the ge-int group to the configuration at the [edit interfaces ge-0/0/1] hierarchy.Correct

The configuration group ge-int contains interface settings under interfaces <ge-*> and unit 0. Applying this group at [edit interfaces ge-0/0/1] will allow the wild card ge-* to match ge-0/0/1, thereby applying the contained unit 0 and address configurations to ge-0/0/1.0.

CApply the ge-int group to the configuration at the [edit interfaces ge-0/0/1 unit 0] hierarchy.Correct

Applying the ge-int group directly at [edit interfaces ge-0/0/1 unit 0] is also a valid way to apply the family inet address 10.10.12.1/24 directly to that specific logical unit, as the wildcard ge-* would match the current interface scope.

DApply the ge-int group to the configuration at the [edit interfaces] hierarchy.

Applying the group at [edit interfaces] would cause the <ge-*> wildcard to apply the configuration to *all* ge interfaces, not just ge-0/0/1, violating the requirement to "only apply" to ge-0/0/1.0.

Concept tested: Junos OS configuration groups and apply-groups

Source: https://www.juniper.net/documentation/us/en/software/junos/system-basics/topics/topic-map/cli-configuration-groups-overview.html

Topics

#configuration groups#wildcards#interface configuration#Junos CLI

Community Discussion

No community discussion yet for this question.

Full JN0-102 Practice