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 Relay Function

Configuring the DHCP Relay Function

Context

If the device to be configured is on a different segment than the DHCP server, the DHCP relay function needs to be configured to enable the device to obtain configuration information such as IP addresses from the global address pool of the DHCP server.

A maximum of 16 DHCP relay agents can be configured between the DHCP client and server.

NOTE:
  • This section takes the router as an example to describe the procedure for configuring the DHCP relay function.

  • After the Auto-Config deployment is complete, delete the DHCP relay configuration to ensure DHCP relay security.

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.

    NOTE:

    When configuring an egress gateway address for the IP address pool on a DHCP server, ensure that this egress gateway address is the same as the IP address of the DHCP relay agent.

  5. Run dhcp select relay

    The DHCP relay function is enabled on an interface.

  6. Run quit

    Return to the system view.

  7. You can configure the DHCP server IP address on the DHCP relay agent in either of the two following ways:

    • Configure the DHCP server IP address directly on the interface. This method can be used when the DHCP relay agent serves only one DHCP server and a few devices need to be configured with Auto-Config on a small network.
      1. Run interface interface-type interface-number

        The interface view is displayed.

      2. Run dhcp relay server-ip ip-address

        The DHCP server IP address is configured on the DHCP relay agent.

    • Bind DHCP servers to a DHCP server group. This method can be used when the DHCP relay agent serves multiple DHCP servers and many devices need to be configured with Auto-Config on a large network.
      1. Run dhcp server group group-name

        A DHCP server group is created and the DHCP server group view is displayed.

        A maximum of 64 DHCP server groups can be configured globally.

      2. Run dhcp-server ip-address [ ip-address-index ]

        DHCP servers are added to a DHCP server group.

        A maximum of 8 DHCP servers can be added to a DHCP server group.

      3. Run interface interface-type interface-number

        The interface view is displayed.

      4. Run dhcp relay server-select group-name

        A DHCP server group is configured on the interface.

Translation
Download
Updated: 2019-08-08

Document ID: EDOC1100034066

Views: 84030

Downloads: 472

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