Technical Documentation

Restoring a Saved Configuration

To restore a saved configuration, perform the following tasks:

  1. Copy Saved Files to the Router
  2. Load and Commit the Configuration File

Copy Saved Files to the Router

To copy the saved configuration to the router:

  1. Log in to the console as root. There is no password.
    Escape character is '^]'. 
    [Enter]
    router (ttyd0)

    login: root
    Password: [Enter]

    Initially, access to the router is limited to the console port after a recovery installation. Access through the management ports and interfaces is set in the configuration. For information about accessing the router through the console port, see the administration guide for your particular router.

  2. Start the CLI:
    # cli
  3. Copy the configuration file on the remote server to the router’s /var/tmp directory:
    root@host> ftp remote-server
    user: username
    password: password
    ftp> bin
    Type set to I.
    ftp> get /path/file
    ftp> bye
    Goodbye.

Load and Commit the Configuration File

Once the saved configuration file is copied to the router, you load and commit the file:

  1. Start the CLI configuration mode.
    user@routername> configure
    Entering configuration mode

    [edit]
    user@host#
  2. Load the file into the current configuration. You should override the existing file.
    user@host# 
    load override /var/tmp/filename
    load complete
  3. Commit the file.
    user@host# commit
    commit complete
  4. Exit the CLI configuration mode.
    user@host# exit
    user@host>
  5. Back up the Junos OS.

    After you have installed the software on the router, committed the configuration, and are satisfied that the new configuration is successfully running, issue the request system snapshot command to back up the new software to the /altconfig file system. If you do not issue the request system snapshot command, the configuration on the alternate boot drive will be out of sync with the configuration on the primary boot drive.

    The request system snapshot command causes the root file system to be backed up to /altroot, and /config to be backed up to /altconfig. The root and /config file systems are on the router’s CompactFlash card, and the /altroot and /altconfig file systems are on the router’s hard disk.

     


Published: 2010-07-13

Help
|
My Account
|
Log Out