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.
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)- A4% (1)
- B92% (24)
- D4% (1)
Why each option
This question asks for two correct Junos OS commands to configure an IPv4 address on a Gigabit Ethernet interface.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.