Huawei switch NAT technology for accessing the external network

Huawei NAT allows private network users to access public networks by translating private IP addresses to public IP addresses, supporting static, dynamic, and port-based translations.Overview of NAT on...

Huawei switch NAT technology for accessing the external network

Huawei NAT allows private network users to access public networks by translating private IP addresses to public IP addresses, supporting static, dynamic, and port-based translations.

Overview of NAT on Huawei Devices

Network Address Translation (NAT) is used to enable private network hosts to communicate with public networks while conserving public IPv4 addresses and enhancing security. NAT translates the source IP address of packets from private addresses to public addresses, allowing multiple internal hosts to share a single public IP if needed . Huawei devices support several NAT types:

  • Static NAT: One-to-one mapping between a private IP and a public IP. Useful when a fixed public IP is required for a specific internal host .
  • Dynamic NAT: Maps private IPs to public IPs from a pool dynamically. The mapping is temporary and changes with each session .
  • NAPT (Network Address and Port Translation): One public IP can serve multiple private IPs by translating both IP addresses and port numbers. This is ideal for large networks with limited public IPs .
  • Easy IP: Simplifies NAT configuration by using the interface IP as the public address, often used in scenarios where WAN IPs are dynamically assigned .

Working Principle

When a host on a private network sends a packet to the Internet, the Huawei switch/router performs the following steps:

  1. Receives the packet from the internal host.
  2. Checks the NAT rules and selects a public IP (and port if NAPT is used) from the configured pool.
  3. Translates the source IP (and port) to the public IP.
  4. Forwards the packet to the external network.
  5. Maintains a NAT table to map return traffic back to the original private host .

Configuration Example

A typical NAT configuration on Huawei devices involves:

  1. Defining a public IP address pool:

    nat address-group 1 192.168.34.100 192.168.34.200

  2. Creating an ACL to match internal traffic:

    acl 2000rule permit ip source 10.0.10.0 0.0.0.255rule permit ip source 10.0.20.0 0.0.0.255

  3. Applying NAT to the outbound interface:

    interface GigabitEthernet0/0/0nat outbound 2000 address-group 1

  4. Optional NAPT configuration for port translation:

    nat outbound 2000 address-group 1 no-pat

This setup allows multiple internal subnets to access the Internet using a shared public IP range while maintaining security and address reuse .

Best Practices

  • Use NAPT when public IPs are limited.
  • Avoid using the same interface IP for NAT and protocol interactions like BGP to prevent packet loss during congestion .
  • Ensure ACLs are properly configured to control which internal hosts can access external networks.
  • Monitor NAT session capacity and expand VSUP subcards if needed for high traffic environments . Huawei NAT technology provides a flexible and secure solution for connecting private networks to the Internet while efficiently managing IPv4 address resources.
Information
Sep 18, 2025

NAT Gateway Configuration Example

NAT Gateway Configuration Example NAT Gateway Introduction Network address translation (NAT) gateway: A NAT gateway

Information
Feb 10, 2026

NAT Design

NAT Design Network Address Translation (NAT) is an address translation technology that translates both the source and destination

Information
Nov 12, 2025

Configuring the NAT Service

Configuring the NAT Service Context Network Address Translation (NAT) is an address translation technology that translates both

Information
Aug 11, 2025

What Is NAT? What Are the NAT Types?

What Is Network Address Translation (NAT)? NAT translates the IP address in the IP datagram header of a packet

Information
Feb 05, 2026

01-05 NAT CONFIGURATION

Major transitional technologies such as classless inter-domain routing (CIDR) and private network addresses are used before the

Information
Oct 22, 2025

NAT Configuration

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010 CLI-based Configuration Guide - IP

Information
Aug 01, 2025

NAT Policy

Network address translation (NAT) refers to the process of translating the IP address in an IP data packet header into another IP

Information
Aug 09, 2025

01-13 NAT CONFIGURATION

