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

H3C VSR1000虛擬路由器典型配置舉例-6W100

目錄

32-H3C VSR1000虛擬路由器作為TFTP client 升級版本的典型配置舉例

本章節下載 32-H3C VSR1000虛擬路由器作為TFTP client 升級版本的典型配置舉例  (156.64 KB)

32-H3C VSR1000虛擬路由器作為TFTP client 升級版本的典型配置舉例

H3C VSR1000虛擬路由器作為TFTP client升級版本的典型配置舉例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H3C_彩色.emf

 



1  簡介

本文檔介紹使用TFTP方式升級VSR1000虛擬路由器軟件版本的典型配置舉例。

2  配置前提

本文檔不嚴格與具體軟件版本對應,如果使用過程中與產品實際情況有差異,請參考相關產品手冊,或以設備實際情況為準。

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

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

3  配置舉例

3.1  組網需求

圖1所示,Host通過交換機連接Router的GigabitEthernet1/0接口,Router作為TFTP客戶端,Host作為TFTP服務器。

現要求:通過TFTP方式為Router升級軟件版本。

圖1 配置組網圖

 

3.2  配置思路

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

3.3  使用版本

本舉例是在E0301版本上進行配置和驗證的。

3.4  配置注意事項

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

·     軟件升級時需要重啟設備,建議使用save命令保存設備的當前配置。

3.5  配置步驟

3.5.1  Host的配置

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

# 啟動Host上的TFTP服務器(以3CDaemon軟件為例)。

圖2 配置TFTP服務器

 

# 配置FTP服務器參數。

·     單擊按鈕;

·     配置FTP用戶名為123456;

·     單擊“Set/Change user's password”按鈕,配置FTP密碼為123456;

·     單擊,設置FTP服務器下載路徑;

·     單擊“確定”並保存。

圖3 配置FTP服務器參數

 

3.5.2  Router的配置

# 配置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] quit

# 在Router ping TFTP服務器地址,能夠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

# 將TFTP服務器上的VSR1000-CMW710-E0301-X64.ipe文件下載到路由器上,以缺省文件名VSR1000-CMW710-E0301-X64.ipe保存。

<Router> tftp 192.168.100.14 get VSR1000-CMW710-E0301-X64.ipe

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100 58.7M  100 58.7M    0     0  1193k      0  0:00:50  0:00:50 --:--:-- 1127k

# 指定Router下次啟動時所用的主用啟動文件為VSR1000-CMW710-E0301-X64.ipe。

<Router> boot-loader file flash:/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

3.6  驗證配置

# 設備重啟後,使用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

3.7  配置文件

#

interface gigabitethernet1/0

 port link-mode route

 ip address 192.168.100.66 255.255.255.0

#

4  相關資料

·     《H3C VSR1000虛擬路由器配置指導》中的“基礎配置指導”

·     《H3C VSR1000虛擬路由器命令參考》中的“基礎配置命令參考”

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

BOB登陆
官網
聯係我們