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

AR Router Troubleshooting Guide

This Product Documentation provides guidance for maintaining AR Enterprise Router, covering common information collection and fault diagnostic commands, typical fault troubleshooting guide, and troubleshooting.
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).
How Do I Configure Port Mapping?

How Do I Configure Port Mapping?

Procedure

  • NAT server mode

    # Configure NAT server on public network interface GE0/0/1, to map the private IP address IP 192.168.20.2 and TCP port 8080 to the interface IP address and port 8080.

    <Huawei> system-view
    [Huawei] interface gigabitethernet 0/0/1
    [Huawei-GigabitEthernet0/0/1] nat server protocol tcp global current-interface 8080 inside 192.168.20.2 8080 
    
  • NAT static mode

    Interface view:

    # Map public address 1.1.1.1 and port 2000 in TCP packets to private address 10.10.10.1 and port 3000.

    <Huawei> system-view
    [Huawei] interface gigabitethernet 1/0/0
    [Huawei-GigabitEthernet1/0/0] nat static protocol tcp global 1.1.1.1 2000 inside 10.10.10.1 3000
    

    System view:

    # Map public IP address 1.1.1.1 and port 443 in TCP packets to private address 192.168.2.55.

    <Huawei> system-view
    [Huawei] nat static protocol tcp global 1.1.1.1 443 inside 192.168.2.55 netmask 255.255.255.255
    [Huawei] interface gigabitethernet 1/0/0
    [Huawei-GigabitEthernet1/0/0] nat static enable
More information

If a private network device needs to provide a specific service for public network devices using one or more ports, you can configure a mapping between a private IP address with port and a public IP address with port. Public network devices then can use the specified public IP address and port to access the service on the private network device. The mapping configuration can be implemented using the NAT server or NAT static mode. The NAT server mode translates only the IP address but not the port for access from the private network to the public network. The NAT static mode translates both the IP address and port for access from the private network to the public network.

Translation
Download
Updated: 2019-05-10

Document ID: EDOC1000079719

Views: 456314

Downloads: 4321

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