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

CLI-based Configuration Guide - IP Service

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document describes the concepts and configuration procedures of IP Service features on the device, and provides the configuration examples.
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).
What Are the Differences Between NAT Server and NAT Static Modes?

What Are the Differences Between NAT Server and NAT Static Modes?

For the access from the public network to the private network, the NAT server and NAT static modes are the same. For the access from the private network to the public network, the NAT server mode translates only the IP address, while the NAT static mode translates both the IP address and port.

# Configure NAT server on the public network interface Gigabitethernet 0/0/1.
<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei] ip address 1.1.1.1 24
[Huawei-GigabitEthernet0/0/1] nat server protocol tcp global current-interface 3000 inside 10.1.1.100 1000 
Figure 5-24  Diagram of the NAT server mode

For the access from the private network to the public network, the When the NAT server proactively accesses the Internet, NAT server mode translates only the IP address. That is, when the source IP address of the traffic matches the private IP address in the NAT server rule, the NAT server mode translates the IP address regardless of the port number.

# Configure NAT static on the public network interface Gigabitethernet 0/0/1.
<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei] ip address 1.1.1.1 24
[Huawei-GigabitEthernet0/0/1] nat static protocol tcp global current-interface 3000 inside 10.1.1.100 1000 
Figure 5-25  Diagram of the NAT static mode

For the access from the private network to the public network, the NAT static mode translates both IP address and port.

The enterprise requires that private users can access the public server and public users can access the private server. If both the NAT server and Easy IP functions are configured on the router, since the NAT server mode translates only the IP address for the access from the private network to the public network, flow tables may fail to be established. In this case, you are advised to change NAT server to NAT static.

Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069333

Views: 33552

Downloads: 167

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