The display nat static-mapping command displays configurations of the static source tracing algorithm with a specified ID, and the address segments contained in the private and public network address pools for a static source tracing algorithm.
The display nat static-mapping global-ipv4 command is used to query the private IP address of the static mapping algorithm for a specified public IP address and public port.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
static-mapping-id |
Displays parameters of a static source tracing algorithm of a specified index. |
The value is an integer ranging from 1 to 2000. |
global-pool pool-id |
Displays mapping configurations of a static source tracing algorithm with a specified public IP address pool ID. |
The value is an integer ranging from 1 to 2000. |
inside-pool pool-id |
Displays mapping configurations of a static source tracing algorithm with a specified private IP address pool ID. |
The value is an integer ranging from 1 to 2000. |
global-ipv4 ipv4-address |
Public IP address. |
The value is in dotted decimal notation. |
port port-value |
Public port number. |
The value is an integer ranges from 256 to 65535. |
Usage Scenario
To view parameters of a static source tracing algorithm of a specified index, run the display nat static-mapping command. The command output contains the mapping used in a static source tracing algorithm.
To query the private IP address of the static mapping algorithm for a specified public IP address and public port, run the display nat static-mapping global-ipv4 command. To view mapping configurations of a static source tracing algorithm, run the display nat static-mapping { global-pool | inside-pool } command. The command output contains the mapping used in a static source tracing algorithm.The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display nat static-mapping inside-pool 1
inside-pool id=1
section 1: [10.1.1.1 10.1.1.10]
<HUAWEI> display nat static-mapping 10
inside-pool id=1
section 1: [1.1.1.1 1.1.1.10]
global-pool id=1
section 1: [2.2.2.1 2.2.2.1]
port-range: [256,65535]
port-size: 64
exclude-port: [256,511]
<HUAWEI> display nat static-mapping global-ipv4 1.0.0.1 port 6200
[inside-ip] --> [global-ip] [start-port][port-size]
192.168.1.6 --> 1.0.0.1 6144 1024
<HUAWEI> display nat static-mapping global-pool 1
global-pool id=1
section 1: [10.1.11.1 10.1.11.1]
Item | Description |
---|---|
inside-pool id | ID of the private network address pool used for the static source tracing algorithm. |
section | Address segment of the private network address pool used for the static source tracing algorithm. |
global-pool id | ID of the public network address pool used for the static source tracing algorithm. |
inside-ip | Private IP address used by a static source tracing algorithm. |
global-ip | Public IP address used by a static source tracing algorithm. |
start-port | Start port in a port range in a public IP address pool used by a static source tracing algorithm. |
port-size | Size of a public port range used by a static source tracing algorithm. |
port-range | Public port range used by a static source tracing algorithm. |
exclude-port | Port range excluded from a public IP address pool used by a static source tracing algorithm. |