Network Address Translation (NAT) translates IP addresses in the packet header into other IP addresses. Purpose. As the Internet

Information
Jan 15, 2026

Using a Public NAT Gateway and Direct Connect to Accelerate Internet Access

With Direct Connect, you can access a VPC on Huawei Cloud over high-performance, low-latency, and secure

Information
Nov 19, 2025

Configuring the NAT Service

Context Network Address Translation (NAT) is an address translation technology that translates both the source and destination IP

Information
Nov 17, 2025

Lab-Huawei/DHCP-Redirect-Traffic-and-NAT.md at main

These 2 departments assign IP addresses using Dynamic Host Configuration Protocol (DHCP) from DHCP server which is not

Information
Nov 01, 2025

Huawei NAT Configuration Example! | Static NAT | Dynamic NAT

In Huawei NAT Configuration, we will configure Network Address Translation on Huawei Routers with eNSP Simulator. We will use

Information
Apr 01, 2026

01-13 NAT CONFIGURATION

NAT has the following advantages: Translates a large number of private addresses into a few public IP addresses, resulting in

Information
Aug 19, 2025

Huawei static NAT, dynamic NAT, NAPT, Easy NAT configuration

Dynamic NAT: Basic NAT It is required that each current connection must correspond to a public IP address. Only address

Information
Feb 12, 2026

01-02 NAT CONFIGURATION

The source NAT function can be implemented by configuring a NAT policy that consists of post-NAT addresses (addresses in an

Information
Jul 15, 2026

NAT Configuration

When private network users access a public network through the NAT device, they share an external network address. For this

Information
Apr 08, 2026

NAT Gateway_Public NAT gatetway_Private NAT gateway_Huawei

Use a private NAT gateway to allow for communications between a VPC and an on-premises data center without changing your on

Information
Apr 27, 2026

What Is Network Address Translation (NAT)?

Network address translation (NAT) is a technique used by organizations to enable multiple devices to share a single public IP

Information
Dec 11, 2025

Example for Configuring NAT Static and Outbound NAT to Implement

Example for Configuring NAT Static and Outbound NAT to Implement Communication Between Public Network Users

Information
Nov 03, 2025

Using a Public NAT Gateway and Direct Connect to Accelerate

You can add SNAT or DNAT rules to a public NAT gateway to enable a large number of on-premises servers

Information
May 30, 2026

Huawei-NAT technology easy IP principle configuration or detailed

The network address translation technology NAT (Network Address Translation) is mainly used to realize the function of the host

Information
Oct 31, 2025

Configuring External Networks

Configuring External Networks Context In the campus network virtualization solution, to enable the communication between the

Information
Sep 04, 2025

NAT Gateway Configuration Example

Using SNAT to Access an Extranet If multiple cloud servers in a VPC need to access the external network, they can share an EIP

Information
May 01, 2026

Example for Configuring NAT Server to Enable an Internal Server to

Networking Requirements As shown in Figure 3-82, an enterprise''s internal server provides services for external users. The

Information
Jul 14, 2026

Configuring Internal Users to Access the External Server with an

As shown in Figure 3-7, the router functions as the gateway of a company, and the internal network segment has overlapping IP

Information
Oct 15, 2025

NAT Policy Configuration

Network Address Translation (NAT) translates the IP address in an IP packet header into another IP address. The NAT policy

Information
May 20, 2026

Huawei NAT Configuration Example! | Static NAT | Dynamic NAT

In this first NAT configuration example, we will focus on Static NAT Configuration on Huawei Routers. As we have explained above,

Information
Nov 10, 2025

Configuring Access to Internal Hosts Through Public IP Addresses

Configuring access to internal hosts through public IP addresses allows external users to communicate with intranet users using a

Fiber Optic Accessories & Infrastructure Insights

Need Reliable Fiber Optic Protection Solutions?

Contact us today for product inquiries, custom assemblies, or technical support