No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
display nat session

display nat session

Function

The display nat session command displays the NAT mapping table.

Format

display nat session { all [ verbose ] | number }

display nat session protocol { protocol-name | protocol-number } [ source source-address [ source-port ] ] [ destination destination-address [ destination-port ] ] [ verbose ]

display nat session source source-address [ source-port ] [ destination destination-address [ destination-port ] ] [ verbose ]

display nat session destination destination-address [ destination-port ] [ verbose ]

Parameters

Parameter

Description

Value

all

Displays all entries in the NAT mapping table.

-

verbose

Displays detailed information about the NAT mapping table.

-

number

Displays the number of entries in the NAT mapping table.

-

protocol { protocol-name | protocol-number }

Displays the NAT mapping table with a specified protocol type or port number.

  • The value of protocol-name can be icmp, tcp, or udp.
  • The value of protocol-number is an integer that ranges from 1 to 255.

source source-address [ source-port ]

Specifies the source IP address and port number before the NAT translation.

  • source-address: The value is in dotted decimal notation.
  • source-port: The value is an integer that ranges from 1 to 65535.

destination destination-address [ destination-port ]

Specifies the destination IP address and port number before the NAT translation.

  • destination-address: The value is in dotted decimal notation.
  • destination-port: The value is an integer that ranges from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

This command displays information about the NAT mapping table. You can view information about all entries or display information by specifying keywords. The entries in a NAT mapping table are triggered by service packets. If the device does not receive any service packet, no entry is generated.

Example

# Display details about all entries in the NAT mapping table.

<Huawei> display nat session all verbose
-------------------------------------------------------------------------------
Pro    SrcAddr:Port     DestAddr:Port    NewSrcAddr:Port  NewDestAddr:Port 
-------------------------------------------------------------------------------
TCP(6) 10.18.11.253:50943
                        10.18.11.1:21    10.18.11.253:50943
                                                          192.168.1.2:21      
       TTL:600,SrcVpn:-,DestVpn:-
TCP(6) 10.18.11.253:50950
                        10.18.11.1:3821  10.18.11.253:50950
                                                          192.168.1.2:3821    
       TTL:600,SrcVpn:-,DestVpn:-
-------------------------------------------------------------------------------
Total : 2
Table 6-78  Description of the display nat session all verbose command output

Item

Description

Pro

Protocol type.

SrcAddr:Port

Source address and service port number before the translation.

DestAddr:Port

Destination address and service port number before the translation.

NewSrcAddr:Port

Source address and service port number after the translation.

NewDestAddr:Port

Destination address and service port number after the translation.

TTL

Time to live of the mapping table entries.

SrcVpn

Source VPN instance name.

The device does not support this object.

DestVpn

Destination VPN instance name.

The device does not support this object.

Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 202218

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next