section

Function

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.

Format

section section-index start-ip-address [ end-ip-address ]

undo section section-index

Parameters

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.

Views

IP address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

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.

Example

# Configure the start IP address to 10.1.1.1 and the end IP address to 10.1.1.255 for address segment 1 in an address pool named huawei.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >