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

CLI-based Configuration Guide - Basic Configuration

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the Basic configuration supported by the device.
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).
Configuring the DHCP Server

Configuring the DHCP Server

Context

Before powering on the devices that need to run Auto-Config, configure the DHCP server and file server; otherwise, the devices cannot obtain configuration files.

NOTE:
  • The DHCP server must be configured with Option parameters.

  • A router is used as an example to describe the procedure for configuring the DHCP server. When the router functions as the DHCP server, configure the DHCP server according to DHCP Configuration. The following example describes the procedure for configuring the DHCP server based on the global address pool.

  • After the Auto-Config configuration is complete, delete Auto-Config configuration on the DHCP server to prevent the configuration information from affecting other configurations.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run dhcp enable

    DHCP is enabled.

  3. Run interface interface-type interface-number

    The interface view is displayed.

  4. Run ip address ip-address { mask | mask-length }

    An IP address is assigned to the interface.

  5. Run dhcp select global

    The interface is configured to use the global address pool.

  6. Run quit

    Return to the system view.

  7. Run ip pool ip-pool-name

    The global address pool is created and the global address pool view is displayed.

    By default, no global address pool is created on the device.

  8. Run network ip-address [ mask { mask | mask-length } ]

    The range of IP addresses that can be allocated dynamically in the global address pool is specified.

    NOTE:
    • To prevent IP address conflicts, the configured IP addresses must be different from the IP addresses configured in the configuration files.

    • The DHCP server must have IP addresses to assign to devices.

  9. Run gateway-list ip-address &<1-8>

    The egress gateway address for DHCP clients is specified.

  10. Run option code [ sub-option sub-code ] { ascii ascii-string | hex hex-string | cipher cipher-string | ip-address ip-address &<1-8> }URL=URL_INFO;URL=http://192.168.1.40:80/acs;username=USERNAME;password=PASSWORD;vrpfile=VRPFILENAME;vrpver=VRPVERSION;patchfile=PATCHFILENAME;Example:vrpfile=auto_V200R010.cc;vrpver=V200R010;patchfile=auto_V200R010.pat;

    Option parameters are configured for the DHCP server.

    NOTE:

    When the password is contained in option, the ascii or hex type is insecure. Set the option type to cipher. A secure password should contain at least two types of the following: lowercase letters, uppercase letters, number, and special characters. In addition, the password must consist of six or more than six characters.

    If Option 67 is not configured, Auto-Config enables devices to load configuration files using the intermediate file. For details about how to edit the intermediate file, see "(Optional) Configuring the Intermediate File".

    Table 2-4 shows DHCP Option parameters used in Auto-Config.
    Table 2-4  DHCP Option parameters

    Option

    Description

    Option 43

    Information about the ACS server:
    • sub-option 1: ACS URL. Format:

      For example:

    • sub-option 2: ACS user name and password. Format:
    NOTE:

    The router cannot function as the ACS server. For details about ACS configurations, see corresponding manuals.

    Option 67

    Name of the configuration file assigned to DHCP clients.

    Option 141

    FTP/SFTP user name assigned to DHCP clients.

    Option 142

    FTP/SFTP password assigned to DHCP clients.

    Option 143

    FTP server IP address assigned to DHCP clients.

    Option 145

    Information about the non-configuration file assigned to DHCP clients, for example: information about the system software, version ID, and patch file. Format:
    NOTE:
    • vrpver information must be included in the vrpfile information.

    Option 146

    User-defined settings, including file deletion policy used when memory space is insufficient and delay in activating the configuration file. Format:

    • opervalue = 0: indicates that no system software will be deleted from the file system when the space is insufficient. opervalue=1: indicates that system software will be deleted from the file system when the space is insufficient. By default, no file will be deleted from the file system when the space is insufficient.
    • delaytime: specifies the delay in restarting a device after a configuration file is downloaded to the device, in seconds. By default, the delay is 0 seconds.
    NOTE:

    The maximum delay in restarting a device is 1 day, namely, 86400 seconds. If the configured delay exceeds 1 day, the delay is calculated as 1 day.

    Option 147

    Authentication information. Option 147 is optional. If Option 147 is required, it must be configured as AutoConfig.

    Option 148

    Agile Controller-Branch's IP address and port number assigned to DHCP clients.

    Option 148 is in the following format:
    agilemode=AGILEMODE;agilemanage-mode=AGILEMANAGE-MODE;agilemanage-domain=AGILEMANAGE-DOMAIN;agilemanage-port=AGILEMANAGE-PORT;
    
    • agilemode: indicates the agile mode. agilemode=tradition: indicates the traditional mode.
    • agilemanage-mode: indicates that the agilemanage-domain field is an IP address or a domain name. agilemanage-mode=ip: indicates that the agilemanage-domain field is an IP address. agilemanage-mode=domain: indicates that the agilemanage-domain field is a domain name.
    • agilemanage-domain: indicates an IP address in case of agilemanage-mode=ip or indicates a domain name in case of agilemanage-mode=domain.
    • agilemanage-port: indicates the Agile Controller-Branch's port number assigned to DHCP clients.
    For example, in the Cloud VPN scenario, if the Agile Controller-Branch's IP address and port number assigned to DHCP clients are 10.17.15.84 and 10020, Option 148 is as follows:
    agilemode=tradition;agilemanage-mode=ip;agilemanage-domain=10.17.15.84;agilemanage-port=10020;

    Option 149

    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 port number is 22, the Option 149 field is: option 149 ascii ipaddr=10.10.10.1;port=22.

    Option 150

    TFTP server IP address assigned to DHCP clients.

    NOTE:
    • Option 150 enables DHCP clients to directly obtain the TFTP server IP address.
    • Options 141, 142, and 143 enable DHCP clients to obtain the FTP user name, FTP password, and FTP server address.
    • Options 141, 142, and 149 enable DHCP clients to obtain the SFTP user name, SFTP password, and SFTP server IP address and port number.
    • When multiple types of Option parameters are set for a DHCP server, the file servers are selected as follows: SFTP -> FTP ->TFTP.
    • The file server user name and password obtained by the device to be configured are only used for Auto-Config deployment. The device to be configured does not save the file server user name and password.

Translation
Download
Updated: 2019-08-08

Document ID: EDOC1100034066

Views: 83793

Downloads: 468

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