The section command configures an address segment for an IP address pool.
The undo section command deletes the configuration.
By default, no address segment is configured for an IP address pool.
Parameter | Description | Value |
---|---|---|
section-index |
Specifies the index of an address segment. |
The value is an integer ranging from 0 to 255. |
start-ip-address |
Specifies the start IP address of the address segment. |
The value is in dotted decimal notation. |
end-ip-address |
Specifies the end IP address of the address segment. The end IP address must be greater than or equal to the start IP address. If no end IP address is input, the configured address segment contains only the start IP address. |
The value is in dotted decimal notation. |
Usage Scenario
To allow the DHCP server to assign IP addresses to DHCP clients from an address segment, run the section command in the Server IP address pool view to configure an address segment.
Prerequisites
Perform the following operations:
1.Run the ip pool command in the system view to create an address pool on the DHCP server. 2.Run the gateway command in the Server IP address pool view to configure a gateway address and subnet mask for the created address pool.Precautions
The IP addresses in the address segment must be on the network segment configured using the gateway (server address pool view) command.
An address pool consists of address segments. An address pool can be configured with a maximum of 256 address segments, and each address segment can be configured with a maximum of 65536 addresses. The addresses in different address segments cannot overlap.<HUAWEI> system-view [~HUAWEI] ip pool huawei server [*HUAWEI-ip-pool-huawei] gateway 10.1.1.1 255.255.255.0 [*HUAWEI-ip-pool-huawei] section 1 10.1.1.1 10.1.1.255