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 server mask

dhcp server mask

Function

The dhcp server mask command sets the subnet mask of IP addresses that a DHCP server pre-allocates to DHCP clients.

The undo dhcp server mask command deletes the configured subnet mask.

By default, the subnet mask of IP addresses that a DHCP server pre-allocates to DHCP clients is not configured.

Format

dhcp server mask { mask | mask-length }

undo dhcp server mask

Parameters

Parameter Description Value
mask Specifies a subnet mask. The value is in decimal dotted notation.
mask-length Specifies the length of the subnet. The value is an integer ranging from 0 to 32.

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After enabling the DHCP server function on an interface, you can configure the range and subnet mask of IP addresses that a DHCP server pre-allocates to DHCP clients. Run the dhcp server ip-range command to configure the IP address range and run the dhcp server mask command to configure the subnet mask of the IP addresses.

Prerequisites

The DHCP server function of the interface address pool has been enabled on interfaces using the dhcp select interface command.

Example

# Set the subnet mask of IP addresses that a DHCP server on a VLANIF100 pre-allocates to DHCP clients to 255.255.255.0.

<Huawei> system-view
[Huawei] dhcp enable
[Huawei] interface vlanif 100
[Huawei-Vlanif100] ip address 10.1.1.1 24 
[Huawei-Vlanif100] dhcp select interface
[Huawei-Vlanif100] dhcp server mask 255.255.255.0
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 204376

Downloads: 122

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