display nat static-mapping

Function

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.

Format

display nat static-mapping static-mapping-id

display nat static-mapping { global-pool | inside-pool } pool-id

display nat static-mapping global-ipv4 ipv4-address port port-value

Parameters

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.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
nat read

Usage Guidelines

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.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the address segments contained in the private network address pool for static source tracing algorithm 1.
<HUAWEI> display nat static-mapping inside-pool 1
inside-pool id=1                                                                                                                   
  section 1: [10.1.1.1  10.1.1.10]
# Display configurations of the static source tracing algorithm with the ID of 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]
# Display private address information of the static mapping algorithm, with the public IP address of 1.0.0.1 and public port number of 6200.
<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
# Display the address segments contained in the public network address pool for static source tracing algorithm 1.
<HUAWEI> display nat static-mapping global-pool 1
global-pool id=1                                                                                                                   
  section 1: [10.1.11.1  10.1.11.1]
Table 1 Description of the display nat static-mapping command output
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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >