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).
Zero Touch Device Deployment Using Option Fields or an Intermediate File

Zero Touch Device Deployment Using Option Fields or an Intermediate File

Zero touch devices can obtain file information from:

  • Option fields contained in DHCP packets sent from a DHCP server
  • Intermediate file, which can be obtained from a file server

The option fields or intermediate file method only applies to zero touch device deployment. The Commander method applies to both deployment and maintenance scenarios and therefore is recommended.

On the network shown in Figure 3-5, switches in the black frame are newly deployed switches without configuration files. The following procedure uses one of these switches as an example to describe how zero touch devices are configured using option fields or an intermediate file.

NOTE:

This deployment method is the same as Auto-Config deployment and does not involve the Commander and clients.

Figure 3-5  Networking for zero touch device deployment
  1. The network administrator plans the physical position, management IP address, management VLAN, and other basic network and service parameters for the switch, and creates a configuration file for the switch.

  2. The administrator determines whether to use option fields or an intermediate file to implement device deployment according to network requirements:

    • If only a few devices need to be configured and the devices can use the same configuration file, they can be configured using option fields. When this method is used, the administrator needs to configure option fields on the DHCP server to specify information about the files that the devices need to download.
    • If many devices need to be configured and the devices require different configuration files, they can be configured using an intermediate file. When this method is used, the administrator needs to create an intermediate file offline and specify information about the files that the devices need to download in this intermediate file.
  3. The administrator configures the DHCP server (including option fields) and file server, and then saves the configuration file and other files to be downloaded on the file server. If an intermediate file is used, the administrator saves the intermediate file on the file server.

    If the zero touch switch and the DHCP server are located on different network segments, a DHCP relay agent must be deployed between them.

  4. After the administrator completes the configuration, the switch starts the zero touch device deployment process.

Figure 3-6 shows the interaction between network devices during the zero touch device deployment process.

Figure 3-6  Interaction between network devices

Zero touch device deployment goes through four stages:

  1. Apply for an IP address.

    The zero touch device sends a DHCP request to apply for an IP address. The DHCP server replies with a DHCP response that carries the allocated IP address and file server information.

  2. Obtain file information.

    After receiving the DHCP response, the zero touch device checks the option field values in the DHCP response to determine whether to obtain file information from the option fields or intermediate file.

  3. Download files.

    The zero touch device downloads the required files from the file server according to the obtained file information.

    The zero touch device downloads required files in the following sequence:

    1. System software package
    2. Patch file
    3. Web page file
    4. Configuration file
  4. Activate the configuration file.

    You can specify Option 146 on the DHCP server to configure a configuration file activation policy.

If the zero touch device is a stacked switch, the downloaded system software package, patch file, and web page file are copied from the master switch to standby and slave switches. After the file copy is complete, the device activates the files and then starts to operate normally.

Options Used for Zero Touch Device Deployment

Options must be configured on the DHCP server before deploying zero touch devices. Table 3-1 describes the options used in this scenario.

Table 3-1  Option fields

Option

Description

Remarks

Option 67

Indicates the name and path of the configuration file allocated to a DHCP client.

The file path and name cannot contain spaces and the total length cannot exceed 69 characters. For example, this field can be set to easy/vrpcfg.cfg, where easy is a file path.

Optional

  • If this field is specified, the zero touch devices are configured using option fields.
  • If this field is not specified, the zero touch devices are configured using an intermediate file.

Option 141

Indicates the SFTP/FTP user name assigned to DHCP clients.

Mandatory (At least one file server is required.)

  • Options 141, 142, and 143 enable zero touch devices to obtain the FTP user name, FTP password, and FTP server IP address.
  • Options 141, 142, and 149 enable zero touch devices to obtain the SFTP user name, SFTP password, and SFTP server IP address and port number.
  • Option 150 enables zero touch devices to obtain the TFTP server IP address.
If multiple types of file servers are specified by option fields on the DHCP server, the file servers are selected in the following sequence:
  1. SFTP server
  2. TFTP server
  3. FTP server

The file server user account obtained by a zero touch device is only used for EasyDeploy. The device does not store the file server user name and password.

Option 142

Indicates the SFTP/FTP password assigned to DHCP clients.

An SFTP/FTP password can be configured using either of the following commands:
  • option 142 ascii password
  • option 142 cipher password
A password in ASCII format is saved in plain text. A password in cipher format is saved in cipher text. When the two commands are executed in turn for multiple times, only the latest configuration takes effect. For better password security, you should configure the password in cipher format.

Option 143

Indicates the FTP server IP address assigned to DHCP clients.

Option 149

Indicates the SFTP server IP address and port number assigned to DHCP clients.

For example, if the SFTP server IP address is 10.10.10.1 and the port number is 22 (default), option 149 can be set in either of the following formats:

option 149 ascii ipaddr=10.10.10.1;

option 149 ascii ipaddr=10.10.10.1;port=22;

Option 150

Indicates the TFTP server IP address assigned to DHCP clients.

Option 145

Indicates information about files other than the configuration file.

If this field contains a file path, ensure that the total length of the file path and file name does not exceed 69 characters.

To specify the system software name, software version, web page file name, and path file name, set option 145 as follows:
vrpfile=VRPFILENAME;vrpver=VRPVERSION;patchfile=PATCHFILENAME;webfile=WEBFILE;
For example:
vrpfile=easy_V200R013C00SPC100.cc;vrpver=V200R013C00SPC100;patchfile=easy_V200R013C00.pat;webfile=easy_V200R013C00.web.7z;
  • This field is optional if Option 67 is used.
  • You do not need to configure this field if Option 67 is not used.

Option 146

Indicates the operation performed by zero touch devices.

It contains the following subfields:

  • opervalue

    This indicates whether to delete the system software from the file system if the storage space is insufficient.

    The value 0 indicates that the system software will not be deleted.

    The value 1 indicates that the system software will be deleted.

    The default value of this subfield is 0.

  • delaytime

    This indicates the delay time before making a downloaded file take effect.

    The delay time is expressed in seconds.

    The default value of this subfield is 0.

  • netfile

    This indicates the intermediate file name

    The intermediate file name contains a maximum of 64 bytes, consisting of digits (0 to 9), lowercase letters, uppercase letters, hyphens (-), and underscores (_).

    The file name extension must be .cfg.

    If the file name is invalid, the default file is lswnet.cfg.

  • intime

    This indicates the file activation time, ranging from 00:00 to 23:59.

  • actmode

    This indicates how a file is activated.

    The value 0 indicates that the file is activated in default mode.
    • If the configuration file and patch file are downloaded, the files can be automatically activated, eliminating the need to reset the device.
    • If the downloaded files include a version file, the files need to be activated after the device is reset.

    The value 1 indicates that the downloaded files can be activated after the device is reset.

    The default value of this subfield is 0.

NOTE:
  • The maximum delay time before restarting a device is one day (86400 seconds). A delay longer than one day is counted as one day.

  • If both delaytime and intime are configured, delaytime takes effect.

  • This field is optional.
  • When zero touch devices are deployed through an intermediate file and the intermediate file name needs to be specified, the netfile subfield in Option 146 needs to be configured.

Option 147

Indicates the authentication information.

The value must be AutoConfig.

Optional
Translation
Download
Updated: 2019-04-04

Document ID: EDOC1100066063

Views: 41578

Downloads: 712

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next