- Table of Contents
-
- H3C S6300 Configuration Examples-6W100
- 01-Login Management Configuration Examples
- 02-RBAC Configuration Examples
- 03-Software Upgrade Configuration Examples
- 04-Software Patching Examples
- 05-ISSU Configuration Examples
- 06-Ethernet Link Aggregation Configuration Examples
- 07-Port Isolation Configuration Examples
- 08-Spanning Tree Configuration Examples
- 09-VLAN Configuration Examples
- 10-VLAN Tagging Configuration Examples
- 11-DHCP Snooping Configuration Examples
- 12-Cross-Subnet Dynamic IP Address Allocation Configuration Examples
- 13-IGMP Snooping Configuration Examples
- 14-MLD Snooping Configuration Examples
- 15-IPv6 Multicast VLAN Configuration Examples
- 16-ACL Configuration Examples
- 17-Control Plane-Based QoS Policy Configuration Examples
- 18-Traffic Policing Configuration Examples
- 19-GTS and Rate Limiting Configuration Examples
- 20-Priority and Queue Scheduling Configuration Examples
- 21-Traffic Filtering Configuration Examples
- 22-AAA Configuration Examples
- 23-Port Security Configuration Examples
- 24-Portal Configuration Examples
- 25-SSH Configuration Examples
- 26-IP Source Guard Configuration Examples
- 27-Ethernet OAM Configuration Examples
- 28-CFD Configuration Examples
- 29-DLDP Configuration Examples
- 30-FCoE Configuration Examples
- 31-NTP Configuration Examples
- 32-PTP Configuration Examples
- 33-SNMP Configuration Examples
- 34-NQA Configuration Examples
- 35-Mirroring Configuration Examples
- 36-sFlow Configuration Examples
- 37-OpenFlow Configuration Examples
- Related Documents
-
Title | Size | Download |
---|---|---|
03-Software Upgrade Configuration Examples | 121.44 KB |
|
H3C S6300 Switch Series |
Software Upgrade Configuration Examples |
|
Copyright © 2020 New H3C Technologies Co., Ltd. All rights reserved.
No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.
Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.
The information in this document is subject to change without notice.
Contents
Software upgrade configuration examples
Upgrading software from the CLI
Example: Using the switch as a TFTP client to upgrade software
Example: Using the switch as an FTP client to upgrade software
Example: Using the switch as an FTP server to upgrade software
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 switch 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 switch.
Software version used
This configuration example was created and verified on S6300-CMW710-R2310.
Configuration restrictions and guidelines
When you upgrade software, follow these restrictions and guidelines:
· Make sure the switch has sufficient storage space for the upgrade file. If the switch 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.
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 switch:
# Assign an IP address to M-GigabitEthernet 0/0/0. Make sure the switch can reach the TFTP server.
<Switch> system-view
[Switch] interface m-gigabitethernet 0/0/0
[Switch-M-GigabitEthernet0/0/0] ip address 192.168.100.66 255.255.255.0
[Switch-M-GigabitEthernet0/0/0] quit
[Switch] quit
# Verify that the switch can ping the TFTP server.
<Switch> ping 192.168.100.14
Ping 192.168.100.14 (192.168.100.14): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.100.14: icmp_seq=0 ttl=64 time=10.701 ms
56 bytes from 192.168.100.14: icmp_seq=1 ttl=64 time=2.678 ms
56 bytes from 192.168.100.14: icmp_seq=2 ttl=64 time=2.282 ms
56 bytes from 192.168.100.14: icmp_seq=3 ttl=64 time=1.617 ms
56 bytes from 192.168.100.14: icmp_seq=4 ttl=64 time=1.701 ms
--- Ping statistics for 192.168.100.14 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 1.617/3.796/10.701/3.474 ms
# 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.
# Use TFTP to download the upgrade file switch.ipe from the TFTP server to the root directory of the storage medium on the switch.
<Switch> tftp 192.168.100.14 get switch.ipe
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 58.7M 100 58.7M 0 0 1193k 0 0:00:50 0:00:50 --:--:-- 1127k
# Back up switch.ipe as switch-backup.ipe, and save the backup file in the same directory as switch.ipe.
<Sysname> copy switch.ipe switch-backup.ipe
# Specify switch.ipe as the main startup image file.
<Switch> boot-loader file flash:/switch.ipe slot 1 main
Verifying the IPE file and the images.....Done.
Images in IPE:
switch-cmw710-boot-r2310.bin
switch-cmw710-system-r2310.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to target slot.
Decompressing file switch-cmw710-boot-r2310.bin to flash:/switch-cmw710-boot-r2310.bin.........Done.
Decompressing file switch-cmw710-system-r2310.bin to flash:/switch-cmw710-system-r2310.bin.................................Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 1.
# Specify switchbackup.ipe as the backup startup image file.
<Switch> boot-loader file flash:/switch-backup.ipe 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 software images at the next reboot on slot 1.
# Reboot the switch.
<Switch> reboot
Verifying the configuration
# Verify that the software has been upgraded.
<Switch> display version
H3C Comware Software, Version 7.1. 045, Release 2310
Copyright (c) 2010-2014 Hewlett-Packard Development Company, L.P.
H3C Switch uptime is 0 weeks, 0 days, 0 hours, 19 minutes
Last reboot reason : User reboot
Boot image: flash:/switch-cmw710-boot-r2310.bin
Boot image version: 7.1.045P16, Release 2310
Compiled Jun 18 2014 17:52:09
System image: flash:/switch-cmw710-system-r2310.bin
System image version: 7.1.045, Release 2310
Compiled Jun 18 2014 17:52:09
---- More ----
# Display the current software images and startup software images.
<Switch> display boot-loader
Software images on slot 1:
Current software images:
flash:/switch-cmw710-boot-r2310.bin
flash:/switch-cmw710-system-r2310.bin
Main startup software images:
flash:/switch-cmw710-boot-r2310.bin
flash:/switch-cmw710-system-r2310.bin
Backup startup software images:
flash:/switch-cmw710-boot-r2310.bin
flash:/switch-cmw710-system-r2310.bin
Configuration files
#
interface M-GigabitEthernet0/0/0
ip address 192.168.100.66 255.255.255.0
#
Example: Using the switch 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 switch.
Software version used
This configuration example was created and verified on S6300-CMW710-R2310.
Configuration restrictions and guidelines
When you upgrade software, follow these restrictions and guidelines:
· Make sure the switch has sufficient storage space for the upgrade file. If the switch 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.
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. (Details not shown.)
# Set the username to 123456 and the password to 123456 for the user account.
Figure 4 Configuring the FTP server
2. Upgrade the switch:
# Assign an IP address to M-GigabitEthernet 0/0/0. Make sure the switch can reach the FTP server.
<Switch> system-view
[Switch] interface m-gigabitethernet 0/0/0
[Switch-M-GigabitEthernet0/0/0] ip address 192.168.100.66 255.255.255.0
[Switch-M-GigabitEthernet0/0/0] quit
[Switch] quit
# Verify that the switch can ping the FTP server.
<Switch> ping 192.168.100.14
Ping 192.168.100.14 (192.168.100.14): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.100.14: icmp_seq=0 ttl=64 time=10.701 ms
56 bytes from 192.168.100.14: icmp_seq=1 ttl=64 time=2.678 ms
56 bytes from 192.168.100.14: icmp_seq=2 ttl=64 time=2.282 ms
56 bytes from 192.168.100.14: icmp_seq=3 ttl=64 time=1.617 ms
56 bytes from 192.168.100.14: icmp_seq=4 ttl=64 time=1.701 ms
--- Ping statistics for 192.168.100.14 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 1.617/3.796/10.701/3.474 ms
# 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...
Configuration is saved to mainboard device successfully.
# Use the username 123456 and the password 123456 to log in to the FTP server.
<Switch> 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 switch.ipe from the FTP server to the root directory of the storage medium on the switch.
ftp> get switch.ipe
227 Entering passive mode (192,168,100,14,8,86)
125 Using existing data connection
226 Closing data connection; File transfer successful.
50445056 bytes received in 53.6 seconds (1.25 Mbyte/s)
ftp> quit
# Back up switch.ipe as switch-backup.ipe, and save the backup file in the same directory as switch.ipe.
<Sysname> copy switch.ipe switch-backup.ipe
# Specify switch.ipe as the main startup image file.
<Switch> boot-loader file flash:/switch.ipe slot 1 main
Verifying the IPE file and the images.....Done.
Images in IPE:
switch-cmw710-boot-r2310.bin
switch-cmw710-system-r2310.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to target slot.
Decompressing file switch-cmw710-boot-r2310.bin to flash:/switch-cmw710-boot-r2310.bin.........Done.
Decompressing file switch-cmw710-system-r2310.bin to flash:/switch-cmw710-system-r2310.bin.................................Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on on slot 1.
# Specify switch-backup.ipe as the backup startup image file.
<Switch> boot-loader file flash:/switch-backup.ipe 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 software images at the next reboot on slot 1.
# Reboot the switch.
<Switch> reboot
Verifying the configuration
# Verify that the software has been upgraded.
<Switch> display version
H3C Comware Software, Version 7.1.045, Release 2310
Copyright (c) 2010-2014 Hewlett-Packard Development Company, L.P.
H3C Switch uptime is 0 weeks, 0 days, 0 hours, 19 minutes
Last reboot reason : User reboot
Boot image: flash:/switch-cmw710-boot-r2310.bin
Boot image version: 7.1.045P16, Release 2310
Compiled Jun 18 2014 17:52:09
System image: flash:/switch-cmw710-system-r2310.bin
System image version: 7.1.045, Release 2310
Compiled Jun 18 2014 17:52:09
---- More ----
# Display the current software images and startup software images.
<Switch> display boot-loader
Software images on slot 1:
Current software images:
flash:/switch-cmw710-boot-r2310.bin
flash:/switch-cmw710-system-r2310.bin
Main startup software images:
flash:/switch-cmw710-boot-r2310.bin
flash:/switch-cmw710-system-r2310.bin
Backup startup software images:
flash:/switch-cmw710-boot-r2310.bin
flash:/switch-cmw710-system-r2310.bin
Configuration files
#
interface M-GigabitEthernet0/0/0
ip address 192.168.100.66 255.255.255.0
#
Example: Using the switch as an FTP server to upgrade software
Network requirements
As shown in Figure 5:
· Enable the FTP server on the switch.
· Use FTP to upload a software upgrade file from an FTP client to upgrade the switch.
Software version used
This configuration example was created and verified on S6300-CMW710-R2310.
Requirements analysis
If you use the switch as an FTP server, you must create a local user account on the switch to provide FTP service.
Configuration restrictions and guidelines
When you upgrade software, follow these restrictions and guidelines:
· Make sure the switch has sufficient storage space for the upgrade file. If the switch 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.
· 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.
<Switch> system-view
[Switch] interface m-gigabitethernet 0/0/0
[Switch-M-GigabitEthernet0/0/0] ip address 192.168.100.66 255.255.255.0
[Switch-M-GigabitEthernet0/0/0] quit
# Add a local user account. Set the username to abc and the password to 123456.
[Switch] local-user abc
[Switch-luser-abc] password simple 123456
# Assign the network-admin user role to the user account.
[Switch-luser-abc] authorization-attribute user-role network-admin
# Remove the default network-operator user role.
[Switch-luser-abc] undo authorization-attribute user-role network-operator
# Assign FTP service to the user account.
[Switch-luser-abc] service-type ftp
[Switch-luser-abc] quit
# Enable the FTP server.
[Switch] ftp server enable
[Switch] quit
# 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.
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 switch. (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 switch.ipe to the root directory of the storage medium on the FTP server.
ftp> put switch.ipe
200 PORT command successful
150 Connecting to port 2903
226 File successfully transferred
ftp: 50445056 sent in 1.05Seconds 67282.77Kbytes/sec.
# Verify that the image file is saved on the FTP server.
ftp> ls switch.ipe
200 PORT command successful
150 Connecting to port 3391
switch.ipe
226 1 matches total
ftp: 24 bytes received in 0.00Seconds 24000.00Kbytes/sec.
# Close the FTP connection.
ftp> bye
3. Upgrade the switch:
# Back up switch.ipe as switch-backup.ipe, and save the backup file in the same directory as switch.ipe.
<Sysname> copy switch.ipe switch-backup.ipe
# Specify switch.ipe as the main startup image file.
<Switch> boot-loader file flash:/switch.ipe slot 1 main
Verifying the IPE file and the images.....Done.
Images in IPE:
switch-cmw710-boot-r2310.bin
switch-cmw710-system-r2310.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to the device.
Decompressing file switch-cmw710-boot-r2310.bin to flash:/switch-cmw710-boot-r2310.bin.........Done.
Decompressing file switch-cmw710-system-r2310.bin to flash:/switch-cmw710-system-r2310.bin.................................Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 1.
# Specify switch-backup.ipe as the backup startup image file.
<Switch> boot-loader file flash:/switch-backup.ipe 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 software images at the next reboot.
# Reboot the switch.
<Switch> reboot
Verifying the configuration
# Verify that the software has been upgraded.
<Switch> display version
H3C Comware Software, Version 7.1.045, Release 2310
Copyright (c) 2010-2014 Hewlett-Packard Development Company, L.P.
H3C Switch uptime is 0 weeks, 0 days, 0 hours, 19 minutes
Last reboot reason : User reboot
Boot image: flash:/switch-cmw710-boot-r2310.bin
Boot image version: 7.1.045P16, Release 2310
Compiled Jun 18 2014 17:52:09
System image: flash:/switch-cmw710-system-r2310.bin
System image version: 7.1.045, Release 2310
Compiled Jun 18 2014 17:52:09
---- More ----
# Display the current software images and startup software images.
<Switch> display boot-loader
Software images on slot 1:
Current software images:
flash:/switch-cmw710-boot-r2310.bin
flash:/switch-cmw710-system-r2310.bin
Main startup software images:
flash:/switch-cmw710-boot-r2310.bin
flash:/switch-cmw710-system-r2310.bin
Backup startup software images:
flash:/switch-cmw710-boot-r2310.bin
flash:/switch-cmw710-system-r2310.bin
#
Configuration files
#
interface M-GigabitEthernet0/0/0
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
#
Related documentation
· H3C S6300 Switch Series Fundamentals Configuration Guide-Release 23xx
· H3C S6300 Switch Series Fundamentals Command Reference-Release 23xx