| To replace the current running configuration with a | | | | Interface IP-Address OK? Method Status Protocol |
| saved Cisco IOS configuration file, use the configure | | | | FastEthernet0/0 10.10.10.3 YES manual up up |
| replace command in privileged EXEC mode. | | | | FastEthernet0/1 10.1.1.1 YES manual administratively |
| Router#configure replace flash:test.cfg | | | | down down |
| This command will replace (NOTE: not merge) the | | | | Serial0/3/0 unassigned YES unset administratively |
| running config with the config in file test.cfg. This | | | | down down |
| command was introduced in 12.3(7)T | | | | NOTE the following: |
| Here is an example of the effect: | | | | 1) Router name has changed |
| Router#sh ip int brief | | | | 2) FastEthernet 0/1 no longer has an IP address |
| Interface IP-Address OK? Method Status Protocol | | | | 3) FastEthernet 0/1 is shutdown |
| FastEthernet0/0 10.10.10.3 YES manual up up | | | | This is great as rather than just MERGING a config, |
| FastEthernet0/1 10.1.1.1 YES manual up up | | | | the command REPLACES the config. You can |
| Serial0/3/0 unassigned YES unset administratively | | | | replace the running-config from many |
| down down | | | | places:r1#configure replace ?archive: URL of config file |
| Router#configure replace flash:test.cfg | | | | that will replace running-configcns: URL of config file |
| This will apply all necessary additions and deletionsto | | | | that will replace running-configflash: URL of config file |
| replace the current running configuration with | | | | that will replace running-configftp: URL of config file |
| thecontents of the specified configuration file, which | | | | that will replace running-confighttp: URL of config file |
| isassumed to be a complete configuration, not a | | | | that will replace running-confighttps: URL of config file |
| partialconfiguration. Enter Y if you are sure you want | | | | that will replace running-confignull: URL of config file |
| to proceed. ? [no]: y | | | | that will replace running-confignvram: URL of config file |
| Total number of passes: 1 | | | | that will replace running-configpram: URL of config file |
| Rollback Doner1# | | | | that will replace running-configrcp: URL of config file |
| Dec 18 00:44:05.927: Rollback:Acquired Configuration | | | | that will replace running-configscp: URL of config file |
| lock. | | | | that will replace running-configsystem: URL of config |
| Dec 18 00:44:07.703: | | | | file that will replace running-configtftp: URL of config file |
| %PARSER-3-CONFIGNOTLOCKED: Unlock | | | | that will replace running-configxmodem: URL of config |
| requested by process '3'. | | | | file that will replace running-configymodem: URL of |
| Configuration not locked. | | | | config file that will replace running-config |
| Dec 18 00:44:08.819: %LINK-5-CHANGED: Interface | | | | You could thus have a backup config in flash or on a |
| FastEthernet0/1, changed state to administratively | | | | TFTP server and restore immediately to running config. |
| downr1#sh ip int brief | | | | |