Initially Configuring the Software


The JUNOS Internet software is configured through a hierarchy of configuration statements that define the desired software properties. All properties of the JUNOS Internet software, including interfaces, general routing information, routing protocols, and user access, as well as several system hardware properties, can be configured. First a candidate configuration is created, then it is committed, to be evaluated and activated by the JUNOS Internet software.

For a detailed description of the initial software configuration steps and configuring the software, see the JUNOS Getting Started technical documentation.

The software can be configured in one of two ways: by creating a configuration for the router interactively, working in the command-line interface (CLI) on the router, or by loading an ASCII file that contains a router configuration created earlier, either on this system or on another system. In the second case, the configuration can either be activated and run as is, or it can be edited using the CLI before being activated.

When the router is initially booted , the system prompts for the minimal information needed to configure the router, including the router's name, domain name , and Internet address of at least one interface on the router. After the router finishes booting initially, the user booting the router logs in as the user "root" (with no password) and configures a password for the user "root."

After this initial minimal configuration is completed, all other properties of the software can be configured. If the software is configured interactively using the CLI, configuration statements can be entered to create a candidate configuration that contains a hierarchy of statements. At any given hierarchy level, statements can generally be entered in any order. While configuring the software, all or portions of the candidate configuration can be displayed, and statements can be inserted or deleted. Any changes affect only the candidate configuration, not the active configuration that is running on the router.

The configuration hierarchy logically groups related functions together, which results in configuration statements that have a regular, consistent syntax. For example, routing protocols, routing policies, interfaces, and Simple Network Management Protocol (SNMP) management are each configured in their own portion of the configuration hierarchy.

At each level of the configuration hierarchy, a list of the statements available at that level, along with a short description of the statements' functions, can be displayed. The CLI features command completion, which allows typing a partial statement name followed by a space or tab to have the CLI complete the statement name if it is unambiguous or otherwise provide a list of possible completions. More than one user can edit a router configuration simultaneously . All changes made by all users are visible to everyone editing the configuration.

A configuration is edited by working in a copy of the current configuration to create a candidate configuration. The changes made to the candidate configuration are visible in the CLI immediately, so if multiple users are editing the configuration at the same time, all users can see all changes.

When the candidate configuration is committed, the changes take effect. At this point, the candidate file is checked for proper syntax, activated, and marked as the current operational software configuration file. If multiple users are editing the configuration and the candidate configuration is committed, all changes made by all the users take effect.

The router can be configured from a console attached to the console port on the CIP or by using Telnet over a network connected to the Ethernet port.

The CLI always maintains a copy of the previously committed version of the software configuration. A user can inactivate the current configuration and return to the previous configuration using the CLI.

Candidate configurations can be saved to a file on the router. They are saved as plain text files.

To initially configure the software:

  1. Power up the router as described in "Initial Powerup" on page 114.

  2. Log in as the "root" user. There is no password.

  3. Start the CLI:

     root#  cli  root@> 
  4. Enter configuration mode:

     cli>  configure  [edit] root@# 
  5. Configure the name of the router. If the name includes spaces, enclose the name in quotation marks (" ").

     [edit]  root@#  set system host-name   host-name  
  6. Configure the router's domain name:

     [edit]  root@#  set system domain-name   domain-name  
  7. Configure the IP address and prefix length for the router's Ethernet interface:

     [edit]  root@#  set interfaces fxp0 unit 0 family inet   address   address  /  prefix-length  
  8. Configure the IP address of a backup router, which is used only while the routing protocols are not running:

     [edit]  root@#  set system backup-router   address  
  9. Configure the IP address of a DNS server:

     [edit]  root@#  set system name-server   address  
  10. Set the root password, entering either a clear-text password, an encrypted password, or an SSH public key string (DSA or RSA):

     [edit]  root@#  set system root-authentication plain-text-   password  New password:  type password  Retype new password:  retype password  or [edit] root@#  set system root-authentication encrypted-   password   encrypted-password  or [edit] root@#  set system root-authentication ssh-rsa   key  
  11. Optionally, display the configuration statements to verify that the configuration is correct:

     [edit]  root@ show system {   host-name  host-name  ;   domain-name  domain.   name  ;   backup-router  address  ;   name-server {  address  ;   }   interfaces {     fxp0 {       unit 0 {         family inet {           address  address  ;         }       }     }   } } 
  12. Commit the configuration to activate it on the router:

     [edit]  root@#  commit  

    For a detailed description of the initial software configuration steps and configuring the software, see the JUNOS Getting Started technical documentation.

  13. Optionally, configure additional properties by adding the necessary configuration statement. Then commit the changes to activate them on the router:

     [edit]  root@  host-name  #  commit  
  14. After the router is configured, exit configuration mode:

     [edit]  root@  host-name  #  exit  root@  host-name  > 

The router is now connected to the network, but not fully configured. It must be completely configured before using the router to pass traffic. Information about configuring the software is presented in the following chapters.



Juniper Networks Field Guide and Reference
Juniper Networks Field Guide and Reference
ISBN: 0321122445
EAN: 2147483647
Year: 2002
Pages: 185

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net