02-H3C_S12500_软件升级典型配置举例
本章节下载: 02-H3C_S12500_软件升级典型配置举例 (328.23 KB)
目 录
本文档介绍软件升级的典型配置举例。
本文档不严格与具体软、硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解软件升级和FTP/TFTP的特性。
如图1所示,Device和文件服务器通过交换机相连,Device作为TFTP客户端,文件服务器作为TFTP服务器。现要求:通过TFTP方式将存储在文件服务器上的文件s12500.ipe下载到TFTP客户端,为Device升级软件版本。
· 为了使设备的主用主控板和备用主控板都能够升级版本,在使用TFTP方式将软件版本get到主用主控板后,需要将主用主控板和备用主控板都进行软件版本升级。
· 为了使设备在重启后使用新版本软件,需要指定下次启动时所用的主用启动文件为升级后的软件版本。
本举例是在S12500-CMW710-R7328P02版本上进行配置和验证的。
· 当设备剩余的存储空间不够,请使用delete /unreserved file-url命令删除部分暂时不用的文件后再执行升级软件操作。
· 软件升级时需要重启设备,建议使用save命令保存设备的当前配置。
# 配置文件服务器的IP地址为192.168.100.14/24,使得与Device路由可达,具体配置方法略。
# 启动文件服务器上的TFTP功能(以3CDaemon软件为例),设置TFTP服务器下载路径等参数,并开启服务。
图2 配置TFTP服务器
# 配置Device接口IP地址。
<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
# 在Device ping 文件服务器地址,能够ping通。
<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命令保存路由器当前配置信息。
<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.
# 执行display device命令查看当前主控板的主备分配情况,Primary字段显示为Master的主控板为设备当前的主用主控板,其对应的槽位号为Slot 0;显示为Standby的主控板为设备当前的备用主控板,其对应的槽位号为Slot 1。
<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
# 使用TFTP方式将文件服务器上的s12500.ipe文件下载到Device的主用主控板上,以缺省文件名s12500.ipe保存。
<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
# 指定Device的主用主控板下次启动时所用的主用启动文件。
<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的主用主控板下次启动时所用的备用启动文件。
<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-old.bin system flash:/s1250
0-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的备用主控板下次启动时所用的主用启动文件。
<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-test.bin system flash:/s1250
0-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.
# 指定Device的备用主控板下次启动时所用的备用启动文件。
<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-old.bin system flash:/s1250
0-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.
# 重启设备。
<Device> reboot
# 设备重启后,使用display version命令查看设备版本信息。
<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:/12500-cmw710-system-test.bin
System image version: 7.1.045, Release 7328P02
Compiled Jul 28 2014 17:32:35
……略……
# 显示设备主用主控板本次启动和下次启动所采用的启动软件包的名称。
<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
# 显示设备备用主控板本次启动和下次启动所采用的启动软件包的名称。
<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
#
interface M-GigabitEthernet0/0/0
port link-mode route
ip address 192.168.100.66 255.255.255.0
#
如图3所示,Device和文件服务器通过交换机相连,Device作为FTP客户端,文件服务器作为FTP服务器。现要求:通过FTP方式将存储在文件服务器上的文件s12500.ipe下载到FTP客户端,为Device升级软件版本。
· 为了使设备的主用主控板和备用主控板都能够升级版本,在使用FTP方式将软件版本get到主用主控板后,需要将主用主控板和备用主控板都进行软件版本升级。
· 为了使路由器在重启后使用新版本软件,需要指定下次启动时所用的主用启动文件为升级后的软件版本。
本举例是在S12500-CMW710-R7328P02版本上进行配置和验证的。
· 当设备剩余的存储空间不够,请使用delete /unreserved file-url命令删除部分暂时不用的文件后再执行升级软件操作。
· 软件升级时需要重启设备,建议使用save命令保存设备的当前配置。
# 配置文件服务器的IP地址为192.168.100.14/24,使得与Device路由可达,具体配置方法略。
# 启动文件服务器上的FTP功能(以3CDaemon软件为例),设置FTP服务器下载路径等参数,并开启服务。
图4 配置FTP服务器
# 配置Device接口IP地址。
<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
# 在Device ping 文件服务器地址,能够ping通。
<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命令保存路由器当前配置信息。
<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.
# 执行display device命令查看当前主控板的主备分配情况,Primary字段显示为Master的主控板为设备当前的主用主控板,其对应的槽位号为Slot 0;显示为Standby的主控板为设备当前的备用主控板,其对应的槽位号为Slot 1。
<Device> display device
Slot No. Brd Type Brd Status Software Version
0 LST2MRPNC1 Master 12500-CMW710-R7328P01
1 LST2MRPNC1 Standby 12500-CMW710-R7328P01
2 NONE Absent NONE
3 LST1GT48LEC1 Normal 12500-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 12500-CMW710-R7328P01
15 NONE Absent NONE
16 NONE Absent NONE
17 NONE Absent NONE
18 NONE Absent NONE
# 以用户名123456、密码123456登录FTP服务器。
<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.
# 将文件s12500.ipe.ipe从FTP服务器下载到Device的主用主控板。
ftp> get s12500.ipe.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
# 指定Device的主用主控板下次启动时所用的主用启动文件。
<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的主用主控板下次启动时所用的备用启动文件。
<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的备用主控板下次启动时所用的主用启动文件。
<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-test.bin system flash:/s1250
0-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.
# 指定Device的备用主控板下次启动时所用的备用启动文件。
<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-old.bin system flash:/s1250
0-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.
# 重启设备。
<Device> reboot
# 设备重启后,使用display version命令查看设备版本信息。
<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:/12500-cmw710-boot-test.bin
Boot image version: 7.1.045, Release 7328P02
Compiled Jul 28 2014 17:32:35
System image: flash:/12500-cmw710-system-test.bin
System image version: 7.1.045, Release 7328P02
Compiled Jul 28 2014 17:32:35
……略……
# 显示设备主用主控板本次启动和下次启动所采用的启动软件包的名称。
<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
# 显示设备备用主控板本次启动和下次启动所采用的启动软件包的名称。
<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
#
interface M-GigabitEthernet0/0/0
port link-mode route
ip address 192.168.100.66 255.255.255.0
#
如图5所示,Device和文件服务器通过交换机相连,Device作为FTP服务器,文件服务器作为FTP客户端。
现要求:
· 通过FTP方式为Device升级软件版本,将存储在FTP客户端上的文件s12500.ipe上传到FTP服务器。
· 配置FTP客户端登录FTP服务器的用户名为abc,密码为123456。
· 为了使设备的主用主控板和备用主控板都能够升级版本,在使用FTP方式将软件版本put到主用主控板后,主用主控板和备用主控板都进行软件版本升级。
· 为了使路由器在重启后使用新软件版本,需要指定下次启动时所用的主用启动文件为升级后的软件版本。
本举例是在S12500-CMW710-R7328P02版本上进行配置和验证的。
· 当设备剩余的内存空间不够,请使用delete /unreserved file-url命令删除部分暂时不用的文件后再执行升级软件操作。
· 确保主机和Device的FTP用户名、密码及文件名等参数保持一致。
· 在Device和主机之间进行FTP传输,需要选择binary方式传输文件。
# 配置Device接口IP地址。
<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上添加一个FTP用户abc,并设置其认证密码为123456。
[Device] local-user abc
[Device-luser-abc] password simple 123456
# 配置用户角色为network-admin。
[Device-luser-abc] authorization-attribute user-role network-admin
# 为保证FTP用户仅使用授权的用户角色network-admin,删除缺省用户角色network-operator。
[Device-luser-abc] undo authorization-attribute user-role network-operator
# 配置服务类型为FTP。
[Device-luser-abc] service-type ftp
[Device-luser-abc] quit
# 启动Device的FTP服务功能。
[Device] ftp server enable
[Device] quit
# 执行save命令保存路由器当前配置信息。
<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.
# 配置主机文件服务器的IP地址为192.168.100.14/24,使得到Device路由可达,具体配置方法略。
# 从FTP客户端登录FTP服务器,本例以Windows命令提示符界面为例。
C:\Documents and Settings\Administrator> ftp 192.168.100.66
Connected to 192.168.100.66.
220 FTP service ready.
# 以用户名abc、密码123456登录FTP服务器。
User (192.168.100.66:(none)): abc
331 Password required for abc.
Password:
230 User logged in.
# 使用lcd命令,将FTP客户端本地的工作路径切换到软件版本所在的目录下。
ftp> lcd E:\
Local directory now E:\
# 将传输模式设置为binary方式。
ftp> binary
200 TYPE is now 8-bit binary
# 将本地msr56.ipe文件上传到FTP服务器上,缺省以文件名msr56.ipe保存。
ftp> put msr56.ipe
200 PORT command successful
150 Connecting to port 2903
226 File successfully transferred
ftp: 发送 70445056 字节,用时 1.05Seconds 67282.77Kbytes/sec.
# 使用ls命令查看FTP服务器上是否有文件。
ftp> ls s12500.ipe
200 PORT command successful
150 Connecting to port 3391
s12500.ipe
226 1 matches total
ftp: 收到 24 字节,用时 0.00Seconds 24000.00Kbytes/sec.
# 终止与FTP服务器的连接,并退回到用户视图。
ftp> bye
# 执行display device命令查看当前主控板的主备分配情况,Primary字段显示为Master的主控板为设备当前的主用主控板,其对应的槽位号为Slot 0;显示为Standby的主控板为设备当前的备用主控板,其对应的槽位号为Slot 1。
<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
# 指定Device的主用主控板下次启动时所用的主用启动文件。
<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的主用主控板下次启动时所用的备用启动文件。
<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-old.bin system flash:/s1250
0-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的备用主控板下次启动时所用的主用启动文件。
<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-test.bin system flash:/s1250
0-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.
# 指定Device的备用主控板下次启动时所用的备用启动文件。
<Device> boot-loader file boot flash:/s12500-CMW710-BOOT-test.bin system flash:/s1250
0-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.
# 重启设备。
<Device> reboot
# 设备重启后,使用display version命令查看设备版本信息。
<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:/12500-cmw710-boot-test.bin
Boot image version: 7.1.045, Release 7328P02
Compiled Jul 28 2014 17:32:35
System image: flash:/12500-cmw710-system-test.bin
System image version: 7.1.045, Release 7328P02
Compiled Jul 28 2014 17:32:35
……略……
# 显示设备主用主控板本次启动和下次启动所采用的启动软件包的名称。
<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
# 显示设备备用主控板本次启动和下次启动所采用的启动软件包的名称。
<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
#
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
#
如图6所示,文件服务器与Switch的管理以太网接口M-GigabitEthernet0/0/0相连,Host通过串口线连接Switch的Console口。现由于设备问题,不能正常启动Switch。
现要求:使用BootWare菜单升级Switch的软件版本。
本举例是在S12500-CMW710-R7328P02版本上进行配置和验证的。
· 确保在文件服务器上开启TFTP服务器功能。
· 当设备剩余的存储空间不够,请使用delete /unreserved file-url命令删除部分暂时不用的文件后,再执行升级软件操作。
· 将交换机的升级启动文件拷贝到文件服务器上,并正确设置TFTP服务器的访问路径。
· 在BootWare方式升级软件版本时,只能通过管理以太网接口M-GigabitEthernet 0/0/0连接到TFTP服务器。
# 使用串口线,从主机连至Switch备用主控板的Console口。
# 打开超级终端,创建一个新建连接Switch。
图7 新建连接
# 选择连接时使用的“COM1”,单击<确定>。
图8 连接到对话框
# 选择“还原为默认值”,单击<确定>。
图9 配置属性值
# 显示登录成功。
图10 登录设备
# 配置文件服务器的IP地址为192.168.100.14/24,具体配置步骤略。
# 启动文件服务器的TFTP服务器(以3CDaemon软件为例),设置TFTP服务器下载路径等参数,并开启服务。
图11 配置TFTP服务器
(1) 升级备用主控板
# 使用直通线从TFTP服务器连接到备用主控板的管理以太网接口M-GigabitEthernet 0/0/0上(已使用串口线从主机连接至Switch备用主控板的Console口)。
# 忽略对备用主控板进行启动软件包版本一致性检查(即不检查备用主控板的版本是否与主用主控板的启动软件包版本一致)。
<Switch> system-view
[Switch] version check ignore
# 将设备的当前配置保存到指定文件。
[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
# 重启设备的备用主控板。
<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 to enter extended boot menu...”时,键入<Ctrl+B>,系统提示:
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):
# 在BootWare菜单下键入<3>,进入以太网口子菜单,系统显示如下:
==========================<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):
# 在以太网口子菜单下键入<5>就可以进入以太网口配置菜单,并按照如下方式分别配置Load File Name、Target File Name、Server IP Address、Local IP Address、Subnet Mask、Gateway IP Address:
· Load File Name:待升级Switch的启动软件包的名称,该文件位于TFTP服务器的工作目录下。
· Target File Name:启动软件包上传至Switch的存储介质后的文件名。
· Server IP Address:TFTP服务器的IP地址。
· Local IP Address:Switch连接文件服务器的端口IP地址。
· Subnet Mask:子网掩码。
· Gateway IP Address:网关地址,当TFTP服务器与待升级的Switch不在同一网段时,必须配置该地址。
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
:
· 输入TFTP服务器地址:
Server IP Address : 192.168.1.100 192.168.100.14
· 输入Switch管理IP地址(只需要和TFTP服务器路由可达,这里以192.168.100.66为例):
Local IP Address : 192.168.1.1 192.168.100.66
Subnet Mask : 255.255.255.0
Gateway IP Address : 0.0.0.0
# 按下Enter键,进入如下界面:
==========================<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):
# 在以太网口配置子菜单下,键入<2>为升级主启动文件:
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):
# 键入<0>,返回BootWare主菜单:
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):
# 键入<1>,进入引导系统:
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.
至此,设备的BootWare升级完成。
(2) 升级主用主控板
从TFTP服务器使用串口线连接至Switch主用主控板的Console口,使用直通线连接到主用主控板的管理以太网接口上,并使用相同的方式升级主用主控板,此处不再说明。
# 设备重启后,使用display version命令查看设备版本信息。
<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
……略……
# 显示设备主用主控板本次启动和下次启动所采用的启动软件包的名称。
<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:
NoneSoftware images on slot 0:
# 显示设备备用主控板本次启动和下次启动所采用的启动软件包的名称。
<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
无
· H3C S12500系列路由交换机 基础配置指导-Release 7328
· H3C S12500系列路由交换机 基础配置命令参考-Release 7328
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!