JN0-102 Exam: Configuring IP Address on Juniper Interface | Junos Certification

Configure IP Address on Juniper Interface ge-0/0/0

Prev Question Next Question

Question

Which command configures an address of 192.168.1.1 with a mask of 255.255.255.0 on interface ge-0/0/0?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D

The following configuration is sufficient to get a Fast Ethernet interface up and running. By default, IPv4 Fast Ethernet interfaces use Ethernet version 2 encapsulation.

[edit]

user@host# set interfaces fe-5/2/1 unit 0 family inet address local-address

The correct answer to configure an address of 192.168.1.1 with a mask of 255.255.255.0 on interface ge-0/0/0 is D. set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24.

Explanation:

In Junos OS, to configure an IP address on an interface, you need to use the set interfaces command with appropriate options. The syntax to configure an IP address on an interface is:

bash
set interfaces interface-name unit unit-number family inet address ip-address/prefix-length

Let's break down the command options for the given question:

  • interfaces: This option specifies the interface name.
  • ge-0/0/0: This is the name of the interface.
  • unit 0: This specifies the logical unit number of the interface. Most interfaces have only one logical unit, so the unit number is usually 0.
  • family inet: This specifies the protocol family for the address, which is IPv4 in this case.
  • address: This option specifies the IP address to be configured.
  • 192.168.1.1: This is the IP address to be configured.
  • /24: This is the prefix length or subnet mask in CIDR notation, which is equivalent to a subnet mask of 255.255.255.0.

So the correct command to configure an address of 192.168.1.1 with a mask of 255.255.255.0 on interface ge-0/0/0 is:

python
set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24

Option A is incorrect because it uses the 'ip' keyword, which is not a valid Junos OS command.

Option B is incorrect because it uses a slash notation for the subnet mask instead of specifying it separately.

Option C is incorrect because it uses a different syntax for configuring the IP address and subnet mask on the interface.