static-mapping

Function

The static-mapping command configures parameters for the static source tracing algorithm, including private and public IP address pools, the size of a port range, and the port range.

The undo static-mapping command deletes the existing parameter configurations.

By default, the static source tracing algorithm is not configured.

This command is supported only on the NetEngine 8000 F1A.

Format

static-mapping static-mapping-id inside-pool inside-pool-id global-pool global-pool-id port-range start-port end-port [ port-size port-size ]

undo static-mapping static-mapping-id [ inside-pool inside-pool-id global-pool global-pool-id port-range start-port end-port [ port-size port-size ] ]

Parameters

Parameter Description Value
static-mapping-id

Indicates the ID of the static source tracing algorithm.

The value is an integer ranging from 1 to 2000.

inside-pool inside-pool-id

Indicates the ID of a private IP address pool.

The value is an integer ranging from 1 to 2000.

global-pool global-pool-id

Indicates the ID of a public IP address pool.

The value is an integer ranging from 1 to 2000.

port-range start-port

Indicates the start port number of a port range.

The value is an integer multiple of 256 ranging from 256 to 65535.

end-port

Indicates the end port number of a port range.

The value is an integer ranging from 256 to 65535, larger than that of start-port. The (value+1) is an integer multiple of 256.

port-size port-size

Indicates the size of the port range. The parameter port-size port-size is optional, and its default value is 4096.

The value is an integer ranging from 64 to 65280. The value of port-size must be a multiple of 64. The port-size value must be less than or equal to the number of ports between end-port and start-port.

Views

Static mapping algorithm configuration view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nat write

Usage Guidelines

Usage Scenario

You can run the static-mapping command to configure parameters for the static source tracing algorithm, including private and public IP address pools, size of a port range, and the port range, in which the private IP address pool is configured using the inside-pool command, and the public IP address pool is configured using the global-pool command.

Example

# Configure the following parameters for the static source tracing algorithm: a private IP address pool with addresses ranging from 10.0.0.1 to 10.0.0.255, a public IP address pool with addresses ranging from 172.20.0.1 to 172.20.0.100, ports ranging from 256 to 65535, and the size of the port segment is 256.
<HUAWEI> system-view
[~HUAWEI] nat static-mapping
[*HUAWEI-nat-static-mapping] inside-pool 1
[*HUAWEI-nat-static-mapping-inside-pool-1] section 1 10.0.0.1 10.0.0.255
[*HUAWEI-nat-static-mapping-inside-pool-1] quit
[*HUAWEI-nat-static-mapping] global-pool 1
[*HUAWEI-nat-static-mapping-global-pool-1] section 1 172.20.0.1 172.20.0.100
[*HUAWEI-nat-static-mapping-global-pool-1] quit
[*HUAWEI-nat-static-mapping] static-mapping 10 inside-pool 1 global-pool 1 port-range 256 65535 port-size 256
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >