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 configuring option fields to implement the EasyDeploy function, deploy a DHCP server from which the unconfigured devices can obtain information about files to be downloaded according to the option configuration.

If the unconfigured devices and the DHCP 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 DHCP server and the unconfigured devices.

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.

The following procedure configures a Huawei switch as the DHCP server. To use a third-party device as the DHCP server, configure it according to its manual.


  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 global 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 to be loaded to the unconfigured devices.

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

  9. Run the gateway-list ip-address &<1-8> command to set a gateway address for DHCP clients.
  10. Run the option code { ascii ascii-string | hex hex-string | cipher cipher-string | ip-address ip-address &<1-8> } command to configure DHCP options.

Updated: 2019-10-21

Document ID: EDOC1000178166

Views: 255817

Downloads: 1944

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