02-H3C MSR係列路由器 作為FTP client升級版本的典型配置舉例
本章節下載: 02-H3C MSR係列路由器 作為FTP client升級版本的典型配置舉例 (242.05 KB)
H3C MSR係列路由器
作為FTP client升級軟件版本配置舉例
Copyright © 2024 bobty下载软件 版權所有,保留一切權利。
非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。
除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。
本文檔中的信息可能變動,恕不另行通知。
目 錄
本文檔介紹使用FTP方式升級集中式路由器軟件版本的典型配置舉例。
本文檔適用於使用Comware V7軟件版本的MSR係列路由器,如果使用過程中與產品實際情況有差異,請參考相關產品手冊,或以設備實際情況為準。
本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。
本文檔假設您已了解FTP的特性。
如圖1所示,主機Host連接Router的GigabitEthernet1/0/1接口,Router作為FTP客戶端,Host作為FTP服務器。現要求:
· 通過FTP方式為Router升級軟件版本,將存儲在FTP服務器上的文件msr36x1.ipe下載到FTP客戶端。
· 配置FTP客戶端登錄FTP服務器的用戶名為123456,密碼為123456。
· 為了使設備的主用主控板和備用主控板都能夠升級版本,在使用FTP方式將軟件版本get到主用主控板後,需要將軟件版本複製到備用主控板的根目錄下,主用主控板和備用主控板都進行升級。
· 為了使路由器在重啟後使用新軟件版本,需要指定下次啟動時所用的主用啟動文件為升級後的軟件版本。
本配置舉例是在MSR3610-X1路由器Release 6749版本上進行配置和驗證的。。
· 當設備剩餘的內存空間不夠,請使用delete /unreserved file-url命令刪除部分暫時不用的文件後再執行升級軟件操作。
· 確保主機和Router的FTP用戶名、密碼及文件名等參數保持一致。
# 配置Host的IP地址為192.168.100.14/24,使得與Router路由可達,具體配置方法略。
# 啟動Host上的FTP服務器(以3CDaemon軟件為例)。
圖2 配置FTP服務器
# 配置FTP服務器參數。
· 配置FTP用戶名為123456;
· 單擊“Set/Change user's password”按鈕,配置FTP密碼為123456;
· 單擊“確定”並保存。
圖3 配置FTP服務器參數
# 配置Router接口IP地址。
<Router> system-view
[Router] interface gigabitethernet 1/0/1
[Router-GigabitEthernet1/0/1] ip address 192.168.100.66 255.255.255.0
[Router-GigabitEthernet1/0/1] quit
[Router] quit
# 在Router上ping FTP服務器地址,能夠ping通。
<Router> 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
# 以用戶名123456、密碼123456登錄FTP服務器。
<Router> 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.
# 將文件msr36x1.ipe從FTP服務器下載到Router的主用主控板。
ftp> get msr36x1.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
# 將Router主用主控板的文件msr36x1.ipe拷貝到備用主控板的根目錄下
<Router> copy flash:/msr36x1.ipe slot1#flash:/msr36x1.ipe
Copy flash:/msr36x1.ipe to slot1#flash:/msr36x1.ipe[Y/N]:y
Copying file flash:/msr36x1.ipe to slot1#flash:/msr36x1.ipe.
........................................................................ Done.
# 指定Router的主用主控板下次啟動時所用的主用啟動文件為msr36x1.ipe。
<Router> boot-loader file flash:/msr36x1.ipe slot 0 main
Verifying the IPE file and the images......Done.
H3C MSR3610 images in IPE:
msr36x1-cmw710-boot-r6749.bin
msr36x1-cmw710-system-r6749.bin
msr36x1-cmw710-security-r6749.bin
msr36x1-cmw710-voice-r6749.bin
msr36x1-cmw710-data-r6749.bin
This command will set the main startup software images. Continue? [Y/N]:Y
Add images to slot 0.
Decompressing file msr36x1-cmw710-boot-r6749.bin to flash:/msr36x1-cmw710-boot-r6749.bin...............Done.
Decompressing file msr36x1-cmw710-system-r6749.bin to flash:/msr36x1-cmw710-system-r6749.bin..............................................Done.
Decompressing file msr36x1-cmw710-security-r6749.bin to flash:/msr36x1-cmw710-security-r6749.bin...Done.
Decompressing file msr36x1-cmw710-voice-r6749.bin to flash:/msr36x1-cmw710-voice-r6749.bin....Done.
Decompressing file msr36x1-cmw710-data-r6749.bin to flash:/msr36x1-cmw710-data-r6749.bin...Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 0.
# 指定Router的主用主控板下次啟動時所用的備用啟動文件為msr36x1-old.ipe。
<Router> boot-loader file slot1#flash:/msr36x1-old.ipe 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
software images at the next reboot on slot 0.
# 指定Router的備用主控板下次啟動時所用的主用啟動文件為msr36x1.ipe。
<Router> boot-loader file slot1#flash:/msr36x1.ipe slot 1 main
Verifying the IPE file and the images........Done.
H3C MSR36X1-60 images in IPE:
msr36x1-cmw710-boot-r6749.bin
msr36x1-cmw710-system-r6749.bin
msr36x1-cmw710-security-r6749.bin
msr36x1-cmw710-voice-r6749.bin
msr36x1-cmw710-data-r6749.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to slot 1.
Decompressing file msr36x1-cmw710-boot-r6749.bin to slot1#flash:/msr36x1-cmw710-boot-r6749.bin................Done.
Decompressing file msr36x1-cmw710-system-r6749.bin to slot1#flash:/msr36x1-cmw710-system-r6749.bin.................................................Done.
Decompressing file msr36x1-cmw710-security-r6749.bin to slot1#flash:/msr36x1-cmw710-security-r6749.bin...Done.
Decompressing file msr36x1-cmw710-voice-r6749.bin to slot1#flash:/msr36x1-cmw710-voice-r6749.bin....Done.
Decompressing file msr36x1-cmw710-data-r6749.bin to slot1#flash:/msr36x1-cmw710-data-r6749.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.
# 指定Router的備用主控板下次啟動時所用的備用啟動文件為msr36x1-old.ipe。
<Router> boot-loader file slot1#flash:/msr36x1-old.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.
# 重啟設備。
<Router> reboot
# 設備重啟後,使用display version命令查看設備版本信息。
<Router> display version
H3C Comware Software, Version 7.1.064, Release 6749
Copyright (c) 2004-2023 New H3C Technologies Co., Ltd. All rights reserved.
H3C MSR3610 uptime is 0 weeks, 0 days, 6 hours, 54 minutes
Last reboot reason : Power on
Boot image: flash:/msr36x1-cmw710-boot-r6749.bin
Boot image version: 7.1.064, Release 6749
Compiled Mar 10 2023 15:00:00
System image: flash:/msr36x1-cmw710-system-r6749.bin
System image version: 7.1.064, Release 6749
Compiled Mar 10 2023 15:00:00
Feature image(s) list:
flash:/msr36x1-cmw710-escan-r6749.bin, version: 7.1.064
Compiled Mar 10 2023 15:00:00
……略……
# 顯示設備主用主控板本次啟動和下次啟動所采用的啟動軟件包的名稱。
<Router> display boot-loader slot 0
Software images on slot 0:
Current software images:
flash:/msr36x1-cmw710-boot-r6749.bin
flash:/msr36x1-cmw710-system-r6749.bin
flash:/msr36x1-cmw710-security-r6749.bin
flash:/msr36x1-cmw710-voice-r6749.bin
flash:/msr36x1-cmw710-data-r6749.bin
Main startup software images:
flash:/msr36x1-cmw710-boot-r6749.bin
flash:/msr36x1-cmw710-system-r6749.bin
flash:/msr36x1-cmw710-security-r6749.bin
flash:/msr36x1-cmw710-voice-r6749.bin
flash:/msr36x1-cmw710-data-r6749.bin
Backup startup software images:
flash:/msr36x1-cmw710-boot-r000703.bin
flash:/msr36x1-cmw710-system-r000703.bin
flash:/msr36x1-cmw710-security-r000703.bin
flash:/msr36x1-cmw710-voice-r000703.bin
flash:/msr36x1-cmw710-data-r000703.bin
# 顯示設備備用主控板本次啟動和下次啟動所采用的啟動軟件包的名稱。
<Router> display boot-loader slot 1
Software images on slot 1:
Current software images:
flash:/msr36x1-cmw710-boot-r6749.bin
flash:/msr36x1-cmw710-system-r6749.bin
flash:/msr36x1-cmw710-security-r6749.bin
flash:/msr36x1-cmw710-voice-r6749.bin
flash:/msr36x1-cmw710-data-r6749.bin
Main startup software images:
flash:/msr36x1-cmw710-boot-r6749.bin
flash:/msr36x1-cmw710-system-r6749.bin
flash:/msr36x1-cmw710-security-r6749.bin
flash:/msr36x1-cmw710-voice-r6749.bin
flash:/msr36x1-cmw710-data-r6749.bin
Backup startup software images:
flash:/msr36x1-cmw710-boot-r000703.bin
flash:/msr36x1-cmw710-system-r000703.bin
flash:/msr36x1-cmw710-security-r000703.bin
flash:/msr36x1-cmw710-voice-r000703.bin
flash:/msr36x1-cmw710-data-r000703.bin
interface gigabitethernet1/0/1
ip address 192.168.100.66 255.255.255.0
· 《H3C MSR 係列路由器 配置指導(V7)》中的“基礎配置指導”
· 《H3C MSR 係列路由器 命令參考(V7)》中的“基礎配置命令參考”
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!