subnet length

Function

The subnet length command configures mask lengths for the initial and extended address segments being applied for a dynamic address pool.

The undo subnet length command deletes the mask lengths configured for the initial and extended address segments being applied for a dynamic address pool.

By default, no mask length of address segments is configured for any dynamic address pool.

This command is supported only on the NetEngine 8000 F1A.

Format

subnet length initial { length1 | gateway-mask } [ extend { length2 | gateway-mask } ]

undo subnet length [ initial { length1 | gateway-mask } [ extend { length2 | gateway-mask } ] ]

Parameters

Parameter Description Value
extend gateway-mask

Specifies a mask of subsequent address segments applied for when IP address resources become insufficient after users go online.

This value is in dotted decimal notation, for example, 255.255.0.0.

extend length2

Specifies a mask length of subsequent address segments applied for when IP address resources become insufficient after users go online.

The value is 0 or an integer ranging from 16 to 30.

initial gateway-mask

Specifies a mask of the initial address segment applied for.

This value is in dotted decimal notation, for example, 255.255.0.0.

initial length1

Specifies a mask length for the initial address segment applied for.

The value is 0 or an integer ranging from 16 to 30.

Views

IP address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
aaa-access write

Usage Guidelines

Usage Scenario

To configure mask lengths for the initial and extended address segments being applied for a dynamic address pool, run the subnet length initial command.

Configuration Impact

After the command is run, address segment application is triggered immediately. The mask length for address segments cannot be changed if the dynamic address pool has address segments.

If extend { length | gateway-mask } is not specified, the mask or mask length specified in initial { length | gateway-mask } is applied to extended address segments being applied for.

Precautions

When this command is run, the initial address segment mask length and extended address segment mask length must be the consistent with the address segment subnet lengths configured using the network subnet length command on the DAP server. Otherwise, addresses fail to be assigned from address segments, and users fail to go online.

Example

# Configure the mask length 26 for the initial and extended address segments in the dynamic address pool huawei.
<HUAWEI> system-view
[~HUAWEI] ip pool huawei bas dynamic
Info: It's successful to create an IP address pool
[*HUAWEI-ip-pool-huawei] commit
[~HUAWEI-ip-pool-huawei] subnet length initial 26 extend 26
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >