Which command would correctly define a router's host-name?
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>.