Global configuration

Auto configuration save

If you want to auto save the configuration of a Cisco switch/router, you can follow the following procedure.

You can use various remote servers, such as TFTP, FTP, etc.

Here, we gonna configure an autosave through TFTP.

enable
configure terminal
archive
path tftp://192.168.254.1/$h.$t.conf
write-memory
time-period 1440
exit
exit
copy running-config startup-config

Here, we use some option to configure the archive service.

  1. In the path, we got $h and $t.
    1. $h is the hostname of the system.
    2. $t is the time of the save.
  2. write-memory command allows the system to upload to the remote server the configuration when the command write is issued.
  3. The time-period is given in seconds. Here, each 1440 seconds (so each day), the configuration will be saved.

Update user username and password

For security reasons, here the procedure to update the username and the password of a user.

 

Here how to update the enable password.
enable
configure terminal
enable secret new-password
Here how to update the username and password of a user for a WebUI access.
enable
configure terminal
username new-username privilege 15 privilege 15 secret new-password
no username old-username
Here how to update the username and password of a classic user.
enable
configure terminal
username new-username password 0 new-password
no username old-username
After that, you can enable the password encryption and save the configuration
service password-encryption
exit
copy running-config startup-config