01-Fundamentals Configuration Examples

HomeSupportSwitchesH3C S12500 Switch SeriesConfigure & DeployConfiguration ExamplesH3C S12500 Typical Configuration Example-R7328P02-6W10001-Fundamentals Configuration Examples
02-H3C S12500 Software Upgrade Configuration Examples

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 1, use TFTP to download a software upgrade file from a TFTP server to upgrade the device.

Figure 1 Network diagram

 

Software version used

This configuration example was created and verified on S12500-CMW710-R7328P02.

Configuration restrictions and guidelines

When you upgrade software, follow these restrictions and guidelines:

·     Make sure the device has sufficient storage space for the upgrade file. If the device does not have sufficient storage space, delete unused files by using the delete /unreserved file-url command.

·     Save the configuration before the upgrade for the configuration to survive a reboot.

·     If the device has two MPUs, you must upgrade both MPUs for the device to operate correctly.

Configuration procedures

1.     Configure the TFTP server:

# Assign the IP address 192.168.100.14/24 to the TFTP server. (Details not shown.)

# Start the TFTP server and specify a working directory. This example uses the 3CDaemon TFTP server. (Details not shown.)

Figure 2 Configuring the TFTP server

 

2.     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.

<Device> ping 192.168.100.14

  PING 192.168.100.14: 56  data bytes, press CTRL_C to break

    Reply from 192.168.100.14: bytes=56 Sequence=0 ttl=128 time=2 ms

    Reply from 192.168.100.14: bytes=56 Sequence=1 ttl=128 time=1 ms

    Reply from 192.168.100.14: bytes=56 Sequence=2 ttl=128 time=1 ms

    Reply from 192.168.100.14: bytes=56 Sequence=3 ttl=128 time=1 ms

    Reply from 192.168.100.14: bytes=56 Sequence=4 ttl=128 time=1 ms

 

  --- 192.168.100.14 ping statistics ---

    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. 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> display device

Slot No.   Brd Type       Brd Status   Software Version                       

 0         LST2MRPNC1      Master       S12500-CMW710-R7328P01                   

 1         LST2MRPNC1      Standby      S12500-CMW710-R7328P01                   

 2         NONE             Absent       NONE                                   

 3         LST1GT48LEC1    Normal      S12500-CMW710-R7328P01                   

 4         NONE             Absent       NONE                                    

 5         NONE             Absent       NONE                                   

 6         NONE             Absent       NONE                                   

 7         NONE             Absent       NONE                                   

 8         NONE             Absent       NONE                                   

 9         NONE             Absent       NONE                                   

 10        NONE             Absent       NONE                                   

 11        NONE             Absent       NONE                                   

 12        NONE             Absent       NONE                                   

 13        NONE             Absent       NONE                                   

 14        LST2SF08C1      Normal       S12500-CMW710-R7328P01                   

 15        NONE             Absent       NONE                                   

 16        NONE             Absent       NONE                                   

 17        NONE             Absent       NONE                                   

 18        NONE             Absent       NONE

The output shows that the device has two MPUs: one active MPU in slot 0 and one standby MPU in slot 1. You must upgrade both MPUs.

# Use TFTP to download the upgrade file from the TFTP server to the root directory of the storage medium on the active MPU.

<Device> tftp 192.168.100.14 get s12500.ipe

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100 70.7M  100 70.7M    0     0  1193k      0  0:00:50  0:00:50 --:--:-- 1127k

# Specify the upgrade file as the main startup image file for both MPUs.

<Device> boot-loader file flash:/s12500.ipe slot 0 main

Verifying image file.........Done.                                             

Images in IPE:                                                                 

  S12500-CMW710-BOOT-test.bin                                               

  S12500-CMW710-SYSTEM-test.bin

This command will set the main startup software images. Continue? [Y/N]:y

Decompressing file S12500-CMW710-BOOT-test.bin to cfa0:/S12500-CMW710-BOOT-test.bin

..................................................Done.               

Decompressing file S12500-CMW710-SYSTEM-test.bin to cfa0:/S12500-CMW710-SYSTEM

-test.bin...................................................................

................................................................................

......................................Done.

The images that have passed all examinations will be used as the main startup so

ftware images at the next reboot on slot 0.

<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-test.bin system flash:/s12500-CMW710-SYSTEM-test.bin slot 1 main

This command will set the backup startup software images. Continue? [Y/N]:y

The images that have passed all examinations will be used as the main startup so

