• 產品與解決方案
  • 行業解決方案
  • 服務
  • 支持
  • 合作夥伴
  • 關於我們

02-典型配置舉例

目錄

03-H3C MSR係列路由器 作為FTP server升級版本典型配置舉例

本章節下載 03-H3C MSR係列路由器 作為FTP server升級版本典型配置舉例  (214.46 KB)

03-H3C MSR係列路由器 作為FTP server升級版本典型配置舉例

H3C MSR係列路由器

作為FTP server升級軟件版本配置舉例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2024 bobty下载软件 版權所有,保留一切權利。

非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。

除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。

本文檔中的信息可能變動,恕不另行通知。



1  簡介

本文檔介紹使用FTP方式升級集中式路由器軟件版本的典型配置舉例。

2  配置前提

本文檔適用於使用Comware V7軟件版本的MSR係列路由器,如果使用過程中與產品實際情況有差異,請參考相關產品手冊,或以設備實際情況為準。

本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。

本文檔假設您已了解FTP的特性。

3  配置舉例

3.1  組網需求

圖1所示,主機Host連接Router的GigabitEthernet1/0/1接口,Router作為FTP服務器,Host作為FTP客戶端。

現要求:

·     通過FTP方式為Router升級軟件版本,將存儲在FTP客戶端上的文件msr36x1.ipe上傳到FTP服務器。

·     配置FTP客戶端登錄FTP服務器的用戶名為abc,密碼為123456。

圖1 配置組網圖

 

3.2  配置思路

·     為了使設備的主用主控板和備用主控板都能夠升級版本,在使用FTP方式將軟件版本put到主用主控板後,需要將軟件版本複製到備用主控板的根目錄下,主用主控板和備用主控板都進行升級。

·     為了使路由器在重啟後使用新軟件版本,需要指定下次啟動時所用的主用啟動文件為升級後的軟件版本。

3.3  使用版本

本配置舉例是在MSR3610-X1路由器Release 6749版本上進行配置和驗證的。

3.4  配置注意事項

·     當設備剩餘的內存空間不夠,請使用delete /unreserved file-url命令刪除部分暫時不用的文件後再執行升級軟件操作。

·     確保主機和Router的FTP用戶名、密碼及文件名等參數保持一致。

·     在Router和主機之間進行FTP傳輸,需要選擇binary方式傳輸文件。

3.5  配置步驟

3.5.1  Router上配置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上添加一個FTP用戶abc,並設置其認證密碼為123456。

[Router] local-user abc

[Router-luser-abc] password simple 123456

# 配置用戶角色為network-admin。

[Router-luser-abc] authorization-attribute user-role network-admin

# 為保證FTP用戶僅使用授權的用戶角色network-admin,刪除缺省用戶角色network-operator。

[Router-luser-abc] undo authorization-attribute user-role network-operator

# 配置服務類型為FTP。

[Router-luser-abc] service-type ftp

[Router-luser-abc] quit

# 啟動Router的FTP服務功能。

[Router] ftp server enable

[Router] quit

3.5.2  Host的配置

# 配置主機Host的IP地址為192.168.100.14/24,使得到Router路由可達,具體配置方法略。

# 從FTP client登錄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

# 將本地msr36x1.ipe文件上傳到FTP服務器上,缺省以文件名msr36x1.ipe保存。

ftp> put msr36x1.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 msr36x1.ipe

200 PORT command successful

150 Connecting to port 3391

msr36x1.ipe

226 1 matches total

ftp: 收到 24 字節,用時 0.00Seconds 24000.00Kbytes/sec.

# 終止與FTP服務器的連接,並退回到用戶視圖。

ftp> bye

3.5.3  Router上配置啟動文件

# 將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 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 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

3.6  驗證配置

# 設備重啟後,使用display version命令查看設備版本信息。

<Router> display version

H3C Comware Software, Version 7.1.064, Release 6749

Copyright (c) 2004-2023 Hangzhou H3C Tech. Co., Ltd. All rights reserved.

H3C MSR3610 uptime is 0 weeks, 0 days, 0 hours, 3 minutes

Last reboot reason : User reboot

Boot image: flash:/msr36x1-cmw710-boot-r6749.bin

Boot image Version 7.1.064, Release 6749

  Compiled Jan 15 2023 19:27:12

System image: flash:/msr36x1-cmw710-system-r6749.bin

System image Version 7.1.064, Release 6749

  Compiled Jan 15 2023 19:27:12

Feature image(s) list:

  flash:/msr36x1-cmw710-security-r6749.bin, version: 7.1.049

    Compiled Jan 15 2023 19:28:36

  flash:/msr36x1-cmw710-voice-r6749.bin, version: 7.1.049

    Compiled Jan 15 2023 19:28:37

  flash:/msr36x1-cmw710-data-r6749.bin, version: 7.1.049

    Compiled Jan 15 2023 19:28:39

 

……略……

# 顯示設備主用主控板本次啟動和下次啟動所采用的啟動軟件包的名稱。

<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

3.7  配置文件

#

interface gigabitethernet1/0/1

 port link-mode route

 ip address 192.168.100.66 255.255.255.0

#

local-user abc class manage

 password hash $h$6$YMVbbwFL/vviWcQu$+CuTbYCehNZtZo5RCXiadpYbXYWa2omt5TUtEh3UPCg

3fZjxYCp5WzbuE2GoowVi2YA/BK+mnSZJZqi5jRDuCg==

 service-type ftp

 authorization-attribute user-role network-admin

#

 ftp server enable

#

4  相關資料

·     《H3C MSR 係列路由器 配置指導(V7)》中的“基礎配置指導”

·     《H3C MSR 係列路由器 命令參考(V7)》中的“基礎配置命令參考”

不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!

BOB登陆
官網
聯係我們