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.
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)- A19% (5)
- B74% (20)
- D7% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.