三层交换机03软件升级配置举例.docx

上传人:b****8 文档编号:9353552 上传时间:2023-05-18 格式:DOCX 页数:18 大小:71.76KB
下载 相关 举报
三层交换机03软件升级配置举例.docx_第1页
第1页 / 共18页
三层交换机03软件升级配置举例.docx_第2页
第2页 / 共18页
三层交换机03软件升级配置举例.docx_第3页
第3页 / 共18页
三层交换机03软件升级配置举例.docx_第4页
第4页 / 共18页
三层交换机03软件升级配置举例.docx_第5页
第5页 / 共18页
三层交换机03软件升级配置举例.docx_第6页
第6页 / 共18页
三层交换机03软件升级配置举例.docx_第7页
第7页 / 共18页
三层交换机03软件升级配置举例.docx_第8页
第8页 / 共18页
三层交换机03软件升级配置举例.docx_第9页
第9页 / 共18页
三层交换机03软件升级配置举例.docx_第10页
第10页 / 共18页
三层交换机03软件升级配置举例.docx_第11页
第11页 / 共18页
三层交换机03软件升级配置举例.docx_第12页
第12页 / 共18页
三层交换机03软件升级配置举例.docx_第13页
第13页 / 共18页
三层交换机03软件升级配置举例.docx_第14页
第14页 / 共18页
三层交换机03软件升级配置举例.docx_第15页
第15页 / 共18页
三层交换机03软件升级配置举例.docx_第16页
第16页 / 共18页
三层交换机03软件升级配置举例.docx_第17页
第17页 / 共18页
三层交换机03软件升级配置举例.docx_第18页
第18页 / 共18页
亲,该文档总共18页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

三层交换机03软件升级配置举例.docx

《三层交换机03软件升级配置举例.docx》由会员分享,可在线阅读,更多相关《三层交换机03软件升级配置举例.docx(18页珍藏版)》请在冰点文库上搜索。

三层交换机03软件升级配置举例.docx

三层交换机03软件升级配置举例

 

H3CS5130-EI软件升级典型配置举例

 

 

5.7配置文件12

6相关资料12

 

1简介

本文档介绍软件升级的典型配置举例。

2配置前提

本文档不严格与具体软、硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。

如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文档假设您已了解软件升级和FTP/TFTP的特性。

3设备作为TFTPclient升级版本配置举例

3.1组网需求

如图1所示,Switch和文件服务器通过交换机相连,Switch作为TFTP客户端,文件服务器作为TFTP服务器。

现要求:

通过TFTP方式将存储在文件服务器上的文件switch.ipe下载到TFTP客户端,为

Switch升级软件版本。

图1配置组网图

3.2配置思路

为了使交换机在重启后使用新版本软件,需要指定下次启动时所用的主用启动文件为升级后的软件版本。

3.3使用版本

本举例是在S5130EI_E-CMW710-R3106版本上进行配置和验证的。

3.4配置注意事项

∙当设备剩余的存储空间不够,请使用delete/unreservedfile-url命令删除部分暂时不用的文件后再执行升级软件操作。

∙软件升级时需要重启设备,建议使用save命令保存设备的当前配置。

 

3.5配置步骤

3.5.1文件服务器的配置

#配置文件服务器的IP地址为192.168.100.14/24,使得与Switch路由可达,具体配置方法略。

#启动文件服务器上的TFTP服务器功能(以3CDaemon软件为例),设置TFTP服务器下载路径等参数,并开启服务。

图2配置TFTP服务器

 

3.5.2Switch的配置

#配置Switch管理口的IP地址。

system-view

[Switch]interfacem-gigabitethernet0/0/0

[Switch-M-GigabitEthernet0/0/0]ipaddress192.168.100.66255.255.255.0[Switch-M-GigabitEthernet0/0/0]quit

[Switch]quit

#在Switch上pingTFTP服务器地址,能够ping通。

ping192.168.100.14

Ping192.168.100.14(192.168.100.14):

56databytes,pressCTRL_Ctobreak56bytesfrom192.168.100.14:

icmp_seq=0ttl=64time=10.701ms

56bytesfrom192.168.100.14:

icmp_seq=1ttl=64time=2.678ms56bytesfrom192.168.100.14:

icmp_seq=2ttl=64time=2.282ms

 

56bytesfrom192.168.100.14:

icmp_seq=3ttl=64time=1.617ms56bytesfrom192.168.100.14:

icmp_seq=4ttl=64time=1.701ms

---Pingstatisticsfor192.168.100.14---

5packet(s)transmitted,5packet(s)received,0.0%packetlossround-tripmin/avg/max/std-dev=1.617/3.796/10.701/3.474ms

#执行save命令保存交换机当前配置信息。

save

Thecurrentconfigurationwillbewrittentothedevice.Areyousure?

[Y/N]:

yPleaseinputthefilename(*.cfg)[flash:

/startup.cfg]

(Toleavetheexistingfilenameunchanged,presstheenterkey):

flash:

/startup.cfgexists,overwrite?

[Y/N]:

y

Validatingfile.Pleasewait...