ftware images at the next reboot on slot 1.

# Specify the current startup image file as the backup startup image file for both MPUs. This setting ensures that the device can start up if the upgrade file is corrupt or not correct.

<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-old.bin system flash:/s12500-CMW710-SYSTEM-old.bin slot 0 backup

This command will set the backup startup software images. Continue? [Y/N]:y

The images that have passed all examinations will be used as the backup startup software images at the next reboot on slot 0.

<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-old.bin system flash:/s12500-CMW710-SYSTEM-old.bin slot 1 backup

This command will set the backup startup software images. Continue? [Y/N]:y

The images that have passed all examinations will be used as the backup startup so

ftware images at the next reboot on slot 1.

# Reboot the device.

<Device> reboot

Verifying the configuration

1.     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                                  

  Compiled Jul 28 2014 17:32:35

---- More ----

2.     Verify that the software images on the MPUs are the same:

# Display the current software images and startup software images on the active MPU.

<Device> display boot-loader slot 0

Software images on slot 0:

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

# 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

#

interface M-GigabitEthernet0/0/0

 port link-mode route

 ip address 192.168.100.66 255.255.255.0

#

Example: Using the device as an FTP client to upgrade software

Network requirements

As shown in Figure 3, use FTP to download a software upgrade file from an FTP server to upgrade the device.

Figure 3 Network diagram

 

Software version used

This configuration example was created and verified on S12500-CMW710-R7328P02.

Configuration restrictions and guidelines

When you upgrade software, follow these restrictions and guidelines:

·     Make sure the device has sufficient storage space for the upgrade file. If the device does not have sufficient storage space, delete unused files by using the delete /unreserved file-url command.

·     Save the configuration before the upgrade for the configuration to survive a reboot.

·     If the device has two MPUs, you must upgrade both MPUs for the device to operate correctly.

Configuration procedures

1.     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

 

2.     Upgrade the device:

# Assign an IP address to M-GigabitEthernet 0/0/0. Make sure the device can reach the FTP 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 FTP server.

<Device> ping 192.168.100.14

  PING 192.168.100.14: 56  data bytes, press CTRL_C to break

    Reply from 192.168.100.14: bytes=56 Sequence=0 ttl=128 time=2 ms

    Reply from 192.168.100.14: bytes=56 Sequence=1 ttl=128 time=1 ms

    Reply from 192.168.100.14: bytes=56 Sequence=2 ttl=128 time=1 ms

    Reply from 192.168.100.14: bytes=56 Sequence=3 ttl=128 time=1 ms

    Reply from 192.168.100.14: bytes=56 Sequence=4 ttl=128 time=1 ms

 

  --- 192.168.100.14 ping statistics ---

    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. 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> display device

Slot No.   Brd Type       Brd Status   Software Version                       

 0         LST2MRPNC1      Master        s12500-CMW710-R7328P01                   

 1         LST2MRPNC1      Standby       s12500-CMW710-R7328P01                   

 2         NONE             Absent         NONE                                   

 3         LST1GT48LEC1   Normal         s12500-CMW710-R7328P01                   

 4         NONE             Absent         NONE                                   

 5         NONE             Absent         NONE                                   

 6         NONE             Absent         NONE                                   

 7         NONE             Absent         NONE                                   

 8         NONE             Absent         NONE                                   

 9         NONE             Absent         NONE                                   

 10        NONE             Absent         NONE                                   

 11        NONE             Absent         NONE                                    

 12        NONE             Absent         NONE                                   

 13        NONE             Absent         NONE                                   

 14        LST2SF08C1      Normal         s12500-CMW710-R7328P01                   

 15        NONE             Absent         NONE                                   

 16        NONE             Absent         NONE                                   

 17        NONE             Absent         NONE                                    

 18        NONE             Absent         NONE

The output shows that the switch has two MPUs: one active MPU in slot 0 and one standby MPU in slot 1. You must upgrade both MPUs.

# Use the username 123456 and the password 123456 to log in to the FTP server.

<Device> ftp 192.168.100.14

Connected to 192.168.100.14 (192.168.100.14).

220 3Com 3CDaemon FTP Server Version 2.0

User (192.168.100.14:(none)): 123456

331 User name ok, need password

Password:

230 User logged in

Remote system type is UNIX.

Using binary mode to transfer files.

# Use FTP to download the upgrade file from the FTP server to the root directory of the storage medium on the active MPU.

