31-H3C VSR1000虛擬路由器作為FTP server 升級版本的典型配置舉例
本章節下載: 31-H3C VSR1000虛擬路由器作為FTP server 升級版本的典型配置舉例 (131.71 KB)
H3C VSR1000虛擬路由器作為FTP server升級軟件版本的典型配置舉例
Copyright © 2014 杭州華三通信技術有限公司 版權所有,保留一切權利。 非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部, 並不得以任何形式傳播。本文檔中的信息可能變動,恕不另行通知。 |
|
目 錄
本文檔介紹使用FTP方式升級VSR1000虛擬路由器軟件版本的典型配置舉例。
本文檔不嚴格與具體軟件版本對應,如果使用過程中與產品實際情況有差異,請參考相關產品手冊,或以設備實際情況為準。
本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。
本文檔假設您已了解FTP的特性。
如圖1所示,主機Host通過二層交換機連接到Router的GigabitEthernet1/0接口,Router作為FTP服務器,Host作為FTP客戶端。
現要求:
· 通過FTP方式為Router升級軟件版本,將存儲在FTP客戶端上的文件VSR1000-CMW710-E0301-X64.ipe上傳到FTP服務器。
· 配置FTP客戶端登錄FTP服務器的用戶名為abc,密碼為123456。
為了使路由器在重啟後使用新軟件版本,需要指定下次啟動時所用的主用啟動文件為升級後的軟件版本。
本舉例是在E0301版本上進行配置和驗證的。
· 當設備剩餘的內存空間不夠,請使用delete /unreserved file-url命令刪除部分暫時不用的文件後再執行升級軟件操作。
· 在Router和主機之間進行FTP傳輸,需要選擇binary方式傳輸文件。
# 配置Router接口IP地址。
<Router> system-view
[Router] interface gigabitethernet 1/0
[Router-GigabitEthernet1/0] ip address 192.168.100.66 255.255.255.0
[Router-GigabitEthernet1/0] 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] quit
# 配置主機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
# 將本地VSR1000-CMW710-E0301-X64.ipe文件上傳到FTP服務器上,缺省以文件名VSR1000-CMW710-E0301-X64.ipe保存。
ftp> put VSR1000-CMW710-E0301-X64.ipe
200 PORT command successful
150 Connecting to port 4903
226 File successfully transferred
ftp: 發送 51978240 字節,用時 12.20Seconds 4259.46Kbytes/sec.
# 使用ls命令查看FTP服務器上是否有文件。
ftp> ls VSR1000-CMW710-E0301-X64.ipe
200 PORT command successful
150 Connecting to port 4100
VSR1000-CMW710-E0301-X64.ipe
226 1 matches total
ftp: 收到 30 字節,用時 0.00Seconds 30000.00Kbytes/sec.
# 終止與FTP服務器的連接,並退回到用戶視圖。
ftp> bye
# 指定Router下次啟動時所用的主用啟動文件為VSR1000-CMW710-E0301-X64.ipe。
<Router> boot-loader file VSR1000-CMW710-E0301-X64.ipe main
Verifying the IPE file and the images...Done.
H3C VSR1000 images in IPE:
VSR1000-CMW710-BOOT-E0301-X64.bin
VSR1000-CMW710-SYSTEM-E0301-X64.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to the device.
Decompressing file VSR1000-CMW710-BOOT-E0301-X64.bin to flash:/VSR1000-CMW710-BOOT-E0301-X64.bin...Done.
Decompressing file VSR1000-CMW710-SYSTEM-E0301-X64.bin to flash:/VSR1000-CMW710-SYSTEM-E0301-X64.bin.....Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on the device.
# 指定Router下次啟動時所用的備用啟動文件為VSR-old.ipe。
<Router> boot-loader file flash:/VSR-old.ipe backup
Verifying the IPE file and the images...Done.
H3C VSR1000 images in IPE:
VSR1000-CMW710-BOOT-E0102-X64.bin
VSR1000-CMW710-SYSTEM-E0102-X64.bin
This command will set the backup startup software images. Continue? [Y/N]:y
Add images to the device.
File flash:/VSR1000-CMW710-BOOT-E0102-X64.bin already exists on the device.
File flash:/VSR1000-CMW710-SYSTEM-E0102-X64.bin already exists on the device.
Overwrite the existing files? [Y/N]:y
Decompressing file VSR1000-CMW710-BOOT-E0102-X64.bin to flash:/VSR1000-CMW710-BOOT-E0102-X64.bin...Done.
Decompressing file VSR1000-CMW710-SYSTEM-E0102-X64.bin to flash:/VSR1000-CMW710-SYSTEM-E0102-X64.bin....Done.
The images that have passed all examinations will be used as the backup startup software images at the next reboot on the device.
# 重啟設備。
<Router> reboot
# 設備重啟後,使用display version命令查看設備版本信息。
<Router> display version
H3C Comware Software, Version 7.1.055, ESS 0301
Copyright (c) 2004-2014 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
H3C VSR1000 uptime is 0 weeks, 0 days, 0 hours, 42 minutes
Last reboot reason : User reboot
Boot image: flash:/VSR1000-CMW710-BOOT-E0301-X64.bin
Boot image version: 7.1.055, ESS 0301
Compiled May 28 2014 16:53:20
System image: flash:/VSR1000-CMW710-SYSTEM-E0301-X64.bin
System image version: 7.1.055, ESS 0301
Compiled May 28 2014 16:53:20
CPU ID: 0x01000101, vCPUs: Total 1, Available 1
0.98G bytes RAM Memory
Basic BootWare Version: 1.04
Extended BootWare Version: 1.04
[SLOT 1]VNIC-E1000 (Driver)1.0
[SLOT 2]VNIC-E1000 (Driver)1.0
[SLOT 3]VNIC-E1000 (Driver)1.0
# 顯示設備本次啟動和下次啟動所采用的啟動軟件包的名稱。
<Router> display boot-loader
Software images on the device:
Current software images:
flash:/VSR1000-CMW710-BOOT-E0301-X64.bin
flash:/VSR1000-CMW710-SYSTEM-E0301-X64.bin
Main startup software images:
flash:/VSR1000-CMW710-BOOT-E0301-X64.bin
flash:/VSR1000-CMW710-SYSTEM-E0301-X64.bin
Backup startup software images:
flash:/VSR1000-CMW710-BOOT-E0102-X64.bin
flash:/VSR1000-CMW710-SYSTEM-E0102-X64.bin
#
interface gigabitethernet1/0
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
#
· 《H3C VSR1000虛擬路由器配置指導》中的“基礎配置指導”
· 《H3C VSR1000虛擬路由器命令參考》中的“基礎配置命令參考”
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!