You are on page 1of 4

Configuring System Startup http://127.0.0.1:52199/hedex/pages/AEI02128/04/AEI02128/04/resour...

< Home

Networking Requirements Configuration Roadmap Procedure Configuration File

Configuring System Startup

Networking Diagram

Figure 1 Networking diagram of configuring system startup

Networking Requirements Configuration Roadmap Procedure

Configuration File

Networking Requirements
As shown in Figure 1, the current system software cannot meet user needs. The user loads a
new software version with more features and upgrades device software remotely.

Configuration Roadmap
The configuration roadmap is as follows:

1. Upload the new system software to the root directory of the device.

2. Save the current configuration so that it remains active after upgrade.

3. Specify the system software for next startup.

4. Specify the configuration file for next startup.

5. Restart the device to complete upgrade.

Procedure
1. Upload the new system software to the root directory of the device.

# Before configuration, run the display startup command to view the files for next
startup.

<HUAWEI> display startup

MainBoard:
Configured startup system software: flash:/basicsoft.cc

1 of 4 26/05/2021 16:14
Configuring System Startup http://127.0.0.1:52199/hedex/pages/AEI02128/04/AEI02128/04/resour...

< Home

Networking Requirements Configuration Roadmap Procedure Configuration File


Next startup saved-configuration file: flash:/vrpcfg.zip
Startup paf file: NULL
Next startup paf file: NULL
Startup license file: NULL
Next startup license file: NULL
Startup patch package: NULL
Next startup patch package: NULL

# Upload the new system software to the device. This example uses FTP to transfer the
system software. Configure the device as an FTP server and upload the system
software to the device from the FTP client. Make sure there is enough space in the
storage device before uploading files. If the space is insufficient, delete unnecessary
files to free up space in the storage device.

<HUAWEI> system-view
[HUAWEI] ftp server enable
[HUAWEI] aaa
[HUAWEI-aaa] local-user huawei password irreversible-cipher Helloworld@6789
[HUAWEI-aaa] local-user huawei service-type ftp
[HUAWEI-aaa] local-user huawei ftp-directory flash:
[HUAWEI-aaa] local-user huawei privilege level 15
[HUAWEI-aaa] quit
[HUAWEI] quit

# Run the ftp 10.1.1.1 command in the command line window of the PC to set up an
FTP connection with the device. Run the put command to upload new system
software newbasicsoft.cc. After the upload completes, run the dir command to check
the system software.

<HUAWEI> dir
Directory of flash:/

Idx Attr Size(Byte) Date Time FileName


0 -rw- 515,160 Oct 01 2008 00:06:14 bootrom.bin
1 -rw- 1,799 Jan 01 2012 00:22:58 private-data.txt
2 drw- - Jan 01 2012 00:25:20 logfile
3 drw- - Jan 29 2012 00:00:54 resetinfo
4 -rw- 26,493,884 Dec 31 2011 23:46:52 basicsoft.cc
5 -rw- 1,111 Nov 29 2011 19:43:54 vrpcfg.zip
6 drw- 27,403,824 Jul 16 2012 19:14:26 newbasicsoft.cc
...

65,233 KB total (8,284 KB free)

2 of 4 26/05/2021 16:14
Configuring System Startup http://127.0.0.1:52199/hedex/pages/AEI02128/04/AEI02128/04/resour...

< Home

Networking Requirements Configuration Roadmap Procedure Configuration File


The current configuration will be written to the device.
Are you sure to continue? [Y/N]y
Now saving the current configuration to the slot 0.
Info: Save the configuration successfully.

3. Specify the system software to be loaded for next startup.

<HUAWEI> startup system-software newbasicsoft.cc

4. Specify the configuration file for next startup.

<HUAWEI> startup saved-configuration vrpcfg.zip

In step 1, you can run the display startup command to check the
configuration file for next startup. The message "Next startup saved-
configuration file: flash:/vrpcfg.zip" will be displayed. This means that the
vrpcfg.zip configuration file has been specified for next startup, so skip this
step. To specify another file for next startup, perform this step.

5. Check the configuration.

Run the following command to view the system software and configuration file for
next startup.

<HUAWEI> display startup

MainBoard:
Configured startup system software: flash:/basicsoft.cc
Startup system software: flash:/basicsoft.cc
Next startup system software: flash:/newbasicsoft.cc
Startup saved-configuration file: flash:/vrpcfg.zip
Next startup saved-configuration file: flash:/vrpcfg.zip
Startup paf file: NULL
Next startup paf file: NULL
Startup license file: NULL
Next startup license file: NULL
Startup patch package: NULL
Next startup patch package: NULL

6. Restart the device.

# Since the configuration file has been saved, run the reboot fast command to restart

3 of 4 26/05/2021 16:14
Configuring System Startup http://127.0.0.1:52199/hedex/pages/AEI02128/04/AEI02128/04/resour...

< Home

Networking Requirements Configuration Roadmap Procedure Configuration File


System will reboot! Continue? [Y/N]:y
Info: system is rebooting ,please wait...

7. Verify the configuration.

# Wait for several minutes until the device restart is complete. Run the display
version command to check the current system version. If the current system version is
new, the device has been successfully upgraded.

The display version command output is not provided here.

Configuration File

#
FTP server enable
#
vlan batch 10
#
aaa
local-user huawei password irreversible-cipher $1a$C"d3YGyf411I-z$.si9E-TOVAw^&9Ttgw%WAr0'~XC9n/;goO
local-user huawei privilege level 15
local-user huawei ftp-directory flash:
local-user huawei service-type ftp
#
interface Vlanif10
ip address 10.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 10
#
return

Parent Topic: Configuration Examples for System Startup


< Previous
Copyright © Huawei Technologies Co., Ltd.

4 of 4 26/05/2021 16:14

You might also like