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


Load a Configuration Using the display set Command

Purpose

In configuration mode only, you can display the configuration as a series of configuration mode commands required to recreate the configuration. This is useful for users who are not familiar with how to use configuration mode commands or for users who wish to cut, paste, and edit the displayed configuration. In addition, you can duplicate the configuration of one router to another.

Action

To load a configuration from the local router to a target router, follow these steps:

  1. On the local router, enter configuration mode:
  2. user@R1> cli
    
    [edit]
    
    user@host#
    
    
    
  3. Go to the hierarchy level you want to copy. For example:
  4. [edit]
    
    user@R1# edit interfaces 
    
    
    
  5. Display the series of configuration commands required to recreate the configuration. For example:
  6. [edit interfaces]
    
    user@R1# show | display set 
    
    set interfaces so-0/0/0 unit 0 family inet accounting destination-class-usage
    
    set interfaces so-0/0/0 unit 0 family inet address 10.1.12.1/30
    
    set interfaces fxp0 unit 0 family inet address 10.168.70.143/21
    
    set interfaces lo0 unit 0 family inet address 10.0.0.1/32
    
    set interfaces lo0 unit 0 family iso address 49.0002.1000.0000.0003.00
    
    
    
  7. Copy each line of the configuration individually from the local router to the target router. In the target router, you must be at the top level of the configuration and in configuration mode. For example:
  8. mwazna@R2> edit 
    
    Entering configuration mode
    
    
    
    [edit]
    
    mwazna@R2# set interfaces so-0/0/0 unit 0 family inet accounting 
    destination-class-usage 
    
    
    
  9. Continue cutting and pasting each line of the configuration.
  10. Commit the configuration to activate it on the router, or you can edit the configuration interactively using the CLI and commit it at a later time.

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