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

Fat AP and Cloud AP V200R010C00 Command Reference

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).
dhcp select relay

dhcp select relay

Function

The dhcp select relay command enables the DHCP relay function.

The undo dhcp select relay command disables the DHCP relay function.

By default, the DHCP relay function is disabled.

Format

dhcp select relay

undo dhcp select relay

Parameters

None

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The dhcp select relay command applies to DHCP relay agents. If the DHCP server and client are on the same network segment, they can directly communicate with each other using DHCP. In this case, no DHCP relay agent is needed. If the DHCP server and client are on different network segments, the DHCP relay function must be enabled to forward DHCP messages.

Prerequisites

The DHCP function has been enabled using the dhcp enable command in the system view.

Follow-up Tasks

  • To ensure that a DHCP relay agent can forward DHCP packets to a DHCP server, run the dhcp relay server-select or dhcp relay server-ip command on the DHCP relay-enabled interface to configure the correct IP address of the DHCP server.
  • To ensure that a DHCP server can forward DHCP packets to a DHCP relay agent, you must configure a route to the DHCP relay agent on the DHCP server.
  • If multiple DHCP relay agents exist on the network, run the dhcp relay detect enable command to enable user entry detection on the DHCP relay agent to prevent the IP addresses assigned to clients from conflicting with those of other clients.

Precautions

  • If the DHCP relay and DHCP server functions are simultaneously configured on an interface, only the DHCP server function takes effect.

  • The DHCP server must select an IP address in the same network segment with the DHCP relay agent from the global address pool to ensure that the DHCP client obtains an IP address on the local network segment. No interface address pool can be configured on the interface that connects the DHCP server and relay agent.

Example

# Enable the DHCP relay function on VLANIF100.

<Huawei> system-view
[Huawei] dhcp enable
[Huawei] interface vlanif 100
[Huawei-Vlanif100] dhcp select relay
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 205643

Downloads: 122

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