Savedthecurrentconfigurationtomainboarddevicesuccessfully..

#使用TFTP方式将文件服务器上的软件版本switch.ipe文件下载到Switch上,以缺省文件名

switch.ipe保存。

tftp192.168.100.14getswitch.ipe

%Total%Received%XferdAverageSpeedTimeTimeTimeCurrent

DloadUploadTotalSpentLeftSpeed10058.7M10058.7M001193k00:

00:

500:

00:

50--:

--:

--1127k

#将switch.ipe备份为switch-backup.ipe。

copyswitch.ipeswitch-backup.ipe

#指定Switch下次启动时所用的主用启动文件为switch.ipe。

boot-loaderfileflash:

/switch.ipeslot1mainVerifyingtheIPEfileandtheimages.....Done.

ImagesinIPE:

switch-cmw710-boot-r3106.binswitch-cmw710-system-r3106.bin

Thiscommandwillsetthemainstartupsoftwareimages.Continue?

[Y/N]:

yAddimagestotargetslot.

Decompressingfileswitch-cmw710-boot-r3106.bintoflash:

/switch-cmw710-boot-r3106.bin.........Done.

Decompressingfileswitch-cmw710-system-r3106.binto

flash:

/switch-cmw710-system-r3106.bin.................................Done.

Theimagesthathavepassedallexaminationswillbeusedasthemainstartupsoftwareimagesatthenextrebootonslot1.

#指定Switch下次启动时所用的备用启动文件为switch-backup.ipe。

boot-loaderfileflash:

/switch-backup.ipeslot1backup

Thiscommandwillsetthebackupstartupsoftwareimages.Continue?

[Y/N]:

y

Theimagesthathavepassedallexaminationswillbeusedasthebackupstartupsoftwareimagesatthenextrebootonslot1.

#重启设备。

reboot

 

3.6验证配置

#设备重启后,使用displayversion命令查看设备版本信息。

displayversion

H3CComwareSoftware,Version7.1.045,Release3106

Copyright(c)2004-2014HangzhouH3CTech.Co.,Ltd.Allrightsreserved.H3CSwitchuptimeis0weeks,0days,0hours,19minutes

Lastrebootreason:

Userreboot

Bootimage:

flash:

/switch-cmw710-boot-r3106.binBootimageversion:

7.1.045P16,Release3106

CompiledJun18201417:

52:

09

Systemimage:

flash:

/switch-cmw710-system-r3106.binSystemimageversion:

7.1.045,Release3106

CompiledJun18201417:

52:

09

……略……

#显示本次启动和下次启动所采用的启动软件包的名称。

displayboot-loaderSoftwareimagesonslot1:

Currentsoftwareimages:

flash:

/switch-cmw710-boot-r3106.bin

flash:

/switch-cmw710-system-r3106.binMainstartupsoftwareimages:

flash:

/switch-cmw710-boot-r3106.bin

flash:

/switch-cmw710-system-r3106.binBackupstartupsoftwareimages:

flash:

/switch-cmw710-boot-r3106.bin

flash:

/switch-cmw710-system-r3106.bin

3.7配置文件

#

interfaceM-GigabitEthernet0/0/0

ipaddress192.168.100.66255.255.255.0

#

4设备作为FTPclient升级版本配置举例

4.1组网需求

如图3所示,Switch和文件服务器通过交换机相连,Switch作为FTP客户端,文件服务器作为FTP服务器。

现要求:

∙通过FTP方式为Switch升级软件版本,将存储在文件服务器上的文件switch.ipe下载到FTP

客户端。

∙配置FTP客户端登录FTP服务器的用户名为123456,密码为123456。

 

图3配置组网图

FTPclient

 

FTPsever

 

Switch

192.168.100.14/24

 

4.2配置思路

为了使交换机在重启后使用新软件版本,需要指定下次启动时所用的主用启动文件为升级后的软件版本。

4.3使用版本

本举例是在S5130EI_E-CMW710-R3106版本上进行配置和验证的。

4.4配置注意事项

∙当设备剩余的内存空间不够,请使用delete/unreservedfile-url命令删除部分暂时不用的文件后再执行升级软件操作。

∙确保主机和Switch的FTP用户名、密码及文件名等参数保持一致。

4.5配置步骤

4.5.1文件服务器的配置

#配置文件服务器的IP地址为192.168.100.14/24,使得与Switch路由可达,具体配置方法略。

#启动文件服务器上的FTP功能(以3CDaemon软件为例),设置FTP服务器下载路径、FTP用户名和密码,并开启FTP服务。

 

图4配置FTP服务器

 

4.5.2Switch的配置

#配置Switch接口IP地址。

system-view

[Switch]interfacem-gigabitethernet0/0/0

[Switch-M-GigabitEthernet0/0/0]ipaddress192.168.100.66255.255.255.0[Switch-M-GigabitEthernet0/0/0]quit

[Switch]quit

#在Switch上ping文件服务器地址,能够ping通。

ping192.168.100.14

Ping192.168.100.14(192.168.100.14):

56databytes,pressCTRL_Ctobreak56bytesfrom192.168.100.14:

