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 information strategy

dhcp relay information strategy

Function

The dhcp relay information strategy command configures the strategies used by a DHCP relay agent to process Option 82 information.

The undo dhcp relay information strategy command restores the default setting.

By default, the strategy used by a DHCP relay agent to process Option 82 information is replace.

Format

dhcp relay information strategy { drop | keep | replace }

undo dhcp relay information strategy

Parameters

Parameters

Description

Value

drop

Configures the DHCP relay agent to drop Option 82 information.

-

keep

Configures the DHCP relay agent to keep Option 82 information.

-

replace

Configures the DHCP relay agent to replace Option 82 information.

-

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command applies to the DHCP relay agent. When DHCP Request messages carry Option 82 information, the DHCP server can locate user positions accurately and assign IP addresses to users using different policies. When a DHCP relay agent receives DHCP Request messages, it uses one of the following strategies to process Option 82 information:
  • Drop:
    • If the received DHCP message does not carry an Option 82 field, the DHCP relay agent forwards the message directly without processing it.
    • If the received DHCP message carries an Option 82 field, the DHCP relay agent drops the Option 82 field and forwards the message.
  • Keep:
    • If the received DHCP message does not carry an Option 82 field, the DHCP relay agent forwards the message directly without processing it.
    • If the received DHCP message carries an Option 82 field, the DHCP relay agent keeps the Option 82 field and forwards the message.
  • Replace:
    • If the received DHCP message does not carry an Option 82 field, the DHCP relay agent inserts an Option 82 field configured by the administrator into the received message and forwards the message.
    • If the received DHCP message carries an Option 82 field, the DHCP relay agent replaces it with the Option 82 field configured by the administrator and forwards the message.

Prerequisites

DHCP has been enabled by running the dhcp enable command in the system view.

DHCP relay has been enabled by running the dhcp select relay command in the interface view.

The Option 82 function has been enabled for the DHCP relay agent by using the dhcp relay information enable command.

Example

# Configure the DHCP relay agent to drop Option 82 information on VLANIF 100.

<Huawei> system-view
[Huawei] dhcp enable
[Huawei] vlan 100
[Huawei-vlan100] quit
[Huawei] interface vlanif 100
[Huawei-Vlanif100] dhcp select relay
[Huawei-Vlanif100] dhcp relay information enable
[Huawei-Vlanif100] dhcp relay information strategy drop
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 210480

Downloads: 122

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