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


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


Configuration Guide - Basic Configuration

S1720, S2700, S5700, and S6720 V200R011C10

This document describes methods to use command line interface and to log in to the device, file operations, and system startup configurations.
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 DHCP

Configuring DHCP


Before deploying unconfigured devices, you must configure the DHCP functions to allow the DHCP clients to obtain an IP address and Commander's address from the DHCP server. The clients then can communicate with the Commander to obtain information about the files they need to download.

If the clients and server are located on the same network segment, you only need to configure the DHCP server. If they are located on different network segments, deploy a DHCP relay agent between the server and clients.

You can configure the Commander, another Huawei switch, or a third-party device on the network as the DHCP server or DHCP relay agent. In the following operations, another Huawei switch is configured as the DHCP server. If a third-party device is used, configure them according to the manual of the device.

The DHCP server must support the options required for device deployment. This section provides basic configurations of the DHCP server. For more information about DHCP configuration, see DHCP Configuration in the S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - IP Service.


  1. Run the system-view command to enter the system view.
  2. Run the dhcp enable command to enable DHCP.
  3. Run the interface interface-type interface-number command to enter the interface view.
  4. (Optional) On an Ethernet interface, run undo portswitch

    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.

    Only the S5720HI, S5720EI, S6720EI, and S6720S-EI support switching between Layer 2 and Layer 3 modes.

  5. Run the dhcp select global command to configure the interface to use the global IP address pool.
  6. Run the quit command to return to the system view.
  7. Run the ip pool ip-pool-name command to create a DHCP address pool and enter its view.
  8. Run the network ip-address [ mask { mask | mask-length } ] command to specify the range of IP addresses in the global address pool.

    • To prevent IP address conflicts, ensure that the configured IP address range does not include the IP addresses specified in the configuration files.

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

  9. Run the gateway-list ip-address &<1-8> command to set a gateway address for DHCP clients.
  10. Run the option 148 ascii ascii-string command to configure DHCP option fields.

    • The option 148 parameter must be specified first, indicating the Commander's IP address. After this parameter is specified, the clients implement EasyDeploy using the Commander.

    • The ascii-string parameter is set in the format of "ipaddr=ip-address;port=udp-port;". For example, if the IP address and port number of the Commander are and 60000, respectively, the ascii-string parameter is expressed as ipaddr=;port=60000; or ipaddr=; (the default port number 60000 is omitted).

Updated: 2019-10-21

Document ID: EDOC1000178166

Views: 254691

Downloads: 1939

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