No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - Basic Configuration

S2720, S5700, and S6720 V200R013C00

This document describes the configurations of Basic, including CLI Overview, EasyDeploy Configuration, USB-based Deployment Configuration, Logging In to a Device for the First Time, CLI Login Configuration, Web System Login Configuration, File Management, Configuring System Startup, BootLoad Menu Operation.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Deploying a Pre-configured Device

Deploying a Pre-configured Device

Context

Before delivery, a device can load a configuration file that contains commands for specifying file server addresses, name of an intermediate file for site deployment, and a shared key between the device and an SNMP host. After your simple login configuration, the device can automatically obtain and load correct configurations, reducing the manual operation cost.

NOTE:

Pre-configured devices stay in the Busy state when being deployed. You can execute only display commands, not configuration commands.

Pre-configured device deployment commands are contained in the configuration file delivered together with the device. When the device is running properly, these commands cannot be manually executed.

When the device is running properly, to start the pre-configured device deployment process, specify the configuration file for the next startup again and restart the device. The configuration file for the next startup must contain pre-configured device deployment commands.

If you do not need the pre-configured device deployment function, run undo commands to delete these configurations to prevent them from affecting other functions.

Related Commands

Table 3-6 lists the pre-configured commands in a device's configuration file.

Table 3-6  Pre-configured commands

Function

Command

Remarks

Enable pre-configured device deployment.

easy-operation client ztp-with-cfg enable

By default, pre-configured device deployment is disabled.

(Optional) Specify an intermediate file for pre-configured device deployment.

easy-operation client netfile filename

By default, devices use the intermediate file lswnet.cfg for pre-configured device deployment.

(Optional) Specify the VLAN used in the configured device deployment procedure.

easy-operation client vlan vlanid By default, the VLAN used by the device is VLAN 1.

Configure file servers.

Specifying IP addresses:

  • easy-operation client ftp-server ipaddress &<1-4> [ username username [ password password ] ]
  • easy-operation client sftp-server ipaddress &<1-4> [ username username [ password password ] ]
  • easy-operation client tftp-server ip-address ipaddress &<1-4>
  • Only one type of file server can be specified.

  • A file server can be specified using either an IP address or URL.

  • If a user name and a password have been set on an SFTP or FTP server, the device must have the same user name and password configured.

  • FTP and TFTP have security risks. Using an SFTP file server is recommended.

Specifying URLs:

  • easy-operation client ftp-server-url ipaddress [ username username [ password password ] ]
  • easy-operation client sftp-server-url ipaddress [ username username [ password password ] ]
  • easy-operation client tftp-server-url ip-address ipaddress

Configure a shared key between the device and an SNMP host.

easy-operation client snmp securityname cipher password

-

Configuration File Example

A batch of pre-configured Huawei switches needs to be deployed. The intermediate file ztpwithcfg.cfg and version files have been uploaded to the SFTP file server with IP address 10.1.1.1, user name test, and password easyoperation. The shared key between the switches and SNMP host is huawei123. The used VLAN is VLAN 100. The configuration files of the switches contain the following configurations:

#
easy-operation client ztp-with-cfg enable
easy-operation client netfile ztpwithcfg.cfg
easy-operation client vlan 100
easy-operation client sftp-server ip-address 10.1.1.1 username test password easyoperation
easy-operation client snmp securityname cipher huawei123
#
return
Translation
Download
Updated: 2019-04-04

Document ID: EDOC1100066063

Views: 30315

Downloads: 673

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next