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

Copy a File on a Routing Engine

Purpose

When you configure one Routing Engine and another Routing Engine needs to have a similar configuration, or when you upgrade the JUNOS software version on one Routing Engine, you can simplify the process by copying files from one Routing Engine to another.

To copy a file, follow these steps:

  1. Copy a File from One Routing Engine to Another
  2. Copy Files between the Local Router and a Remote System

Copy a File from One Routing Engine to Another

Purpose

When you have a dual Routing Engine configuration, you can copy a configuration file from Routing Engine 0 to Routing Engine 1 or vice versa.

Action

To copy a configuration file from Routing Engine 0 to Routing Engine 1, use the following JUNOS command-line interface (CLI) operational mode command:

user@host> file copy source destination

Sample Output


user@host> file copy /config/juniper.conf re1:/var/tmp/copied-juniper.conf

Meaning

In this case, source is the name of the configuration file on Routing Engine 0. Configuration files are stored in the directory /config. The active configuration is /config/juniper.conf, and older configurations are in /config/juniper.conf {1...9 }. destination is a file on Routing Engine 1.

Note: Refer to Maintain a Single Configuration File for Both Routing Engines for details about naming the Routing Engines correctly.


Copy Files between the Local Router and a Remote System

Action

You can copy a configuration file from a Routing Engine to a remote system in the network using the File Transfer Protocol (FTP) or secure copy protocol (scp) in any one of the following ways:

Note: You cannot use scp or ssh to copy a file in the worldwide version of the JUNOS software.


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