JN0-102: Juniper Networks Certified Associate Junos Exam

Which Command Defines a Router's Host-Name?

Prev Question Next Question

Question

Which command would correctly define a router's host-name?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C

Configure the hostname, using the set system host-name command.

[edit]

user@host# set system host-name newton-re0

The correct answer is C: # set system host-name <name>.

Explanation:

The Junos OS command to set the hostname of a router is "set system host-name <name>". This command sets the hostname of the router to <name> and is stored in the configuration file.

Option A is incorrect because "set ip host-name" is not a valid Junos OS command.

Option B is also incorrect because the ">" symbol is not a Junos OS prompt; it is commonly used as a shell prompt in Unix/Linux operating systems.

Option D is incorrect because ">" is not a Junos OS prompt and "set system host-name" should be preceded by the "#" prompt.

Therefore, the correct answer is C: # set system host-name <name>.