配置tftp服务器

tftp服务器  时间:2021-03-03  阅读:()
H3C软件升级配置举例Copyright2017新华三技术有限公司版权所有,保留一切权利.
非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播.
本文档中的信息可能变动,恕不另行通知.
i目录1简介·12配置前提·13设备作为TFTPclient升级版本配置举例13.
1组网需求·13.
2配置思路·13.
3使用版本·13.
4配置注意事项·23.
5配置步骤·23.
5.
1文件服务器的配置·23.
5.
2Device的配置·23.
6验证配置·53.
7配置文件·54设备作为FTPclient升级版本配置举例64.
1组网需求·64.
2配置思路·64.
3使用版本·64.
4配置注意事项·64.
5配置步骤·64.
5.
1文件服务器的配置·64.
5.
2Device的配置·74.
6验证配置·94.
7配置文件·105设备作为FTPserver升级版本配置举例·115.
1组网需求·115.
2配置思路·115.
3使用版本·115.
4配置注意事项·115.
5配置步骤·115.
5.
1Device上配置FTP服务器115.
5.
2文件服务器的配置·125.
5.
3Device上配置启动文件·135.
6验证配置·14ii5.
7配置文件·156设备采用BootWareTFTP方式升级软件配置举例·166.
1组网需求·166.
2使用版本·166.
3配置注意事项·166.
4配置步骤·166.
4.
1Host的配置·166.
4.
2文件服务器的配置·176.
4.
3Device的配置·176.
5验证配置·216.
6配置文件·227相关资料·2211简介本文档介绍软件升级的典型配置举例.
2配置前提本文档不严格与具体软、硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准.
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置.
如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突.
本文档假设您已了解软件升级和FTP/TFTP的特性.
3设备作为TFTPclient升级版本配置举例3.
1组网需求如图3-1所示,Device和文件服务器通过交换机相连,Device作为TFTP客户端,文件服务器作为TFTP服务器.
现要求:通过TFTP方式将存储在文件服务器上的文件new.
ipe下载到TFTP客户端,为Device升级软件版本.
图3-1配置组网图3.
2配置思路为了使设备的主用主控板和备用主控板都能够升级版本,在使用TFTP方式将软件版本get到主用主控板后,需要将主用主控板和备用主控板都进行软件版本升级.
为了使设备在重启后使用新版本软件,需要指定下次启动时所用的主用启动文件为升级后的软件版本.
3.
3使用版本本举例是在S7500E-CMW710-R7536P05版本上进行配置和验证的.
23.
4配置注意事项当设备剩余的存储空间不够,请使用delete/unreservedfile-url命令删除部分暂时不用的文件后再执行升级软件操作.
软件升级时需要重启设备,建议使用save命令保存设备的当前配置.
3.
5配置步骤3.
5.
1文件服务器的配置#配置文件服务器的IP地址为192.
168.
100.
14/24,使得与Device路由可达,具体配置方法略.
#启动文件服务器上的TFTP功能(以3CDaemon软件为例),设置TFTP服务器下载路径等参数,并开启服务.
图3-2配置TFTP服务器3.
5.
2Device的配置#配置Device接口IP地址.
system-view[Device]interfaceM-GigabitEthernet0/0/0[Device-M-GigabitEthernet0/0/0]ipaddress192.
168.
100.
66255.
255.
255.
0[Device-M-GigabitEthernet0/0/0]quit[Device]quit3#在Deviceping文件服务器地址,能够ping通.
ping192.
168.
100.
14Ping192.
168.
100.
14(192.
168.
100.
14):56databytes,pressCTRL_Ctobreak56bytesfrom192.
168.
100.
14:icmp_seq=0ttl=64time=10.
701ms56bytesfrom192.
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命令保存交换机当前配置信息.
saveThecurrentconfigurationwillbewrittentothedevice.
Areyousure[Y/N]:yPleaseinputthefilename(*.
cfg)[flash:/startup.
cfg](Toleavetheexistingfilenameunchanged,presstheenterkey):flash:/startup.
cfgexists,overwrite[Y/N]:yValidatingfile.
Pleasewait.
.
.
Savedthecurrentconfigurationtomainboarddevicesuccessfully.
#执行displaydevice命令查看当前主控板的主备分配情况,Primary字段显示为Master的主控板为设备当前的主用主控板,其对应的槽位号为Slot0;显示为Standby的主控板为设备当前的备用主控板,其对应的槽位号为Slot1.
displaydeviceSlotTypeStateSubslotSoftVerPatchVer0LSQM3MPUB0Master0S7500E-7536P05None1LSQM3MPUB0Standby0S7500E-7536P05None2LSQM2GT24PTSSC0Normal0S7500E-7536P05None3NONEAbsent0NONENone4NONEAbsent0NONENone5NONEAbsent0NONENone6NONEAbsent0NONENone7NONEAbsent0NONENone#使用TFTP方式将文件服务器上的new.
ipe文件下载到Device的主用主控板上,以缺省文件名new.
ipe保存.
tftp192.
168.
100.
14getnew.
ipe%Total%Received%XferdAverageSpeedTimeTimeTimeCurrentDloadUploadTotalSpentLeftSpeed10070.
7M10070.
7M001193k00:00:500:00:501127k#指定Device的主用主控板下次启动时所用的主用启动文件.
boot-loaderfileflash:/new.
ipeslot0mainVerifyingthefileflash:/new.
ipeonslot0.
Done.
H3CS7506EimagesinIPE:BOOT-test.
binSYSTEM-test.
bin4Thiscommandwillsetthemainstartupsoftwareimages.
Continue[Y/N]:yAddimagestoslot0.
DecompressingfileBOOT-test.
bintoflash:/BOOT-test.
bin.
Done.
DecompressingfileSYSTEM-test.
bintoflash:/SYSTEM-test.
bin.
Done.
Decompressioncompleted.
Youarerecommendedtodeletethe.
ipefileafteryousetstartupsoftwareimagesforallslots.
Doyouwanttodeleteflash:/new.
ipenow[Y/N]:yTheimagesthathavepassedallexaminationswillbeusedasthemainstartupsoftwareimagesatthenextrebootonslot0.
#指定Device的主用主控板下次启动时所用的备用启动文件.
boot-loaderfilebootflash:/BOOT-old.
binsystemflash:/SYSTEM-old.
binslot0backupThiscommandwillsetthebackupstartupsoftwareimages.
Continue[Y/N]:yVerifyingthefileflash:/BOOT-old.
binonslot0.
Done.
Verifyingthefileflash:/SYSTEM-old.
binonslot0.
Done.
Theimagesthathavepassedallexaminationswillbeusedasthebackupstartupsoftwareimagesatthenextrebootonslot0.
#指定Device的备用主控板下次启动时所用的主用启动文件.
boot-loaderfilebootflash:/BOOT-test.
binsystemflash:/SYSTEM-test.
binslot1mainThiscommandwillsetthemainsoftwareimages.
Continue[Y/N]:yVerifyingthefileflash:/BOOT-test.
binonslot1.
Done.
Verifyingthefileflash:/SYSTEM-test.
binonslot1.
Done.
Theimagesthathavepassedallexaminationswillbeusedasthemainstartupsoftwareimagesatthenextrebootonslot1.
#指定Device的备用主控板下次启动时所用的备用启动文件.
boot-loaderfilebootflash:/BOOT-old.
binsystemflash:/SYSTEM-old.
binslot1backupThiscommandwillsetthebackupstartupsoftwareimages.
Continue[Y/N]:yVerifyingthefileflash:/BOOT-old.
binonslot1.
Done.
Verifyingthefileflash:/SYSTEM-old.
binonslot1.
Done.
Theimagesthathavepassedallexaminationswillbeusedasthebackupstartupsoftwareimagesatthenextrebootonslot1.
#重启设备.
reboot53.
6验证配置#设备重启后,使用displayversion命令查看设备版本信息.
displayversionH3CComwareSoftware,Version7.
1.
070,Release7536P05Copyright(c)2004-2017NewH3CTechnologiesCo.
,Ltd.
Allrightsreserved.
H3CS7506Euptimeis0weeks,0days,0hours,4minutesLastrebootreason:USERrebootBootimage:flash:/BOOT-R7536P05.
binBootimageversion:7.
1.
070,Release7536P05CompiledJul15201616:00:00Systemimage:flash:/SYSTEM-R7536P05.
binSystemimageversion:7.
1.
070,Release7536P05CompiledJul15201616:00:00……略……#显示设备主用主控板本次启动和下次启动所采用的启动软件包的名称.
displayboot-loaderslot0Softwareimagesonslot0:Currentsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binMainstartupsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binBackupstartupsoftwareimages:flash:/BOOT-old.
binflash:/SYSTEM-old.
bin#显示设备备用主控板本次启动和下次启动所采用的启动软件包的名称.
displayboot-loaderslot1Softwareimagesonslot1:Currentsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binMainstartupsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binBackupstartupsoftwareimages:flash:/BOOT-old.
binflash:/SYSTEM-old.
bin3.
7配置文件#interfaceM-GigabitEthernet0/0/0portlink-moderouteipaddress192.
168.
100.
66255.
255.
255.
06#4设备作为FTPclient升级版本配置举例4.
1组网需求如图4-1所示,Device和文件服务器通过交换机相连,Device作为FTP客户端,文件服务器作为FTP服务器.
现要求:通过FTP方式将存储在文件服务器上的文件new.
ipe下载到FTP客户端,为Device升级软件版本.
图4-1配置组网图4.
2配置思路为了使设备的主用主控板和备用主控板都能够升级版本,在使用FTP方式将软件版本get到主用主控板后,需要将主用主控板和备用主控板都进行软件版本升级.
为了使交换机在重启后使用新版本软件,需要指定下次启动时所用的主用启动文件为升级后的软件版本.
4.
3使用版本本举例是在S7500E-CMW710-R7536P05版本上进行配置和验证的.
4.
4配置注意事项当设备剩余的存储空间不够,请使用delete/unreservedfile-url命令删除部分暂时不用的文件后再执行升级软件操作.
软件升级时需要重启设备,建议使用save命令保存设备的当前配置.
4.
5配置步骤4.
5.
1文件服务器的配置#配置文件服务器的IP地址为192.
168.
100.
14/24,使得与Device路由可达,具体配置方法略.
#启动文件服务器上的FTP功能(以3CDaemon软件为例),设置FTP服务器下载路径等参数,并开启服务.
7图4-2配置FTP服务器4.
5.
2Device的配置#配置Device接口IP地址.
system-view[Device]interfaceM-GigabitEthernet0/0/0[Device-M-GigabitEthernet0/0/0]ipaddress192.
168.
100.
66255.
255.
255.
0[Device-M-GigabitEthernet0/0/0]quit[Device]quit#在Deviceping文件服务器地址,能够ping通.
ping192.
168.
100.
14Ping192.
168.
100.
14(192.
168.
100.
14):56databytes,pressCTRL_Ctobreak56bytesfrom192.
168.
100.
14:icmp_seq=0ttl=64time=10.
701ms56bytesfrom192.
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命令保存交换机当前配置信息.
saveThecurrentconfigurationwillbewrittentothedevice.
Areyousure[Y/N]:y8Pleaseinputthefilename(*.
cfg)[flash:/startup.
cfg](Toleavetheexistingfilenameunchanged,presstheenterkey):flash:/startup.
cfgexists,overwrite[Y/N]:yValidatingfile.
Pleasewait.
.
.
Savedthecurrentconfigurationtomainboarddevicesuccessfully.
#执行displaydevice命令查看当前主控板的主备分配情况,Primary字段显示为Master的主控板为设备当前的主用主控板,其对应的槽位号为Slot0;显示为Standby的主控板为设备当前的备用主控板,其对应的槽位号为Slot1.
displaydeviceSlotTypeStateSubslotSoftVerPatchVer0LSQM3MPUB0Master0S7500E-7536P05None1LSQM3MPUB0Standby0S7500E-7536P05None2LSQM2GT24PTSSC0Normal0S7500E-7536P05None3NONEAbsent0NONENone4NONEAbsent0NONENone5NONEAbsent0NONENone6NONEAbsent0NONENone7NONEAbsent0NONENone#以用户名123456、密码123456登录FTP服务器.
ftp192.
168.
100.
14Connectedto192.
168.
100.
14(192.
168.
100.
14).
2203Com3CDaemonFTPServerVersion2.
0User(192.
168.
100.
14:(none)):123456331Usernameok,needpasswordPassword:230UserloggedinRemotesystemtypeisUNIX.
Usingbinarymodetotransferfiles.
#将文件new.
ipe从FTP服务器下载到Device的主用主控板.
ftp>getnew.
ipe227Enteringpassivemode(192,168,100,14,8,86)125Usingexistingdataconnection226Closingdataconnection;Filetransfersuccessful.
70445056bytesreceivedin53.
6seconds(1.
25Mbyte/s)ftp>quit#指定Device的主用主控板下次启动时所用的主用启动文件.
boot-loaderfileflash:/new.
ipeslot0mainVerifyingthefileflash:/new.
ipeonslot0.
Done.
H3CS7506EimagesinIPE:BOOT-test.
binSYSTEM-test.
binThiscommandwillsetthemainstartupsoftwareimages.
Continue[Y/N]:yAddimagestoslot0.
DecompressingfileBOOT-test.
bintoflash:/BOOT-test.
bin.
Done.
DecompressingfileSYSTEM-test.
bintoflash:/SYSTEM-test.
bin.
9Done.
Decompressioncompleted.
Youarerecommendedtodeletethe.
ipefileafteryousetstartupsoftwareimagesforallslots.
Doyouwanttodeleteflash:/new.
ipenow[Y/N]:yTheimagesthathavepassedallexaminationswillbeusedasthemainstartupsoftwareimagesatthenextrebootonslot0.
#指定Device的主用主控板下次启动时所用的备用启动文件.
boot-loaderfilebootflash:/BOOT-old.
binsystemflash:/SYSTEM-old.
binslot0backupThiscommandwillsetthebackupstartupsoftwareimages.
Continue[Y/N]:yVerifyingthefileflash:/Boot-old.
binonslot0.
Done.
Verifyingthefileflash:/SYSTEM-old.
binonslot0.
Done.
Theimagesthathavepassedallexaminationswillbeusedasthebackupstartupsoftwareimagesatthenextrebootonslot0.
#指定Device的备用主控板下次启动时所用的主用启动文件.
boot-loaderfilebootflash:/BOOT-test.
binsystemflash:/SYSTEM-test.
binslot1mainThiscommandwillsetthemainstartupsoftwareimages.
Continue[Y/N]:yVerifyingthefileflash:/BOOT-test.
binonslot1.
Done.
Verifyingthefileflash:/SYSTEM-test.
binonslot1.
Done.
Theimagesthathavepassedallexaminationswillbeusedasthemainstartupsoftwareimagesatthenextrebootonslot1.
#指定Device的备用主控板下次启动时所用的备用启动文件.
boot-loaderfilebootflash:/BOOT-old.
binsystemflash:/SYSTEM-old.
binslot1backupThiscommandwillsetthebackupstartupsoftwareimages.
Continue[Y/N]:yVerifyingthefileflash:/BOOT-old.
binonslot1.
Done.
Verifyingthefileflash:/SYSTEM-old.
binonslot1.
Done.
Theimagesthathavepassedallexaminationswillbeusedasthebackupstartupsoftwareimagesatthenextrebootonslot1.
#重启设备.
reboot4.
6验证配置#设备重启后,使用displayversion命令查看设备版本信息.
displayversionH3CComwareSoftware,Version7.
1.
070,Release7536P05Copyright(c)2004-2017NewH3CTechnologiesCo.
,Ltd.
Allrightsreserved.
H3CS7506Euptimeis0weeks,0days,0hours,4minutes10Lastrebootreason:USERrebootBootimage:flash:/BOOT-R7536P05.
binBootimageversion:7.
1.
070,Release7536P05CompiledJul15201616:00:00Systemimage:flash:/SYSTEM-R7536P05.
binSystemimageversion:7.
1.
070,Release7536P05CompiledJul15201616:00:00……略……#显示设备主用主控板本次启动和下次启动所采用的启动软件包的名称.
displayboot-loaderslot0Softwareimagesonslot0:Currentsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binMainstartupsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binBackupstartupsoftwareimages:flash:/BOOT-old.
binflash:/SYSTEM-old.
bin#显示设备备用主控板本次启动和下次启动所采用的启动软件包的名称.
displayboot-loaderslot1Softwareimagesonslot1:Currentsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binMainstartupsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binBackupstartupsoftwareimages:flash:/BOOT-old.
binflash:/SYSTEM-old.
bin4.
7配置文件#interfaceM-GigabitEthernet0/0/0portlink-moderouteipaddress192.
168.
100.
66255.
255.
255.
0#115设备作为FTPserver升级版本配置举例5.
1组网需求如图5-1所示,Device和文件服务器通过交换机相连,Device作为FTP服务器,文件服务器作为FTP客户端.
现要求:通过FTP方式为Device升级软件版本,将存储在FTP客户端上的文件new.
ipe上传到FTP服务器.
配置FTP客户端登录FTP服务器的用户名为abc,密码为123456.
图5-1配置组网图5.
2配置思路为了使设备的主用主控板和备用主控板都能够升级版本,在使用FTP方式将软件版本put到主用主控板后,主用主控板和备用主控板都进行软件版本升级.
为了使交换机在重启后使用新软件版本,需要指定下次启动时所用的主用启动文件为升级后的软件版本.
5.
3使用版本本举例是在S7500E-CMW710-R7536P05版本上进行配置和验证的.
5.
4配置注意事项当设备剩余的内存空间不够,请使用delete/unreservedfile-url命令删除部分暂时不用的文件后再执行升级软件操作.
确保主机和Device的FTP用户名、密码及文件名等参数保持一致.
在Device和主机之间进行FTP传输,需要选择binary方式传输文件.
5.
5配置步骤5.
5.
1Device上配置FTP服务器#配置Device接口IP地址.
system-view12[Device]interfaceM-GigabitEthernet0/0/0[Device-M-GigabitEthernet0/0/0]ipaddress192.
168.
100.
66255.
255.
255.
0[Device-M-GigabitEthernet0/0/0]quit#在Device上添加一个FTP用户abc,并设置其认证密码为123456.
[Device]local-userabc[Device-luser-abc]passwordsimple123456#配置用户角色为network-admin.
[Device-luser-abc]authorization-attributeuser-rolenetwork-admin#为保证FTP用户仅使用授权的用户角色network-admin,删除缺省用户角色network-operator.
[Device-luser-abc]undoauthorization-attributeuser-rolenetwork-operator#配置服务类型为FTP.
[Device-luser-abc]service-typeftp[Device-luser-abc]quit#启动Device的FTP服务功能.
[Device]ftpserverenable[Device]quit#执行save命令保存交换机当前配置信息.
saveThecurrentconfigurationwillbewrittentothedevice.
Areyousure[Y/N]:yPleaseinputthefilename(*.
cfg)[flash:/startup.
cfg](Toleavetheexistingfilenameunchanged,presstheenterkey):flash:/startup.
cfgexists,overwrite[Y/N]:yValidatingfile.
Pleasewait.
.
.
Savedthecurrentconfigurationtomainboarddevicesuccessfully.
5.
5.
2文件服务器的配置#配置主机文件服务器的IP地址为192.
168.
100.
14/24,使得到Device路由可达,具体配置方法略.
#从FTP客户端登录FTP服务器,本例以Windows命令提示符界面为例.
C:\DocumentsandSettings\Administrator>ftp192.
168.
100.
66Connectedto192.
168.
100.
66.
220FTPserviceready.
#以用户名abc、密码123456登录FTP服务器.
User(192.
168.
100.
66:(none)):abc331Passwordrequiredforabc.
Password:230Userloggedin.
#使用lcd命令,将FTP客户端本地的工作路径切换到软件版本所在的目录下.
ftp>lcdE:\LocaldirectorynowE:\#将传输模式设置为binary方式.
ftp>binary200TYPEisnow8-bitbinary#将本地new.
ipe文件上传到FTP服务器上,缺省以文件名new.
ipe保存.
ftp>putnew.
ipe13200PORTcommandsuccessful150Connectingtoport2903226Filesuccessfullytransferredftp:发送70445056字节,用时1.
05Seconds67282.
77Kbytes/sec.
#使用ls命令查看FTP服务器上是否有文件.
ftp>lsnew.
ipe200PORTcommandsuccessful150Connectingtoport3391new.
ipe2261matchestotalftp:收到24字节,用时0.
00Seconds24000.
00Kbytes/sec.
#终止与FTP服务器的连接,并退回到用户视图.
ftp>bye5.
5.
3Device上配置启动文件#执行displaydevice命令查看当前主控板的主备分配情况,Primary字段显示为Master的主控板为设备当前的主用主控板,其对应的槽位号为Slot0;显示为Standby的主控板为设备当前的备用主控板,其对应的槽位号为Slot1.
displaydeviceSlotNo.
BrdTypeBrdStatusSubslotSftVerPatchVer0LSQM3MPUB0Master0S7500E-7536P05None1LSQM3MPUB0Standby0S7500E-7536P05None1NONEAbsent0NONENone2LSQM2GT24PTSSC0Normal0S7500E-7536P05None3NONEAbsent0NONENone4NONEAbsent0NONENone5NONEAbsent0NONENone6NONEAbsent0NONENone7NONEAbsent0NONENone#指定Device的主用主控板下次启动时所用的主用启动文件.
boot-loaderfileflash:/new.
ipeslot0mainVerifyingthefileflash:/new.
ipeonslot0.
Done.
H3CS7506EimagesinIPE:BOOT-test.
binSYSTEM-test.
binThiscommandwillsetthemainstartupsoftwareimages.
Continue[Y/N]:yAddimagestoslot0.
DecompressingfileBOOT-test.
bintoflash:/BOOT-test.
bin.
Done.
DecompressingfileSYSTEM-test.
bintoflash:/SYSTEM-test.
bin.
Done.
Decompressioncompleted.
Youarerecommendedtodeletethe.
ipefileafteryousetstartupsoftwareimage14sforallslots.
Doyouwanttodeleteflash:/new.
ipenow[Y/N]:yTheimagesthathavepassedallexaminationswillbeusedasthemainstartupsoftwareimagesatthenextrebootonslot0.
#指定Device的主用主控板下次启动时所用的备用启动文件.
boot-loaderfilebootflash:/BOOT-old.
binsystemflash:/SYSTEM-old.
binslot0backupThiscommandwillsetthebackupstartupsoftwareimages.
Continue[Y/N]:yVerifyingthefileflash:/BOOT-old.
binonslot0.
Done.
Verifyingthefileflash:/SYSTEM-old.
binonslot0.
Done.
Theimagesthathavepassedallexaminationswillbeusedasthebackupstartupsoftwareimagesatthenextrebootonslot0.
#指定Device的备用主控板下次启动时所用的主用启动文件.
boot-loaderfilebootflash:/BOOT-test.
binsystemflash:/SYSTEM-test.
binslot1mainThiscommandwillsetthemainsoftwareimages.
Continue[Y/N]:yVerifyingthefileflash:/BOOT-test.
binonslot1.
Done.
Verifyingthefileflash:/SYSTEM-test.
binonslot1.
Done.
Theimagesthathavepassedallexaminationswillbeusedasthemainstartupsoftwareimagesatthenextrebootonslot1.
Theimagesthathavepassedallexaminationswillbeusedasthemainstartupsoftwareimagesatthenextrebootonslot1.
#指定Device的备用主控板下次启动时所用的备用启动文件.
boot-loaderfilebootflash:/BOOT-test.
binsystemflash:/SYSTEM-old.
binslot1backupThiscommandwillsetthebackupstartupsoftwareimages.
Continue[Y/N]:yVerifyingthefileflash:/BOOT-old.
binonslot1.
Done.
Verifyingthefileflash:/SYSTEM-old.
binonslot1.
Done.
Theimagesthathavepassedallexaminationswillbeusedasthebackupstartupsoftwareimagesatthenextrebootonslot1.
#重启设备.
reboot5.
6验证配置#设备重启后,使用displayversion命令查看设备版本信息.
displayversionH3CComwareSoftware,Version7.
1.
070,Release7536P05Copyright(c)2004-2017NewH3CTechnologiesCo.
,Ltd.
Allrightsreserved.
H3CS7506Euptimeis0weeks,0days,0hours,4minutesLastrebootreason:USERreboot15Bootimage:flash:/BOOT-R7536P05.
binBootimageversion:7.
1.
070,Release7536P05CompiledJul15201616:00:00Systemimage:flash:/SYSTEM-R7536P05.
binSystemimageversion:7.
1.
070,Release7536P05CompiledJul15201616:00:00……略……#显示设备主用主控板本次启动和下次启动所采用的启动软件包的名称.
displayboot-loaderslot0Softwareimagesonslot0:Currentsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binMainstartupsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binBackupstartupsoftwareimages:flash:/BOOT-old.
binflash:/SYSTEM-old.
bin#显示设备备用主控板本次启动和下次启动所采用的启动软件包的名称.
displayboot-loaderslot1Softwareimagesonslot1:Currentsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binMainstartupsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binBackupstartupsoftwareimages:flash:/BOOT-old.
binflash:/SYSTEM-old.
bin5.
7配置文件#interfaceM-GigabitEthernet0/0/0portlink-modebridgeipaddress192.
168.
100.
66255.
255.
255.
0#local-userabcclassmanagepasswordhash$h$6$YMVbbwFL/vviWcQu$+CuTbYCehNZtZo5RCXiadpYbXYWa2omt5TUtEh3UPCg3fZjxYCp5WzbuE2GoowVi2YA/BK+mnSZJZqi5jRDuCg==service-typeftpauthorization-attributeuser-rolenetwork-admin#ftpserverenable#166设备采用BootWareTFTP方式升级软件配置举例6.
1组网需求如图6-1所示,文件服务器与Device的管理以太网接口M-GigabitEthernet0/0/0相连,Host通过串口线连接Device的Console口.
现由于设备问题,不能正常启动Device.
现要求:使用BootWare菜单升级Device的软件版本.
图6-1配置组网图6.
2使用版本本举例是在S7500E-CMW710-R7536P05版本上进行配置和验证的.
6.
3配置注意事项确保在文件服务器上开启TFTP服务器功能.
当设备剩余的存储空间不够,请使用delete/unreservedfile-url命令删除部分暂时不用的文件后,再执行升级软件操作.
将交换机的升级启动文件拷贝到文件服务器上,并正确设置TFTP服务器的访问路径.
6.
4配置步骤6.
4.
1Host的配置#使用串口线,从主机连至Device备用主控板的Console口.
#通过超级终端或PuTTY等终端仿真程序与设备建立连接.
这些程序的详细介绍和使用方法请参见该程序的使用指导.
打开终端仿真程序后,请按如下要求设置终端参数:波特率:9600数据位:8停止位:1奇偶校验:无流量控制:无176.
4.
2文件服务器的配置#配置文件服务器的IP地址为192.
168.
100.
14/24,具体配置步骤略.
#启动文件服务器的TFTP服务器(以3CDaemon软件为例),设置TFTP服务器下载路径等参数,并开启服务.
图6-2配置TFTP服务器6.
4.
3Device的配置(1)升级备用主控板#使用直通线从TFTP服务器连接到备用主控板的管理以太网接口M-GigabitEthernet0/0/0上(已使用串口线从主机连接至Device备用主控板的Console口).
#忽略对备用主控板进行启动软件包版本一致性检查(即不检查备用主控板的版本是否与主用主控板的启动软件包版本一致).
system-view[Device]versioncheckignore#将设备的当前配置保存到指定文件.
[Device]saveThecurrentconfigurationwillbewrittentothedevice.
Areyousure[Y/N]:yPleaseinputthefilename(*.
cfg)[flash:/startup.
cfg](Toleavetheexistingfilenameunchanged,presstheenterkey):flash:/startup.
cfgexists,overwrite[Y/N]:yValidatingfile.
Pleasewait.
.
.
18Savedthecurrentconfigurationtomainboarddevicesuccessfully.
[Device]quit#重启设备的备用主控板.
rebootslot7#交换机上加电重启的过程中,在配置终端的屏幕上将显示:RAMtestsuccessful.
PressCtrl+Ttostartfive-stepfullRAMtest.
.
.
PressCtrl+Ytostartnine-stepfullRAMtest.
.
.
Systemisstarting.
.
.
PressCtrl+DtoaccessBASIC-BOOTWAREMENU.
.
.
BootingNormalExtendedBootWareTheExtendedBootWareisself-decompressing.
Done.
***BootWare,Version1.
15***CompiledDate:Jan232016CPUType:XLP208CPUClockSpeed:1000MHzMemoryType:DDR3SDRAMMemorySize:2048MBMemorySpeed:667MHzBootWareSize:1536KBFlashSize:4MBBASICCPLDVersion:001PCBVersion:Ver.
BBootWareValidating.
.
.
PressCtrl+BtoaccessEXTENDED-BOOTWAREMENU.
.
.
#当出现"PressCtrl+BtoaccessEXTENDED-BOOTWAREMENU"时,键入,系统提示:Passwordrecoverycapabilityisenabled.
Note:ThecurrentoperatingdeviceisflashEntertoselectdevice.
EXTENDED-BOOTWAREMENU>|BootSystem||EnterSerialSubMenu||EnterEthernetSubMenu||FileControl||RestoretoFactoryDefaultConfiguration||SkipCurrentSystemConfiguration||BootWareOperationMenu||SkipAuthenticationforConsoleLogin|19|StorageDeviceOperation||Reboot|Ctrl+Z:AccessEXTENDEDASSISTANTMENUCtrl+A:EnterCommandLineCtrl+F:FormatFileSystem#在BootWare菜单下键入,进入以太网口子菜单,系统显示如下:Enteryourchoice(0-9):3EnterSerialSubMenu>|Note:theoperatingdeviceisflash||DownloadImageProgramToSDRAMAndRun||UpdateMainImageFile||UpdateBackupImageFile||DownloadFiles(*.
*)||ModifySerialInterfaceParameter||ExitToMainMenu|#在以太网口子菜单下键入就可以进入以太网口配置菜单,并按照如下方式分别配置LoadFileName、TargetFileName、ServerIPAddress、LocalIPAddress、SubnetMask、GatewayIPAddress:LoadFileName:待升级Device的启动软件包的名称,该文件位于TFTP服务器的工作目录下.
TargetFileName:启动软件包上传至Device的存储介质后的文件名.
ServerIPAddress:TFTP服务器的IP地址.
LocalIPAddress:Device连接文件服务器的端口IP地址.
SubnetMask:子网掩码.
GatewayIPAddress:网关地址,当TFTP服务器与待升级的Device不在同一网段时,必须配置该地址.
Enteryourchoice(0-5):5ETHERNETPARAMETERSET>|Note:'.
'=Clearfield.
||'-'=Gotopreviousfield.
||Ctrl+D=Quit.
|使用TFTP方式下载软件版本:Protocol(FTPorTFTP):tftp加载软件版本new.
ipe:LoadFileName:new.
ipe:TargetFileName:new.
ipe:20输入TFTP服务器地址:ServerIPAddress:192.
168.
1.
100192.
168.
100.
14输入Device管理IP地址(只需要和TFTP服务器路由可达,这里以192.
168.
100.
66为例):LocalIPAddress:192.
168.
1.
1192.
168.
100.
66输入子网掩码255.
255.
255.
0:SubnetMask:255.
255.
255.
0GatewayIPAddress:0.
0.
0.
0#按下Enter键,进入如下界面:EnterSerialSubMenu>|Note:theoperatingdeviceisflash||DownloadImageProgramToSDRAMAndRun||UpdateMainImageFile||UpdateBackupImageFile||DownloadFiles(*.
*)||ModifySerialInterfaceParameter||ExitToMainMenu|#在以太网口配置子菜单下,键入为升级主启动文件:Enteryourchoice(0-5):2Loading.
Done.
227301376bytesdownloaded!
ImagefileBOOT-test.
binisself-decompressing.
.
.
Savingfileflash:/BOOT-test.
binDone.
ImagefileSYSTEM-test.
binisself-decompressing.
.
.
Savingfileflash:/SYSTEM-test.
binDone.
EnterSerialSubMenu>|Note:theoperatingdeviceisflash||DownloadImageProgramToSDRAMAndRun||UpdateMainImageFile||UpdateBackupImageFile||DownloadFiles(*.
*)||ModifySerialInterfaceParameter||ExitToMainMenu|#键入,返回BootWare主菜单:Enteryourchoice(0-5):0EXTENDED-BOOTWAREMENU>21|BootSystem||EnterSerialSubMenu||EnterEthernetSubMenu||FileControl||RestoretoFactoryDefaultConfiguration||SkipCurrentSystemConfiguration||BootWareOperationMenu||SkipAuthenticationforConsoleLogin||StorageDeviceOperation||Reboot|Ctrl+Z:AccessEXTENDEDASSISTANTMENUCtrl+A:EnterCommandLineCtrl+F:FormatFileSystem#键入,进入引导系统:Enteryourchoice(0-9):1Loadingthemainimagefiles.
.
.
Loadingfileflash:/SYSTEM-test.
bin.
Done.
Loadingfileflash:/BOOT-test.
bin.
.
.
.
.
Done.
Imagefileflash:/BOOT-test.
binisself-decompressing.
.
.
.
.
.
Done.
Systemimageisstarting.
.
.
Lineaux1isavailable.
PressENTERtogetstarted.
(2)升级主用主控板#从TFTP服务器使用串口线连接至Device主用主控板的Console口,使用直通线连接到主用主控板的管理以太网接口上,升级方式与升级备用主控板一致,此处不再重复.
6.
5验证配置#设备重启后,使用displayversion命令查看设备版本信息.
displayversionH3CComwareSoftware,Version7.
1.
070,Release7536P05Copyright(c)2004-2017NewH3CTechnologiesCo.
,Ltd.
Allrightsreserved.
H3CS7506Euptimeis0weeks,0days,0hours,4minutesLastrebootreason:USERrebootBootimage:flash:/BOOT-R7536P05.
binBootimageversion:7.
1.
070,Release7536P05CompiledJul15201616:00:0022Systemimage:flash:/SYSTEM-R7536P05.
binSystemimageversion:7.
1.
070,Release7536P05CompiledJul15201616:00:00……略……#显示设备主用主控板本次启动和下次启动所采用的启动软件包的名称.
displayboot-loaderslot0Softwareimagesonslot0:Currentsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binMainstartupsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binBackupstartupsoftwareimages:flash:/BOOT-old.
binflash:/SYSTEM-old.
bin#显示设备备用主控板本次启动和下次启动所采用的启动软件包的名称.
displayboot-loaderslot1Softwareimagesonslot1:Currentsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binMainstartupsoftwareimages:flash:/BOOT-test.
binflash:/SYSTEM-test.
binBackupstartupsoftwareimages:flash:/BOOT-old.
binflash:/SYSTEM-old.
bin6.
6配置文件无7相关资料H3CS7500E系列交换机基础配置指导-R7536P05H3CS7500E系列交换机基础配置命令参考-R7536P05

