< Home

port-block-size

Function

The port-block-size command configures the NAT function for port pre-allocation and incremental allocation.

The undo port-block-size command clears the previous configuration.

Format

port-block-size port-num [ extended-times times-num ] [ port-range port1 port2 ]

undo port-block-size

Parameters

Parameter Description Value

port-num

Specifies the size of the pre-allocated port range.

The value is an integer ranging from 8 to 16384.

extended-times times-num

Specifies the number of incremental allocations.

The value is an integer ranging from 1 to 3.

This parameter is supported only in 3-tuple NAT mode.

port-range port1 port2

Specifies a port range.

port1 is the start port, and port2 is the end port.

The values of port1 and port2 are integers ranging from 256 to 65535.

The scope specified by the start and end ports cannot be smaller than the port block.

If no port range is specified, the default port range (2048 to 65535) is used.

Views

NAT address pool view

Default Level

2: Configuration level

Usage Guidelines

None.

Example

# Configure port pre-allocation. Set the size of the pre-allocated port range to 256, and number of incremental allocation times to 1.

<sysname> system-view
[sysname] nat address-group group1
[sysname-address-group-group1] port-block-size 256 extended-times 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic