[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:
  2. root@host> configure
    
    [edit]
    
    root@host#
    
    
    

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

  1. Change to the [edit system login] section of the configuration:
  2. [edit]
    
    root@host# edit system login 
    
    
    
    [edit system login]
    
    root@host# 
    
    
    

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

  1. Now add a new user account:
  2. [edit system login]
    
    root@host# edit user nchen
    
    
    

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

  1. Configure a full name for the account. If the name includes spaces, enclose the entire name in quotation marks (" "):
  2. [edit system login user nchen]
    
    root@host# set full-name "Nathan Chen" 
    
    
    
  3. Configure an account class. The account class sets the user access privileges for the account.
  4. [edit system login user nchen]
    
    root@host# set class super-user 
    
    
    
  5. Configure an authentication method and password for the account:
  6. [edit system login user nchen
    
    root@host# set authentication plain-text-password 
    
    New password: 
    
    Retype new password:
    
    
    

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

  1. Commit the configuration:
  2. [edit system login user nchen]
    
    root@host# commit 
    
    commit complete
    
    
    

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

  1. Return to the top level of the configuration, and then exit:
  2. [edit system login user nchen]
    
    root@host# top 
    
    
    
    [edit]
    
    root@host# exit 
    
    Exiting configuration mode
    
    
    
  3. Log out of the router:
  4. root@host> exit 
    
    
    
    % logout Connection closed.
    
    
    
  5. To test your changes, log back in with the user account and password you just configured:
  6. >
    
    login: nchen
    
    Password: <password>
    
    
    
    --- JUNOS 8.2-R1.1 built 2005-12-15 22:42:19 UTC
    
    nchen@host> 
    
    
    

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]