#推荐# cmivps:全场7折,香港不限流量VPS,支持Windows系统

cmivps香港VPS带来了3个新消息:(1)双向流量改为单向流量,相当于流量间接扩大一倍;(2)Hong Kong 2T、Hong Kong 3T、Hong Kong 无限流量,这三款VPS开始支持Windows系统,如果需要中文版Windows系统请下单付款完成之后发ticket要求官方更改即可;(3)全场7折年付、8折月付优惠,优惠码有效期一个月!官方网站:https://www.cmivp...

华为云(69元)828促销活动 2G1M云服务器

华为云818上云活动活动截止到8月31日。1、秒杀限时区优惠仅限一单!云服务器秒杀价低至0.59折,每日9点开抢秒杀抢购活动仅限早上9点开始,有限量库存的。2G1M云服务器低至首年69元。2、新用户折扣区优惠仅限一单!购云服务器享3折起加购主机安全及数据库。企业和个人的优惠力度和方案是不同的。比如还有.CN域名首年8元。华为云服务器CPU资源正常没有扣量。3、抽奖活动在8.4-8.31日期间注册并...

inlicloud48元/月,云主机,2核1G/200Mbps,可选安徽/上海联通/广州移动/江门移动NAT

inlicloud怎么样?inlicloud(引力主机)主要产品为国内NAT系列VPS,目前主要有:上海联通NAT(200Mbps带宽)、宿州联通NAT(200Mbps带宽)、广州移动NAT(200Mbps带宽)。根据官方的说法国内的NAT系列VPS不要求备案、不要求实名、对中转要求也不严格,但是,禁止任何形式的回国!安徽nat/上海联通/广州移动/江门移动nat云主机,2核1G/200Mbps仅...

tftp服务器为你推荐
961556225317563152822是哪个银行的google竞价排名谷歌是靠什么关键词排名的?谷歌竞价有什么特点?有什么优势?淘宝收费淘宝要收费吗?简体翻译成繁体帮忙把繁体翻译成简体童之磊湖北中文在线数字出版有限公司怎么样?如何建立一个网站如何建立一个网站畅想中国畅想中国发展前景qq空间打扮QQ空间打扮ios系统苹果手机的系统是什么?机械键盘轴大家觉得机械键盘什么轴最舒服
免费域名 上海服务器租用 视频空间租用 查询ip地址 kvmla jsp主机 谷歌香港 鲜果阅读 火车票抢票攻略 tightvnc 腾讯云分析 秒杀预告 新家坡 网站卫士 国外免费asp空间 上海联通宽带测速 申请免费空间和域名 空间购买 美国迈阿密 国外免费云空间 更多