Juniper Configuration – First Steps (Part 5) Root P/W, hostname

The first things you need to do when configuring a Juniper device is to set a password for the root account. How I found this command was mentioned in an earlier post by using the help apropos root-authentication. The other help commands didn’t show me anything other than an error saying they didn’t know about the command I was asking about. This command is active at the configuration (#) prompt. You will type set system root-authentication plain-text-password and press Enter. I tried a shorthand method I had used in the past on other platforms and specify the password to save some keystrokes. That won’t work here. You will be asked for the password for the root account. Enter that password and press Enter. You will be asked to re-enter the password for verification. Once you have done that and Junos sees that they match, you will be able to use the commit command. Use the commit command now so that this configuration step is saved.

The next thing you need to do is name device you are working on. This is done by using the set system host-name command. You will need to specify the name of the device and then pressing Enter. Before you use the commit command, try using the show | compare command. The character between the show and compare commands is the pipe command. This will show you want you have entered for configuration changes since using the commit command. Another command to add to your arsenal is the show CLI history. When using it at the Configure (#) prompt, you will need to use run show CLI history. What you will get here is a list of all the commands that you have entered at the Configuration mode prompt. When using show cli history at the Operational Mode (>) prompt, you will see just the commands you have entered at that level.

Send to Kindle
This entry was posted in Blog Entries, Juniper and tagged , , . Bookmark the permalink.