display nat server-map

Function

The display nat server-map command displays server-map table information on internal servers.

This command is supported only on the NetEngine 8000 F1A.

Format

display nat server-map [ static | dynamic ] [ slot slot-id | ip ip-address | vpn-instance vpn-instance-name | port port-number ] *

Parameters

Parameter Description Value
static

Displays server-map table information on internal servers.

-

dynamic

Displays server-map table information automatically generated by an ALG.

-

slot slot-id

Specifies the slot ID of a service board.

The value is a string of 1 to 15 case-sensitive characters, spaces not supported.

ip ip-address

Displays server-map entry information with a specified IP address.

The value is in dotted decimal notation.

vpn-instance vpn-instance-name

Displays server-map table information with a specified VPN instance name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

port port-number

Displays server-map table information with a port number.

The value is an integer that ranges from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
nat read

Usage Guidelines

To view server-map table information on internal servers, run the display nat server-map command. The command displays information based on a specified IP address, port number, and protocol type.

Example

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

# Display information about all server-map entries on a service board.
<HUAWEI> display nat server-map
This operation will take a few minutes. Press 'Ctrl+C' to break ...
Slot: 1 
Total number:  4.
  NAT Instance: nat1         
  Protocol:TCP, VPN:--->-
  Server:192.168.11.1[192.168.12.1]->ANY          
  Tag:0x0, TTL:-, Left-Time:-       
  CPE IP:192.168.11.1      
  outbound: false
  extendable:false

  NAT Instance: nat1         
  Protocol:TCP, VPN:--->-
  Server reverse:ANY->192.168.12.1[192.168.11.1]  
  Tag:0x0, TTL:-, Left-Time:-       
  CPE IP:192.168.11.1     
  outbound: false
  extendable:false

  NAT Instance: nat2         
  Protocol:TCP, VPN:--->-
  Server:192.168.13.1[192.168.14.1]->ANY          
  Tag:0x0, TTL:-, Left-Time:-       
  CPE IP:192.168.13.1      
  outbound: false
  extendable:false

  NAT Instance: nat2         
  Protocol:TCP, VPN:--->-
  Server reverse:ANY->192.168.14.1[192.168.13.1]  
  Tag:0x0, TTL:-, Left-Time:-       
  CPE IP:192.168.13.1     
  outbound: false
  extendable:false
# Display information about all static server-map entries with the IP address of 192.168.11.1 on a service board.
<HUAWEI> display nat server-map static ip 192.168.11.1
This operation will take a few minutes. Press 'Ctrl+C' to break ...
Slot: 1 
Total number:  2.        
  NAT Instance: nat1         
  Protocol:ANY, VPN:--->-
  Server:192.168.11.1[192.168.12.1]->ANY          
  Tag:0x0, TTL:-, Left-Time:-       
  CPE IP:192.168.11.1      
  outbound: false
  extendable:false

  NAT Instance: nat2         
  Protocol:ANY, VPN:--->-
  Server reverse:ANY->192.168.12.1[192.168.11.1]  
  Tag:0x0, TTL:-, Left-Time:-       
  CPE IP:192.168.11.1     
  outbound: false
  extendable:false
# Display information about all dynamic server-map entries on a service board.
<HUAWEI> display nat server-map dynamic
This operation will take a few minutes. Press 'Ctrl+C' to break ...
Slot: 1 
Total number:  4
  NAT Instance: 10          
  Protocol:GRE, VPN:--->-   
  Server:1.1.1.1[2.2.2.2]->3.3.3.3:20480 
  Tag:0x0, TTL:-, Left-Time:-    
  CPE IP:1.1.1.1        
  outbound: false 
  extendable:false

  NAT Instance: 10          
  Protocol:GRE, VPN:--->-   
  Server reverse:3.3.3.3->2.2.2.2:20480[1.1.1.1:20480]    
  Tag:0x0, TTL:-, Left-Time:-    
  CPE IP:1.1.1.1         
  outbound: false 
  extendable:false

  NAT Instance: 10          
  Protocol:GRE, VPN:--->-   
  Server reverse:3.3.3.3->2.2.2.2:49183[1.1.1.1:49183]    
  Tag:0x0, TTL:-, Left-Time:-    
  CPE IP:1.1.1.1         
  outbound: false 
  extendable:false

  NAT Instance: 10          
  Protocol:GRE, VPN:--->-   
  Server:1.1.1.1[2.2.2.2]->3.3.3.3:49183 
  Tag:0x0, TTL:-, Left-Time:-    
  CPE IP:1.1.1.1        
  outbound: false 
  extendable:false
Table 1 Description of the display nat server-map command output
Item Description
Total number

Total number of server-map entries.

NAT Instance

NAT instance name.

CPE IP

CPE IP address.

Server

Mapping between an IP address and a port in a server-map entry.

Server reverse

Indicates the reverse mapping between the IP address and port in the server map entry.

Protocol

Protocol type, either ANY if no protocol type is specified or a specified protocol ID.

VPN

VPN instance type and name.

Tag

Status of a TCP connection.

TTL

Time to live, in hh:mm:ss format.

Left-Time

Remaining time of a server-map entry, in hh:mm:ss format.

outbound

Outbound enabled flag.

GRE

Server-map table whose protocol type is gre, 49183 is the reverse call id, and 20480 is the forward call id.

extendable

The extended NAT server flag. The enable flag can be configured for multiple NAT servers with the same private IP and different public IPs in the same instance.

Slot

Slot ID.

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