ftp> get s12500.ipe

227 Entering passive mode (192,168,100,14,8,86)

125 Using existing data connection

226 Closing data connection; File transfer successful.

70445056 bytes received in 53.6 seconds (1.25 Mbyte/s)

ftp> quit

# Specify the upgrade file as the main startup image file for both MPUs.

<Device> boot-loader file flash:/s12500.ipe slot 0 main

Verifying image file.........Done.                                             

Images in IPE:                                                                 

  S12500-CMW710-BOOT-test.bin                                                

  S12500-CMW710-SYSTEM-test.bin

This command will set the main startup software images. Continue? [Y/N]:y

Decompressing file S12500-CMW710-BOOT-test.bin to cfa0:/S12500-CMW710-BOOT-test.bin

..................................................Done.                

Decompressing file S12500-CMW710-SYSTEM-test.bin to cfa0:/S12500-CMW710-SYSTEM

-test.bin...................................................................

................................................................................

......................................Done.

This command will set the main startup software images. Continue? [Y/N]:y

The images that have passed all examinations will be used as the main startup so

ftware images at the next reboot on slot 0.

<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-test.bin system flash:/s12500-CMW710-SYSTEM-test.bin slot 1 main

This command will set the backup startup software images. Continue? [Y/N]:y

The images that have passed all examinations will be used as the main startup so

ftware images at the next reboot on slot 1.

# Specify the current startup image file as the backup startup image file for both MPUs. This setting ensures that the device can start up if the upgrade file is corrupt or not correct.

<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-old.bin system flash:/s12500-CMW710-SYSTEM-old.bin slot 0 backup

This command will set the backup startup software images. Continue? [Y/N]:y

The images that have passed all examinations will be used as the backup startup software images at the next reboot on slot 0.

<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-old.bin system flash:/s12500-CMW710-SYSTEM-old.bin slot 1 main

This command will set the backup startup software images. Continue? [Y/N]:y

The images that have passed all examinations will be used as the main startup so

ftware images at the next reboot on slot 1.

# Reboot the device.

<Device> reboot

Verifying the configuration

1.     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                                  

  Compiled Jul 28 2014 17:32:35                                         

---- More ----

2.     Verify that the software images on the MPUs are the same:

# Display the current software images and startup software images on the active MPU.

<Device> display boot-loader slot 0

Software images on slot 0:

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

# 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

#

interface M-GigabitEthernet0/0/0

 port link-mode route

 ip address 192.168.100.66 255.255.255.0

#

Example: Using the device as an FTP server to upgrade software

Network requirements

As shown in Figure 5:

·     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.

Configuration restrictions and guidelines

When you upgrade software, follow these restrictions and guidelines:

·     Make sure the device has sufficient storage space for the upgrade file. If the device does not have sufficient storage space, delete unused files by using the delete /unreserved file-url command.

·     Save the configuration before the upgrade for the configuration to survive a reboot.

·     If the device has two MPUs, you must upgrade both MPUs for the device to operate correctly.

·     You must set the file transfer mode to binary.

Configuration procedures

1.     Configure the FTP server:

# Assign an IP address to M-GigabitEthernet 0/0/0.

<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

# Add a local user account. Set the username to abc and the password to 123456.

[Device] local-user abc

[Device-luser-abc] password simple 123456

# Assign the network-admin user role to the user account.

[Device-luser-abc] authorization-attribute user-role network-admin

# Remove the default network-operator user role.

[Device-luser-abc] undo authorization-attribute user-role network-operator

# Assign FTP service to the user account.

[Device-luser-abc] service-type ftp

[Device-luser-abc] quit

# Enable the FTP server.

[Device] ftp server enable

[Device] quit

# 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. Please wait...

Saved the current configuration to mainboard device successfully.

Slot 1 Cpu 0:

Save next configuration file successfully.

2.     Configure the FTP client:

# Assign the IP address 192.168.100.14/24 to the FTP client. Make sure the FTP client can reach the device. (Details not shown.)

# Use the username abc and the password 123456 to log in to the FTP server.

C:\Documents and Settings\Administrator> ftp 192.168.100.66

Connected to 192.168.100.66.

220 FTP service ready.

User (192.168.100.66:(none)): abc

331 Password required for abc.

Password:

230 User logged in.

# Access the directory that contains the upgrade file.

ftp> lcd E:\

Local directory now E:\

# Set the file transfer mode to binary.

