When a line card or module is removed from the slot, any previous commands or configurations are removed from the running-config.
When the card is installed in a different slot, it must be reconfigured. Before the line card is moved to another slot, backup the configuration.
It is recommended to store the configurations in the switch to the TFTP server as backup. If the configurations are stored as backup in the Flash or Bootflash, the backup configurations are lost if the Flash or Bootflash fails.
Cisco recommends these commands depending on the situation:
In order to save the current system configuration that the switch runs, issue this command:
Switch#copy running-config tftp
In order to save the startup configuration, which is the configuration that the switch uses to boot, issue this command:
Switch#copy startup-config tftp
If the switch fails, and loses all configuration, issue this command to copy the configuration to the flash card:
Switch#copy tftp flash
Note: After the configuration is copied from the TFTP server to the switch, change the slot number in the configuration to the one on which the module is currently installed.