Cisco upgrade via CLI TFTP

Post Reply
zemerdon
Site Admin
Posts: 239
Joined: Mon Jan 23, 2023 8:13 pm

Cisco upgrade via CLI TFTP

Post by zemerdon »

setup TFTP server

https://www.tecmint.com/install-tftp-se ... tu-debian/

Upgrading a Switch by Using the CLI
This procedure is for copying the combined tar file to the switch. You copy the file to the switch from a TFTP server and extract the files. You can download an image file and replace or keep the current image.

To download software, follow these steps:

Use Table 3 to identify the file that you want to download.

Download the software image file:

If you are a registered customer, go to this URL and log in.

http://www.cisco.com/cisco/web/download/index.html
Navigate to Switches > LAN Switches - Access.

Navigate to your switch model.

Click IOS Software, then select the latest IOS release.

Download the image you identified in Step 1.

Copy the image to the appropriate TFTP directory on the workstation, and make sure that the TFTP server is properly configured.

For more information, see Appendix B in the software configuration guide for this release.

Log into the switch through the console port or a Telnet session.

(Optional) Ensure that you have IP connectivity to the TFTP server by entering thisprivileged EXEC command:

Switch# ping tftp-server address
For more information about assigning an IP address and default gateway to the switch, see the software configuration guide for this release.

Download the image file from the TFTP server to the switch. If you are installing the same version of software that is currently on the switch, overwrite the current image by entering this privileged EXEC command:

Switch# archive download-sw /overwrite /reload tftp:[[//location]/directory]/image-name.tar
The /overwrite option overwrites the software image in flash memory with the downloaded one.

The /reload option reloads the system after downloading the image unless the configuration has been changed and not saved.

The /allow-feature-upgrade option allows installation of an image with a different feature set (for example, upgrade from the IP base image to the IP services image).

For // location, specify the IP address of the TFTP server.

For / directory / image-name .tar, specify the directory (optional) and the image to download. Directory and image names are case sensitive.

This example shows how to download an image from a TFTP server at 198.30.20.19 and to overwrite the image on the switch:

Switch# archive download-sw /overwrite tftp://198.30.20.19/c3750-ipservices-tar.122-50.SE.tar
You can also download the image file from the TFTP server to the switch and keep the current image by replacing the /overwrite option with the /leave-old-sw option.

Web UI
If the Web UI does not load or work properly after the software upgrade, perform the following steps:

Specify the authentication method for HTTP server users as local.

Device(config)# ip http authentication local

Configure the username and password with privilege 15.

Device(config)# username user privilege 15 password password

Clear the browser cache and relaunch the Web UI.

Login by entering the privilege 15 username and password.
Post Reply