H3C MSR1000[2600][3600] Routers Configuration Examples All-in-One-R9141-6W100

HomeSupportConfigure & DeployConfiguration ExamplesH3C MSR1000[2600][3600] Routers Configuration Examples All-in-One-R9141-6W100
Table of Contents
Related Documents
69-TFTP Client Software Upgrade Configuration Examples

 

H3C Routers

TFTP Client Software Upgrade

Configuration Examples

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2024 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.



Introduction

The following information provides an example for upgrading the software version of a centralized router through TFTP.

Prerequisites

The following information applies to Comware 9-based routers. Procedures and information in the examples might be slightly different depending on the software or hardware version of the routers.

The configuration examples were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

The following information is provided based on the assumption that you have basic knowledge of TFTP.

Example: Using the device as a TFTP client to upgrade software

Network configuration

As shown in Figure 1, the host is connected to GigabitEthernet 0/0/1 of the router. The router acts as the TFTP client and the host acts as the TFTP server. Configure the network to realize software upgrade for the router through TFTP.

Figure 1 Network diagram

Analysis

For the router to use the new software version after reboot, specify the software image file to be used at the next boot as the main startup image file.

Software versions used

This configuration example was created and verified on R9141P16 of the MSR2630E-X1 device.

Restrictions and guidelines

When you configure the device as a TFTP client to upgrade software, follow these restrictions and guidelines:

·     If storage space on the device is not enough for the upgrade, use the delete /unreserved file-url command to delete unnecessary files before performing software upgrade.

·     Before rebooting the device to complete the upgrade, use the save command to save the running configuration.

Procedures

Configuring the host

# Assign IP address 192.168.100.14/24 to the host. Make sure the host and the router can reach each other. (Details not shown.)

# Start the TFTP server on the host and configure TFTP server settings such as the download path. This example uses the 3CDaemon TFTP server.

Figure 2 Configuring the TFTP server

 

Configuring the router

# Assign an IP address to GigabitEthernet 0/0/1 on the router.

<Router> system-view

[Router] interface gigabitethernet 0/0/1

[Router-GigabitEthernet0/0/1] ip address 192.168.100.66 255.255.255.0

[Router-GigabitEthernet0/0/1] quit

[Router] quit

# Verify that the router can ping the TFTP server.

<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

# Download upgrade file test.ipe from the TFTP server to the router.

<Router> tftp 192.168.100.14 get test.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

# Specify upgrade file test.ipe as the main startup image file for the router.

<Router> boot-loader file cfa0:/test.ipe main

Verifying the IPE file and the images.....Done.

H3C xxx images in IPE:

  test-cmw910-boot-r9141p16.bin

  test-cmw910-system-r9141p16.bin

This command will set the main startup software images. Continue? [Y/N]:y

Add images to the device.

Decompressing file test-cmw910-boot-r9141p16.bin to flash:/test-cmw910-boot-r9141p16.bin.........Done.

Decompressing file test-cmw910-system-r9141p16.bin to flash:/test-cmw910-system-r9141p16.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.

# Specify upgrade file test-old.ipe as the backup startup image file for the router.

<Router> boot-loader file cfa0:/test-old.ipe 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.

# Reboot the device.

<Router> reboot

Verifying the configuration

# Use the display version command to display system version information after device reboot.

<Router> display version

H3C Comware Software, Version 9.1.063, Release 9141P16

Copyright (c) 2004-2023 New H3C Technologies Co., Ltd. All rights reserved.

H3C xxx uptime is 0 weeks, 0 days, 6 hours, 54 minutes

Last reboot reason : Power on

Boot image: flash:/test-cmw910-boot-r9141p16.bin

Boot image version: 9.1.063, Release 9141P16

Compiled Mar 10 2023 15:00:00

System image: flash:/test-cmw910-system-r9141p16.bin

System image version: 9.1.063, Release 9141P16

Compiled Mar 10 2023 15:00:00

 

# Display the current software images and startup software images on the router.

<Router> display boot-loader

Software images on the device:

Current software images:

  flash:/test-cmw910-boot-r9141p16.bin

  flash:/test-cmw910-system-r9141p16.bin

Main startup software images:

  flash:/test-cmw910-boot-r9141p16.bin

  flash:/test-cmw910-system-r9141p16.bin

Backup startup software images:

  flash:/test-cmw910-boot-r9141p14.bin

  flash:/test-cmw910-system-r9141p14.bin

Configuration files

#

interface GigabitEthernet0/0/1

 port link-mode route

 ip address 192.168.100.66 255.255.255.0

#

Related documentation

·     Fundamentals Configuration Guide in H3C MSR1000[2600][3600] Routers Configuration Guides(V9)

·     Fundamentals Command Reference in H3C MSR1000[2600][3600] Routers Command References(V9)

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网