本文档先容软件升级的典型建树例如av 女同。
2 建树前提本文档不严格与具体软、硬件版块对应,淌若使用历程中与居品推行情况有各别,请参考相干居品手册,或以建设推行情况为准。
本文档中的建树均是在实验室环境下进行的建树和考据,建树前建设的悉数参数均接受出厂时的缺省建树。淌若您如故对建设进行了建树,为了保证建树效能,请阐述现存建树和以下例如中的建树不打破。
本文档假定您已了解软件升级和FTP/TFTP的特色。
3 建设看成TFTP client升级版块建树例如 3.1 组网需求如图1所示,Switch和文献劳动器通过交换机衔接,Switch看成TFTP客户端,文献劳动器看成TFTP劳动器。现条件:通过TFTP神气将存储在文献劳动器上的文献switch.ipe下载到TFTP客户端,为Switch升级软件版块。
图1 建树组网图
3.2 建树念念路
为了使交换机在重启后使用新版块软件,需要指定下次开始时所用的主用开始文献为升级后的软件版块。
3.3 使用版块本例如是在S5130EI_E-CMW710-R3106版块上进行建树和考据的。
3.4 建树堤防事项· 当建设剩余的存储空间不够,请使用delete /unreserved file-url大呼删除部分暂时无谓的文献后再引申升级软件操作。
· 软件升级时需要重启建设,提议使用save大呼保存建设确刻下建树。
3.5 建树法子 3.5.1 文献劳动器的建树# 建树文献劳动器的IP地址为192.168.100.14/24,使得与Switch路由可达,具体建树设施略。
# 开始文献劳动器上的TFTP劳动器功能(以3CDaemon软件为例),设立TFTP劳动器下载旅途等参数,并开启劳动。
图2 建树TFTP劳动器
3.5.2 Switch的建树
# 建树Switch处理口的IP地址。
<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
# 在Switch 上ping TFTP劳动器地址,卤莽ping通。
<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大呼保存交换机刻下建树信息。
<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..
# 使用TFTP神气将文献劳动器上的软件版块switch.ipe文献下载到Switch上,以缺省文献名switch.ipe保存。
<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
# 将switch.ipe备份为switch-backup.ipe。
<Sysname> copy switch.ipe switch-backup.ipe
# 指定Switch下次开始时所用的主用开始文献为switch.ipe。
<Switch> boot-loader file flash:/switch.ipe slot 1 main
Verifying the IPE file and the images.....Done.
Images in IPE:
switch-cmw710-boot-r3106.bin
switch-cmw710-system-r3106.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to target slot.
Decompressing file switch-cmw710-boot-r3106.bin to flash:/switch-cmw710-boot-r3106.bin.........Done.
Decompressing file switch-cmw710-system-r3106.bin to flash:/switch-cmw710-system-r3106.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.
# 指定Switch下次开始时所用的备用开始文献为switch-backup.ipe。
<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.
# 重启建设。
<Switch> reboot
3.6 考据建树# 建设重启后,使用display version大呼检察建设版块信息。
<Switch> display version
H3C Comware Software, Version 7.1. 045, Release 3106
Copyright (c) 2004-2017 New H3C Technologies Co., Ltd. All rights reserved.
H3C Switch uptime is 0 weeks, 0 days, 0 hours, 19 minutes
Last reboot reason : User reboot
Boot image: flash:/switch-cmw710-boot-r3106.bin
Boot image version: 7.1.045P16, Release 3106
Compiled Jun 18 2014 17:52:09
在线psSystem image: flash:/switch-cmw710-system-r3106.bin
System image version: 7.1.045, Release 3106
Compiled Jun 18 2014 17:52:09
……略……
# 显露本次开始和下次开始所接受的开始软件包的称呼。
<Switch> display boot-loader
Software images on slot 1:
Current software images:
flash:/switch-cmw710-boot-r3106.bin
flash:/switch-cmw710-system-r3106.bin
Main startup software images:
flash:/switch-cmw710-boot-r3106.bin
flash:/switch-cmw710-system-r3106.bin
Backup startup software images:
flash:/switch-cmw710-boot-r3106.bin
flash:/switch-cmw710-system-r3106.bin
3.7 建树文献#
interface M-GigabitEthernet0/0/0
ip address 192.168.100.66 255.255.255.0
#
4 建设看成FTP client升级版块建树例如 4.1 组网需求如图3所示,Switch和文献劳动器通过交换机衔接,Switch看成FTP客户端,文献劳动器看成FTP劳动器。现条件:
· 通过FTP神气为Switch升级软件版块,将存储在文献劳动器上的文献switch.ipe下载到FTP客户端。
· 建树FTP客户端登录FTP劳动器的用户名为123456,密码为123456。
图3 建树组网图
4.2 建树念念路
为了使交换机在重启后使用新软件版块,需要指定下次开始时所用的主用开始文献为升级后的软件版块。
4.3 使用版块本例如是在S5130EI_E-CMW710-R3106版块上进行建树和考据的。
4.4 建树堤防事项· 当建设剩余的内存空间不够,请使用delete /unreserved file-url大呼删除部分暂时无谓的文献后再引申升级软件操作。
· 确保主机和Switch的FTP用户名、密码及文献名等参数保抓一致。
4.5 建树法子 4.5.1 文献劳动器的建树# 建树文献劳动器的IP地址为192.168.100.14/24,使得与Switch路由可达,具体建树设施略。
# 开始文献劳动器上的FTP功能(以3CDaemon软件为例),设立FTP劳动器下载旅途、FTP用户名和密码,并开启FTP劳动。
图4 建树FTP劳动器
4.5.2 Switch的建树
# 建树Switch接口IP地址。
<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
# 在Switch上ping文献劳动器地址,卤莽ping通。
<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大呼保存交换机刻下建树信息。
<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.
# 以用户名123456、密码123456登录FTP劳动器。
<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.
# 将文献switch.ipe从FTP劳动器下载到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
# 将switch.ipe备份为switch-backup.ipe。
<Sysname> copy switch.ipe switch-backup.ipe
# 指定Switch下次开始时所用的主用开始文献为switch.ipe。
<Switch> boot-loader file flash:/switch.ipe slot 1 main
Verifying the IPE file and the images.....Done.
Images in IPE:
switch-cmw710-boot-r3106.bin
switch-cmw710-system-r3106.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to target slot.
Decompressing file switch-cmw710-boot-r3106.bin to flash:/switch-cmw710-boot-r3106.bin.........Done.
Decompressing file switch-cmw710-system-r3106.bin to flash:/switch-cmw710-system-r3106.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.
# 指定Switch下次开始时所用的备用开始文献为switch-backup.ipe。
<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.
# 重启建设。
<Switch> reboot
4.6 考据建树# 建设重启后,使用display version大呼检察建设版块信息。
<Switch> display version
H3C Comware Software, Version 7.1.045, Release 3106
Copyright (c) 2004-2017 New H3C Technologies Co., Ltd. All rights reserved.
H3C Switch uptime is 0 weeks, 0 days, 0 hours, 19 minutes
Last reboot reason : User reboot
Boot image: flash:/switch-cmw710-boot-r3106.bin
Boot image version: 7.1.045P16, Release 3106
Compiled Jun 18 2014 17:52:09
System image: flash:/switch-cmw710-system-r3106.bin
System image version: 7.1.045, Release 3106
Compiled Jun 18 2014 17:52:09
……略……
# 显露本次开始和下次开始所接受的开始软件包的称呼。
<Switch> display boot-loader
Software images on slot 1:
Current software images:
flash:/switch-cmw710-boot-r3106.bin
flash:/switch-cmw710-system-r3106.bin
Main startup software images:
flash:/switch-cmw710-boot-r3106.bin
flash:/switch-cmw710-system-r3106.bin
Backup startup software images:
flash:/switch-cmw710-boot-r3106.bin
flash:/switch-cmw710-system-r3106.bin
4.7 建树文献#
interface M-GigabitEthernet0/0/0
ip address 192.168.100.66 255.255.255.0
#
5 建设看成FTP server升级版块建树例如 5.1 组网需求如图5所示,Switch和文献劳动器通过交换机衔接,Switch看成FTP劳动器,文献劳动器看成FTP客户端。
现条件:
· 通过FTP神气为Switch升级软件版块,将存储在FTP客户端上的文献switch.ipe上传到FTP劳动器。
· 建树FTP客户端登录FTP劳动器的用户名为abc,密码为123456。
图5 建树组网图
5.2 建树念念路
为了使交换机在重启后使用新软件版块,需要指定下次开始时所用的主用开始文献为升级后的软件版块。
5.3 使用版块本例如是在S5130EI_E-CMW710-R3106版块上进行建树和考据的。
5.4 建树堤防事项· 当建设剩余的内存空间不够,请使用delete /unreserved file-url大呼删除部分暂时无谓的文献后再引申升级软件操作。
· 确保主机和Switch的FTP用户名、密码及文献名等参数保抓一致。
· 在Switch和主机之间进行FTP传输,需要采取binary神气传输文献。
5.5 建树法子 5.5.1 Switch上建树FTP劳动器# 建树Switch接口IP地址。
<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上添加一个FTP用户abc,并设立其认证密码为123456。
[Switch] local-user abc
[Switch-luser-manage-abc] password simple 123456
# 建树用户变装为network-admin。
[Switch-luser-manage-abc] authorization-attribute user-role network-admin
# 为保证FTP客户端仅使用授权的用户变装network-admin,删除缺省用户变装network-operator。
[Switch-luser-manage-abc] undo authorization-attribute user-role network-operator
# 建树劳动类型为FTP。
[Switch-luser-manage-abc] service-type ftp
[Switch-luser-manage-abc] quit
# 开始Switch的FTP劳动功能。
[Switch] ftp server enable
[Switch] quit
# 引申save大呼保存交换机刻下建树信息。
<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.
5.5.2 文献劳动器的建树# 建树文献劳动器的IP地址为192.168.100.14/24,使获得Switch路由可达,具体建树设施略。
# 从文献劳动器登录FTP server,本例以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
# 将腹地switch.ipe文献上传到FTP劳动器上,缺省以文献名switch.ipe保存。
ftp> put switch.ipe
200 PORT command successful
150 Connecting to port 2903
226 File successfully transferred
ftp: 发送 50445056 字节,用时 1.05Seconds 67282.77Kbytes/sec.
# 使用ls大呼检察FTP劳动器上是否有文献。
ftp> ls switch.ipe
200 PORT command successful
150 Connecting to port 3391
switch.ipe
226 1 matches total
ftp: 收到 24 字节,用时 0.00Seconds 24000.00Kbytes/sec.
# 拒绝与FTP Server的招引,并了债到用户视图。
ftp> bye
5.5.3 Switch上建树开始文献# 将switch.ipe备份为switch-backup.ipe。
<Sysname> copy switch.ipe switch-backup.ipe
# 指定Switch下次开始时所用的主用开始文献为switch.ipe。
<Switch> boot-loader file flash:/switch.ipe slot 1 main
Verifying the IPE file and the images.....Done.
Images in IPE:
switch-cmw710-boot-r3106.bin
switch-cmw710-system-r3106.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to the device.
Decompressing file switch-cmw710-boot-r3106.bin to flash:/switch-cmw710-boot-r3106.bin.........Done.
Decompressing file switch-cmw710-system-r3106.bin to flash:/switch-cmw710-system-r3106.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.
# 指定Switch的下次开始时所用的备用开始文献为switch-backup.ipe。
<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.
# 重启建设。
<Switch> reboot
5.6 考据建树# 建设重启后,使用display version大呼检察建设版块信息。
<Switch> display version
H3C Comware Software, Version 7.1.045, Release 3106
Copyright (c) 2004-2017 New H3C Technologies Co., Ltd. All rights reserved.
H3C Switch uptime is 0 weeks, 0 days, 0 hours, 19 minutes
Last reboot reason : User reboot
Boot image: flash:/switch-cmw710-boot-r3106.bin
Boot image version: 7.1.045P16, Release 3106
Compiled Jun 18 2014 17:52:09
System image: flash:/switch-cmw710-system-r3106.bin
System image version: 7.1.045, Release 3106
Compiled Jun 18 2014 17:52:09
……略……
# 显露本次开始和下次开始所接受的开始软件包的称呼。
<Switch> display boot-loader
Software images on slot 1:
Current software images:
flash:/switch-cmw710-boot-r3106.bin
flash:/switch-cmw710-system-r3106.bin
Main startup software images:
flash:/switch-cmw710-boot-r3106.bin
flash:/switch-cmw710-system-r3106.bin
Backup startup software images:
flash:/switch-cmw710-boot-r3106.bin
flash:/switch-cmw710-system-r3106.bin
#
5.7 建树文献#
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
#
6 相干辛苦· H3C S5130-EI系列以太网交换机基础建树开拓-Release 3106
· H3C S5130-EI系列以太网交换机基础建树大呼参考-Release 3106