ftp> binary

200 TYPE is now 8-bit binary

# Transfer the upgrade file to the root directory of the storage medium on the FTP server.

ftp> put s12500.ipe

200 PORT command successful

150 Connecting to port 2903

226 File successfully transferred

ftp: 70445056 sent in 1.05Seconds 67282.77Kbytes/sec.

# Verify that the image file is saved on the FTP server.

ftp> ls s12500.ipe

200 PORT command successful

150 Connecting to port 3391

s12500.ipe

226 1 matches total

ftp: 24 bytes received in 0.00Seconds 24000.00Kbytes/sec.

# Close the FTP connection.

ftp> bye

3.     Upgrade the device:

# Identify MPUs on the device.

<Device> display device

Slot No.   Brd Type        Brd Status   Software Version                       

 0          LST2MRPNC1      Master       s12500-CMW710-R7328P01                   

 1          LST2MRPNC1      Standby      s12500-CMW710-R7328P01                   

 2          NONE             Absent        NONE                                   

 3          LST1GT48LEC1   Normal        s12500-CMW710-R7328P01                   

 4          NONE             Absent        NONE                                   

 5          NONE             Absent        NONE                                   

 6          NONE             Absent        NONE                                   

 7          NONE             Absent        NONE                                   

 8          NONE             Absent        NONE                                   

 9          NONE             Absent        NONE                                   

 10         NONE             Absent        NONE                                   

 11         NONE             Absent        NONE                                   

 12         NONE             Absent        NONE                                   

 13         NONE             Absent        NONE                                   

 14         LST2SF08C1      Normal        s12500-CMW710-R7328P01                   

 15         NONE             Absent        NONE                                   

 16         NONE             Absent        NONE                                   

 17         NONE             Absent        NONE                                   

 18         NONE             Absent        NONE

The output shows that the device has two MPUs: one active MPU in slot 0 and one standby MPU in slot 1. You must upgrade both MPUs.

# Specify the upgrade file as the main startup image file for both MPUs.

<Device> boot-loader file flash:/s12500.ipe slot 0 main

Verifying image file.........Done.                                             

Images in IPE:                                                                 

  S12500-CMW710-BOOT-test.bin                                               

  S12500-CMW710-SYSTEM-test.bin

This command will set the main startup software images. Continue? [Y/N]:y

Decompressing file S12500-CMW710-BOOT-test.bin to cfa0:/S12500-CMW710-BOOT-test.bin

..................................................Done.               

Decompressing file S12500-CMW710-SYSTEM-test.bin to cfa0:/S12500-CMW710-SYSTEM

-test.bin...................................................................

................................................................................

......................................Done.

This command will set the main startup software images. Continue? [Y/N]:y

The images that have passed all examinations will be used as the main startup so

ftware images at the next reboot on slot 0.

<Device> boot-loader file boot flash:/s12500-cmw710-boot-test.bin system flash:/s12500-CMW710-SYSTEM-test.bin slot 1 main

This command will set the backup startup software images. Continue? [Y/N]:y

The images that have passed all examinations will be used as the main startup so

ftware images at the next reboot on slot 1.

# Specify the current startup image file as the backup startup image file for both MPUs. This setting ensures that the device can start up if the upgrade file is corrupt or not correct.

<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-old.bin system flash:/s12500-CMW710-SYSTEM-old.bin slot 0 backup

This command will set the backup startup software images. Continue? [Y/N]:y

The images that have passed all examinations will be used as the backup startup so

ftware images at the next reboot on slot 0.

<Device> boot-loader file boot flash:/s12500-cmw710-boot-test.bin system flash:/s12500-CMW710-SYSTEM-old.bin slot 1 main

This command will set the backup startup software images. Continue? [Y/N]:y

The images that have passed all examinations will be used as the main startup so

ftware images at the next reboot on slot 1.

# Reboot the device.

<Device> reboot

Verifying the configuration

1.     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                                  

  Compiled Jul 28 2014 17:32:35

---- More ----

2.     Verify that the software images on the MPUs are the same:

# Display the current software images and startup software images on the active MPU.

<Device> display boot-loader slot 0

Software images on slot 0:

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

# 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

#

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$+CuTbYCehNZtZo5RCXiadpYbXYWa2omt5TUtEh3UPCg3fZjxYCp5WzbuE2GoowVi2YA/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 Figure 6, upgrade software from the BootWare menu. Download software images from a TFTP server.

