[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Configuring a User Account

This section describes how to log in with a root account and configure a new user account. You can configure an account for your own use or create a test account.

To configure a user account on the router:

  1. Log in as root and enter configuration mode:

    The prompt in brackets ([edit]), also known as a banner, shows that you are in configuration edit mode, at the top of the hierarchy.

  2. Change to the [edit system login] section of the configuration:

    The prompt in brackets changes to [edit system login] to show you are at a new level in the hierarchy.

  3. Now add a new user account:

    This example adds an account nchen (for Nathan Chen), but you can use any account name.

  4. Configure a full name for the account. If the name includes spaces, enclose the entire name in quotation marks (" " ):
  5. Configure an account class. The account class sets the user access privileges for the account.
  6. Configure an authentication method and password for the account:

    When the new password prompt appears, enter a clear-text password that the system will encrypt, and then confirm the new password.

  7. Commit the configuration:

    Configuration changes are not activated until you commit the configuration. If the commit is successful, a commit complete message appears.

  8. Return to the top level of the configuration, and then exit:
  9. Log out of the router:
  10. To test your changes, log back in with the user account and password you just configured:

    When you log in, you should see the new username at the command prompt.

Congratulations! You have successfully used the CLI to view router status and perform a simple configuration change. Now you are ready to learn more about the CLI. See the remaining chapters of this book for details.

Alternatively, you can follow the instructions in Configuring a Routing Protocol to create a more extensive configuration.

Note: For complete information about the commands to issue to configure your router, including examples, see the JUNOS software configuration guides.


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]