The hostname in JunOS is the name given to the device to identify it within the network. This name can be chosen by the administrator and usually reflects the function, location, or other characteristics of the device. This hostname is very important for network management and administration, as it makes it easier to identify and manage devices in a large network.

Below step by step to edit or change hostname of Junos OS:

Enter to the configuration mode.


Then we edit the system.

edit system

Set hostname by using the following command.

set host-name Junos

Above we use Junos as the hostname.

Finally, we commit the changing of hostname by using the following command.