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 relay gateway-switch enable

dhcp relay gateway-switch enable

Function

Using the dhcp relay gateway-switch enable command, you can enable DHCP relay gateway switching.

Using the undo dhcp relay gateway-switch enable command, you can disable DHCP relay gateway switching.

By default, DHCP relay gateway switching is disabled.

Format

dhcp relay gateway-switch enable

undo dhcp relay gateway-switch enable

Parameters

None

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The dhcp relay gateway-switch enable command is used on DHCP relay agents. This command allows a DHCP relay agent to use a secondary IP address as the gateway address to apply for IP addresses for users when it fails to use the primary IP address to apply for IP addresses.

Prerequisites

  • Global DHCP has been enabled by using the dhcp enable command in the system view.
  • DHCP relay has been enabled on an interface by using the dhcp select relay command.

Precautions

  • The gateway address switches from the primary IP address to a secondary IP address only when a user fails to obtain an IP address by using the primary IP address for at least three times and the interval between the last failure and first failure exceeds 24 seconds.
  • Before running this command on an interface, ensure that the interface has a primary IP address and at least one secondary IP address.
  • If a primary IP address and multiple secondary IP addresses are configured on an interface, the system tries the secondary IP addresses one by one until users successfully obtain IP addresses.

Example

# Enable DHCP relay gateway switching on VLANIF10.
<Huawei> system-view
[Huawei] dhcp enable
[Huawei] interface vlanif 10
[Huawei-Vlanif10] ip address 192.168.30.1 255.255.255.0
[Huawei-Vlanif10] ip address 192.168.31.1 255.255.255.0 sub
[Huawei-Vlanif10] dhcp select relay
[Huawei-Vlanif10] dhcp relay server-ip 192.168.20.1
[Huawei-Vlanif10] dhcp relay gateway-switch enable
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 207914

Downloads: 122

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