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:
- On the local router, enter configuration mode:
user@R1>cli[edit]user@host#- Go to the hierarchy level you want to copy. For example:
[edit]user@R1#edit interfaces- Display the series of configuration commands required to recreate the configuration. For example:
[edit interfaces]user@R1#show|display setset interfaces so-0/0/0 unit 0 family inet accounting destination-class-usageset interfaces so-0/0/0 unit 0 family inet address 10.1.12.1/30set interfaces fxp0 unit 0 family inet address 10.168.70.143/21set interfaces lo0 unit 0 family inet address 10.0.0.1/32set interfaces lo0 unit 0 family iso address 49.0002.1000.0000.0003.00- 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:
mwazna@R2>editEntering configuration mode[edit]mwazna@R2#set interfaces so-0/0/0 unit 0 family inet accounting destination-class-usage- Continue cutting and pasting each line of the configuration.
- 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.