Figure 6 Network diagram

 

Software version used

This configuration example was created and verified on S12500-CMW710-R7328P02.

Configuration restrictions and guidelines

When you upgrade software, follow these restrictions and guidelines:

·     Make sure the device has sufficient storage space for the upgrade file. If the device does not have sufficient storage space, delete unused files by using the delete /unreserved file-url command.

·     Connect the device to the TFTP server through the management Ethernet interface M-GigabitEthernet 0/0/0.

Configuration procedures

1.     Configure the host:

# 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.

Figure 9 COM1 Properties

 

The user view prompt is displayed if you access the CLI successfully.

Figure 10 User view prompt at the CLI

 

2.     Configure the TFTP server:

# Assign the IP address 192.168.100.14/24 to the TFTP server. (Details not shown.)

# 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

 

3.     Upgrade the device:

a.     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.

# Disable startup software version check for the standby MPU at startup.

<Switch> system-view

[Switch] version check ignore

# Save the configuration.

[Switch] 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 0 Cpu 0:

Save next configuration file successfully.

[Switch] quit

# Reboot the standby MPU.

<Switch> reboot slot 1

RAM test successful.

System is starting...

Press Ctrl+D to access BASIC-BOOTWARE MENU...

Booting Normal Extended BootWare

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

Memory Size           : 8192MB

Memory Speed          : 1066MHz

BootWare Size         : 8MB

Flash Size            : 512MB

cfa0 Size             : 4002MB

NVRAM Size            : 1024KB

BASIC CPLD Version    : 001C

EXTENDED CPLD Version : 001C

PCB Version           : Ver.A

 

 

Board self testing...........................

Board steady testing...                           [ PASS ]

Board SlotNo...                                     [   0  ]

DX246  testing...                                   [ PASS ]

PHY88E1111  testing...                             [ PASS ]

CPLD1 testing...                                    [ PASS ]

CPLD2 testing...                                    [ PASS ]

NS16550 register testing...                       [ PASS ]

The switch's Mac address...                       [00:0F:E2:0E:08:03]

CF Card testing...                                  [ PASS ]

BootWare Validating...

Press Ctrl+B to access EXTENDED-BOOTWARE MENU...

# Press Ctrl+B at prompt to access the EXTEND-BOOTWARE menu.

Password recovery capability is enabled.

Note: The current operating device is cfa0

Enter < Storage Device Operation > to select device.

 

==========================<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 3 in the EXTEND-BOOTWARE menu to access the Ethernet submenu.

==========================<Enter Ethernet SubMenu>==========================

|Note:the operating device is cfa0                                                |

|<1> Download Image Program To SDRAM And Run                                    |

|<2> Update Main Image File                                                         |

|<3> Update Backup Image File                                                      |

|<4> Download Files(*.*)                                                            |

|<5> Modify Ethernet Parameter                                                     |

|<0> Exit To Main Menu                                                               |

|<Ensure The Parameter Be Modified Before Downloading!>                       |

============================================================================

Enter your choice(0-5):

# Enter 5 in the Ethernet submenu to configure the network settings.

Enter your choice(0-5):5

==========================<ETHERNET PARAMETER SET>==========================

|Note:       '.' = Clear field.                                                     |   

|            '-' = Go to previous field.                                           |   

|          Ctrl+D = Quit.                                                             |   

============================================================================

Protocol (FTP or TFTP) :tftp                                                   

Load File Name         :s12500.ipe                                               

                          :                                                       

Target File Name       :s12500.ipe                                              

                          :                                                        

Server IP Address      : 192.168.1.100 192.168.100.14                      

Local IP Address       : 192.168.1.1 192.168.100.66                          

Subnet Mask             :255.255.255.0                                           

Gateway IP Address     : 0.0.0.0

Table 1 Network parameter fields

Field

Description

'.' = Clear field

Press the dot (.), and then press Enter to clear the setting for a field.

'-' = Go to previous field

Press the hyphen (-), and then press Enter to return to the previous field.

Ctrl+D = Quit

Press Ctrl+D to exit the Ethernet parameter settings menu.

Load File Name

Set the name of the file to be downloaded.

Target File Name

Set a file name for saving the file on the device. By default, the target file name is the same as the source file name.

Server IP Address

Set the IP address of the TFTP server.

Local IP Address

Set the IP address of the Ethernet interface that connects to the TFTP server.

Subnet Mask

Set the IP address mask.

