nerdexam
Juniper

JN0-102 · Question #185

Which two commands may be used when configuring an IP address for a Gigabit Ethernet interface? (Choose two.)

The correct answer is B. set interfaces ge-0/0/0.0 family inet address 10.1.1.1/24 C. set interfaces ge-0/0/0 unit 0 family inet address 10.1.1.1/24. This question asks for two correct Junos OS commands to configure an IPv4 address on a Gigabit Ethernet interface.

Configuration Basics

Question

Which two commands may be used when configuring an IP address for a Gigabit Ethernet interface? (Choose two.)

Options

  • Aset interfaces ge-0/0/0.0 address 10.1.1.1/24
  • Bset interfaces ge-0/0/0.0 family inet address 10.1.1.1/24
  • Cset interfaces ge-0/0/0 unit 0 family inet address 10.1.1.1/24
  • Dset interfaces ge-0/0/0 address 10.1.1.1/24

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    92% (24)
  • D
    4% (1)

Why each option

This question asks for two correct Junos OS commands to configure an IPv4 address on a Gigabit Ethernet interface.

Aset interfaces ge-0/0/0.0 address 10.1.1.1/24

The `set interfaces ge-0/0/0.0 address 10.1.1.1/24` command is missing the `family inet` keyword, which is mandatory when configuring an IP address on a Junos OS interface.

Bset interfaces ge-0/0/0.0 family inet address 10.1.1.1/24Correct

The `set interfaces ge-0/0/0.0 family inet address 10.1.1.1/24` command correctly specifies the logical interface, the address family (inet for IPv4), and the IP address with its prefix length.

Cset interfaces ge-0/0/0 unit 0 family inet address 10.1.1.1/24Correct

The `set interfaces ge-0/0/0 unit 0 family inet address 10.1.1.1/24` command also correctly configures the IP address, explicitly separating the physical interface and the logical unit, which is an equivalent way to refer to the logical interface ge-0/0/0.0.

Dset interfaces ge-0/0/0 address 10.1.1.1/24

The `set interfaces ge-0/0/0 address 10.1.1.1/24` command is incorrect because it attempts to configure an IP address directly on the physical interface without specifying a logical unit or address family.

Concept tested: Junos OS interface IP address configuration syntax

Source: https://www.juniper.net/documentation/us/en/software/junos/interfaces-app-prot/topics/topic-map/interface-addresses.html

Topics

#interface configuration#IP addressing#Gigabit Ethernet#set commands

Community Discussion

No community discussion yet for this question.

Full JN0-102 Practice