Contents Software upgrade configuration examples ················································································································ 3 Upgrading software from the CLI ···································································································································· 3 Example: Using the device as a TFTP client to upgrade software······································································· 3 Example: Using the device as an FTP client to upgrade software ······································································ 7 Example: Using the device as an FTP server to upgrade software ·································································· 11 Upgrading software from the Boot menu ····················································································································...
Software upgrade configuration examples This document provides software upgrade examples. In this document, examples of upgrading software from the CLI use the non-ISSU method. Upgrading software from the CLI Example: Using the device as a TFTP client to upgrade software Network requirements As shown in Figure...
Page 4
Figure 2 Configuring the TFTP server Upgrade the device: # Assign an IP address to M-GigabitEthernet 0/0/0. Make sure the device can reach the TFTP server. <Device> system-view [Device] interface M-GigabitEthernet0/0/0 [Device-M-GigabitEthernet0/0/0] ip address 192.168.100.66 255.255.255.0 [Device-M-GigabitEthernet0/0/0] quit [Device] quit # Verify that the device can ping the TFTP server.
Page 5
(To leave the existing filename unchanged, press the enter key): flash:/startup.cfg exists, overwrite? [Y/N]:y Validating file. Please wait... Saved the current configuration to mainboard device successfully. Slot 1 Cpu 0: Save next configuration file successfully. # Identify MPUs on the device. <Device>...
Page 6
<Device> display version H3C Comware Software, Version 7.1.045, Release 7328P02 Copyright (c) 2010-2014 Hewlett-Packard Development Company, L.P. H3C 12508 uptime is 0 weeks, 0 days, 12 hours, 8 minutes Last reboot reason : Power on Boot image: flash:/s12500-cmw710-boot-test.bin Boot image version: 7.1.045, Release 7328P02 Compiled Jul 28 2014 17:32:35 System image: flash:/s12500-cmw710-system-test.bin...
flash:/s12500-cmw710-boot-old.bin flash:/s12500-cmw710-system-old.bin # Display the current software images and startup software images on the standby MPU. <Device> display boot-loader slot 1 Software images on slot 1: Current software images: flash:/s12500-cmw710-boot-test.bin flash:/s12500-cmw710-system-test.bin Main startup software images: flash:/s12500-cmw710-boot-test.bin flash:/s12500-cmw710-system-test.bin Backup startup software images: flash:/s12500-cmw710-boot-old.bin flash:/s12500-cmw710-system-old.bin Configuration files...
Page 8
Configuration procedures Configure the FTP server: # Assign the IP address 192.168.100.14/24 to the FTP server. (Details not shown.) # Start the FTP server and specify a working directory. This example uses the 3CDaemon FTP server. (Details not shown.) # Add a local user account. Set the username to 123456 and the password to 123456. (Details not shown.) Figure 4 Configuring the FTP server Upgrade the device:...
Page 9
5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/1/2 ms # Save the configuration. <Device> save The current configuration will be written to the device. Are you sure? [Y/N]:y Please input the file name(*.cfg)[flash:/startup.cfg] (To leave the existing filename unchanged, press the enter key): flash:/startup.cfg exists, overwrite? [Y/N]:y Validating file.
Page 10
1. # Reboot the device. <Device> reboot Verifying the configuration Verify that the software has been upgraded. <Device> display version H3C Comware Software, Version 7.1.045, Release 7328P02 Copyright (c) 2010-2014 Hewlett-Packard Development Company, L.P.
H3C 12508 uptime is 0 weeks, 0 days, 12 hours, 8 minutes Last reboot reason : Power on Boot image: flash:/s12500-cmw710-boot-test.bin Boot image version: 7.1.045, Release 7328P02 Compiled Jul 28 2014 17:32:35 System image: flash:/s12500-cmw710-system-test.bin System image version: 7.1.045, Release 7328P02...
Page 12
Enable the FTP server on the router. • • Use FTP to upload a software upgrade file from an FTP client to upgrade the device. Figure 5 Network diagram Software version used This configuration example was created and verified on S12500-CMW710-R7328P02. Requirements analysis When you use the device as an FTP server, you must create a local user account on the device to provide FTP service.
Page 13
<Device> save The current configuration will be written to the device. Are you sure? [Y/N]:y Please input the file name(*.cfg)[flash:/startup.cfg] (To leave the existing filename unchanged, press the enter key): flash:/startup.cfg exists, overwrite? [Y/N]:y Validating file. Please wait... Saved the current configuration to mainboard device successfully. Slot 1 Cpu 0: Save next configuration file successfully.
Configuration files interface M-GigabitEthernet0/0/0 port link-mode bridge ip address 192.168.100.66 255.255.255.0 local-user abc class manage password hash $h$6$YMVbbwFL/vviWcQu$+CuTbYCehNZtZo5RCXiadpYbXYWa2omt5TUtEh3UPCg3fZjxYCp5WzbuE2GoowV i2YA/BK+mnSZJZqi5jRDuCg== service-type ftp authorization-attribute user-role network-admin ftp server enable Upgrading software from the Boot menu Example: Using the device as a TFTP client to upgrade software Network requirements As shown in...
Page 17
# Use a console cable to connect the console port on the standby MPU to the host. (Details not shown.) # Run the HyperTerminal, and then create a connection. Figure 7 Creating a connection # In the Connect To dialog box, select COM1 for Connect Using, and then click OK. Figure 8 Connect To dialog box # Click Restore Defaults, and then click OK.
Page 18
Figure 9 COM1 Properties The user view prompt is displayed if you access the CLI successfully. Figure 10 User view prompt at the CLI Configure the TFTP server: # Assign the IP address 192.168.100.14/24 to the TFTP server. (Details not shown.)
Page 19
# Start the TFTP server and specify a working directory. This example uses the 3CDaemon TFTP server. (Details not shown.) Figure 11 Configuring the TFTP server Upgrade the device: Upgrade software on the standby MPU: # Use a straight-through Ethernet cable to connect the management Ethernet interface (M-GigabitEthernet 0/0/0) on the standby MPU to the TFTP server.
Page 20
The Extended BootWare is self-decompressing......Done. **************************************************************************** H3C S12500 BootWare, Version 1.01 **************************************************************************** Compiled Date : Mar 27 2013 CPU Type : P5040 CPU L1 Cache : 32KB CPU L2 Cache : 1024KB CPU Clock Speed : 1800MHz Memory Type : DDR3 SDRAM...
Page 21
|<7> Skip Authentication for Console Login |<8> Storage Device Operation |<0> Reboot ============================================================================ Ctrl+Z: Access EXTENDED ASSISTANT MENU Ctrl+F: Format File System Enter your choice(0-8): # Enter 3 in the EXTEND-BOOTWARE menu to access the Ethernet submenu. ==========================<Enter Ethernet SubMenu>========================== |Note:the operating device is cfa0 |<1>...
Page 22
Field Description Server IP Address Set the IP address of the TFTP server. Set the IP address of the Ethernet interface that connects to the Local IP Address TFTP server. Subnet Mask Set the IP address mask. Set a gateway IP address if the router is on a different network Gateway IP Address from the server.
Page 23
==========================<EXTENDED-BOOTWARE MENU>========================== |<1> Boot System |<2> Enter Serial SubMenu |<3> Enter Ethernet SubMenu |<4> File Control |<5> Restore to Factory Default Configuration |<6> BootWare Operation Menu |<7> Skip Authentication for Console Login |<8> Storage Device Operation |<0> Reboot ============================================================================ Ctrl+Z: Access EXTENDED ASSISTANT MENU Ctrl+F: Format File System Enter your choice(0-8): # Enter 1 in the EXTEND-BOOTWARE menu to boot the standby MPU.
None Configuration files The system does not save the commands used in this procedure to a configuration file. Related documentation H3C S12500 Routing Switch Series Fundamentals Command Reference-Release 7328 • H3C S12500 Routing Switch Series Fundamentals Configuration Guide-Release 7328 •...