nat bind static-mapping

Function

The nat bind static-mapping command enables the static source tracing algorithm and configures parameters for the algorithm.

The undo nat bind static-mapping command disables the static source tracing algorithm.

By default, no static source tracing algorithm is enabled for a NAT instance.

This command is supported only on the NetEngine 8000 F1A.

Format

nat bind static-mapping static-mapping-id

undo nat bind static-mapping static-mapping-id

Parameters

Parameter Description Value
static-mapping-id

Specifies the ID of the static source tracing algorithm.

The value is an integer ranging from 1 to 2000.

Views

NAT instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nat write

Usage Guidelines

Usage Scenario

A static source tracing algorithm policy allows a device to apply mappings between a specified private address pool and IP addresses in a public address pool to a NAT instance.

Precautions

The nat bind static-mapping and nat statistics address-pool-usage enable commands are mutually exclusive.

The nat bind static-mapping and nat ip access-user limit commands are mutually exclusive.

The nat bind static-mapping and nat allow-access commands are mutually exclusive.

Example

# Enable the static source tracing algorithm in the NAT instance named cpe1 and set the ID of the algorithm to 1.
<HUAWEI> system-view
[~HUAWEI] nat static-mapping
[*HUAWEI-nat-static-mapping] inside-pool 1
[*HUAWEI-nat-static-mapping-inside-pool-1] section 1 172.20.0.1 172.20.0.100
[*HUAWEI-nat-static-mapping-inside-pool-1] quit
[*HUAWEI-nat-static-mapping] global-pool 1
[*HUAWEI-nat-static-mapping-global-pool-1] section 1 10.0.0.1 10.0.0.255
[*HUAWEI-nat-static-mapping-global-pool-1] quit
[*HUAWEI-nat-static-mapping] static-mapping 1 inside-pool 1 global-pool 1 port-range 256 65535 port-size 256
[~HUAWEI] nat instance cpe1 id 1
[*HUAWEI-nat-instance-cpe1] nat bind static-mapping 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >