Which command configures an address of 192.168.1.1 with a mask of 255.255.255.0 on interface ge-0/0/0?
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:
bashset interfaces interface-name unit unit-number family inet address ip-address/prefix-length
Let's break down the command options for the given question:
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:
pythonset 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.