Gateway IP Address

Set a gateway IP address if the router is on a different network from the server.

 

# Press Enter in the ETHERNET PARAMETER SET menu to access the Ethernet submenu.

==========================<Enter Ethernet SubMenu>==========================

|Note:the operating device is cfa0                                                 |

|<1> Download Image Program To SDRAM And Run                                     |

|<2> Update Main Image File                                                         |

|<3> Update Backup Image File                                                       |

|<4> Download Files(*.*)                                                             |

|<5> Modify Ethernet Parameter                                                      |

|<0> Exit To Main Menu                                                                |

|<Ensure The Parameter Be Modified Before Downloading!>                        |

============================================================================

Enter your choice(0-5):

 

# Enter 2 in the Ethernet submenu to upgrade the main startup images.

Enter your choice(0-5):2

Loading...................................................................

..........................................................................

..........................................................................

..................................Done.

47979456 bytes downloaded!

Updating File cfa0:/s12500.ipe.............................................

..........................................................................

..........................................................................

...............................................

..Done.

 

==========================<Enter Ethernet SubMenu>==========================

|Note:the operating device is cfa0                                                |

|<1> Download Image Program To SDRAM And Run                                    |

|<2> Update Main Image File                                                         |

|<3> Update Backup Image File                                                      |

|<4> Download Files(*.*)                                                            |

|<5> Modify Ethernet Parameter                                                     |

|<0> Exit To Main Menu                                                               |

|<Ensure The Parameter Be Modified Before Downloading!>                       |

============================================================================

Enter your choice(0-5):

# Enter 0 in the Ethernet submenu to return to the EXTEND-BOOTWARE menu.

Enter your choice(0-5): 0

==========================<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.

Loading the main image files...

Loading file cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin.........................

............................................................................

............................................................................

.........Done.

Loading file cfa0:/S12500-CMW710-BOOT-R7328P02.bin...........................

.......................................Done.

 

Image file cfa0:/S12500-CMW710-BOOT-R7328P02.bin is self-decompressing.......

............................................................................

............................................................................

............................................................................

............................................................................

............................................................................

............................................................................

............................................................................

............................................................................

............................................................................

..................................Done.

System image is starting...

 

 

Line con0 is available.

 

 

Press ENTER to get started.

b.     Upgrade software on the active MPU:

# Use a console cable to connect the console port on the active MPU to the TFTP server. (Details not shown.)

# Reboot the active MPU, and then upgrade the MPU in the same way you upgrade the standby MPU. (Details not shown.)

Verifying the configuration

1.     Verify that the software has been upgraded.

<Switch> display version

H3C Comware Software, Version 7.1.045, Release 7328P02                          

Copyright (c) 2010-2014 Hewlett-Packard Development Company, L.P.              

HP 12504 uptime is 0 weeks, 0 days, 1 hour, 53 minutes                         

Last reboot reason : User reboot                                               

Boot image: cfa0:/s12500-CMW710-BOOT-R7328P02.bin                                

Boot image version: 7.1.045P19, Release 7328P02                                

  Compiled Sep 03 2014 09:10:15                                                

System image: cfa0:/s12500-CMW710-SYSTEM-R7328P02.bin                            

System image version: 7.1.045, Release 7328P02                                 

  Compiled Sep 03 2014 09:10:16            

---- More ----

2.     Verify that the software images on the MPUs are the same:

# Display the current software images and startup software images on the active MPU.

<Switch> display boot-loader slot 0

Software images on slot 0:

Current software images:

  cfa0:/s12500-CMW710-BOOT-R7328P02.bin                                         

  cfa0:/s12500-CMW710-SYSTEM-R7328P02.bin                                        

Main startup software images:

  cfa0:/s12500-CMW710-BOOT-R7328P02.bin                                         

  cfa0:/s12500-CMW710-SYSTEM-R7328P02.bin                                       

Backup startup software images:

None

# Display the current software images and startup software images on the standby MPU.

<Switch> display boot-loader slot 1

Software images on slot 1:

Current software images:

  cfa0:/s12500-CMW710-BOOT-R7328P02.bin                                          

  cfa0:/s12500-CMW710-SYSTEM-R7328P02.bin                                       

Main startup software images:

  cfa0:/s12500-CMW710-BOOT-R7328P02.bin                                         

  cfa0:/s12500-CMW710-SYSTEM-R7328P02.bin                                        

Backup startup software images:

  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

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网