icmp_seq=0ttl=64time=10.701ms

56bytesfrom192.168.100.14:

icmp_seq=1ttl=64time=2.678ms56bytesfrom192.168.100.14:

icmp_seq=2ttl=64time=2.282ms56bytesfrom192.168.100.14:

icmp_seq=3ttl=64time=1.617ms56bytesfrom192.168.100.14:

icmp_seq=4ttl=64time=1.701ms

---Pingstatisticsfor192.168.100.14---

5packet(s)transmitted,5packet(s)received,0.0%packetlossround-tripmin/avg/max/std-dev=1.617/3.796/10.701/3.474ms

#执行save命令保存交换机当前配置信息。

save

 

Thecurrentconfigurationwillbewrittentothedevice.Areyousure?

[Y/N]:

yPleaseinputthefilename(*.cfg)[flash:

/startup.cfg]

(Toleavetheexistingfilenameunchanged,presstheenterkey):

flash:

/startup.cfgexists,overwrite?

[Y/N]:

y

Validatingfile.Pleasewait...

Configurationissavedtomainboarddevicesuccessfully.

#以用户名123456、密码123456登录FTP服务器。

ftp192.168.100.14

Connectedto192.168.100.14(192.168.100.14).

2203Com3CDaemonFTPServerVersion2.0User(192.168.100.14:

(none)):

123456

331Usernameok,needpasswordPassword:

230Userloggedin

RemotesystemtypeisUNIX.

Usingbinarymodetotransferfiles.

#将文件switch.ipe从FTP服务器下载到Switch上。

ftp>getswitch.ipe

227Enteringpassivemode(192,168,100,14,8,86)

125Usingexistingdataconnection

226Closingdataconnection;Filetransfersuccessful.50445056bytesreceivedin53.6seconds(1.25Mbyte/s)ftp>quit

#将switch.ipe备份为switch-backup.ipe。

copyswitch.ipeswitch-backup.ipe

#指定Switch下次启动时所用的主用启动文件为switch.ipe。

boot-loaderfileflash:

/switch.ipeslot1mainVerifyingtheIPEfileandtheimages.....Done.

ImagesinIPE:

switch-cmw710-boot-r3106.binswitch-cmw710-system-r3106.bin

Thiscommandwillsetthemainstartupsoftwareimages.Continue?

[Y/N]:

yAddimagestotargetslot.

Decompressingfileswitch-cmw710-boot-r3106.bintoflash:

/switch-cmw710-boot-r3106.bin.........Done.

Decompressingfileswitch-cmw710-system-r3106.binto

flash:

/switch-cmw710-system-r3106.bin.................................Done.

Theimagesthathavepassedallexaminationswillbeusedasthemainstartupsoftwareimagesatthenextrebootononslot1.

#指定Switch下次启动时所用的备用启动文件为switch-backup.ipe。

boot-loaderfileflash:

/switch-backup.ipeslot1backup

Thiscommandwillsetthebackupstartupsoftwareimages.Continue?

[Y/N]:

y

Theimagesthathavepassedallexaminationswillbeusedasthebackupstartupsoftwareimagesatthenextrebootonslot1.

#重启设备。

reboot

 

4.6验证配置

#设备重启后,使用displayversion命令查看设备版本信息。

displayversion

H3CComwareSoftware,Version7.1.045,Release3106

Copyright(c)2004-2014HangzhouH3CTech.Co.,Ltd.Allrightsreserved.H3CSwitchuptimeis0weeks,0days,0hours,19minutes

Lastrebootreason:

Userreboot

Bootimage:

flash:

/switch-cmw710-boot-r3106.binBootimageversion:

7.1.045P16,Release3106

CompiledJun18201417:

52:

09

Systemimage:

flash:

/switch-cmw710-system-r3106.binSystemimageversion:

7.1.045,Release3106

CompiledJun18201417:

52:

09

……略……

#显示本次启动和下次启动所采用的启动软件包的名称。

displayboot-loaderSoftwareimagesonslot1:

Currentsoftwareimages:

flash:

/switch-cmw710-boot-r3106.bin

flash:

/switch-cmw710-system-r3106.binMainstartupsoftwareimages:

flash:

/switch-cmw710-boot-r3106.bin

flash:

/switch-cmw710-system-r3106.binBackupstartupsoftwareimages:

flash:

/switch-cmw710-boot-r3106.bin

flash:

/switch-cmw710-system-r3106.bin

4.7配置文件

#

interfaceM-GigabitEthernet0/0/0

ipaddress192.168.100.66255.255.255.0

#

5设备作为FTPserver升级版本配置举例

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/unreservedfile-url命令删除部分暂时不用的文件后再执行升级软件操作。

∙确保主机和Switch的FTP用户名、密码及文件名等参数保持一致。

∙在Switch和主机之间进行FTP传输,需要选择binary方式传输文件。

5.5配置步骤

5.5.1Switch上配置FTP服务器

#配置Switch接口IP地址。

system-view

[Switch]interfacem-gigabitethernet0/0/0

[Switch-M-GigabitEthernet0/0/0]ipaddress192.168.100.66255.255.2

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2