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.
port-block-size port-num [ extended-times times-num ] [ port-range port1 port2 ]
undo port-block-size
| 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. |