Home / Notes / Easy IP NAT Configuration
NOTES · NAT / INTERNET ACCESS

Easy IP NAT on Huawei AR Routers: Small-Office Internet Access Step by Step

A small office with only one public IP address, configured so every internal host can reach the internet through it — interface addressing, the default route, an ACL that decides who gets translated, Easy IP outbound NAT, verification commands, and how to add NAT Server port mapping on top of the same public address to publish an internal service.

By the AtlasCommTech engineering team — 13 years of carrier & enterprise network deployments · Updated July 2026

Why Easy IP Fits This Scenario

One public IP address, a whole office that needs to get online — Easy IP is the direct fit, not a workaround.

A small office or branch usually doesn't have a spare public IP address sitting around. The one address on the router's outbound interface is already doing its job — carrying the router's own traffic, maybe already used by another feature. Easy IP solves this without asking for anything more: it reuses the outbound interface's own IP address as the translated address for every internal host, so there's no separate address pool to size, allocate or run out of.

Below is the configuration this is based on — a router with one public-facing interface and one internal LAN, configured so internal hosts share that single public address to reach the internet, with one host deliberately excluded — plus how to layer NAT Server port mapping on top of the exact same public address so an internal service can be reached from outside.

Topology and Addressing

One router, one public interface, one internal segment — with a single host carved out of the ACL that drives the translation.

Internal LAN 192.168.0.0/24 Host 192.168.0.200 — allowed Host 192.168.0.3 — blocked Eth0/0/1 · 192.168.0.1/24 Router Easy IP outbound NAT GE0/0/1 · 1.1.1.2/24 Internet Peer · 1.1.1.1/24

Diagram labels are kept in English for engineering clarity.

Addressing

ItemValue (this example)
Public (WAN) interface — GigabitEthernet0/0/11.1.1.2/24
Peer address on the public network1.1.1.1/24
Internal gateway interface — Ethernet0/0/1192.168.0.1/24
Internal LAN segment192.168.0.0/24
Host excluded from internet access192.168.0.3

ACL 2000 — What Gets Translated

RuleMeaning
rule 5 deny source 192.168.0.3 0Explicitly excludes this one host from NAT — it never gets translated, so it never reaches the internet through this router.
rule 6 permit source 192.168.0.0 0.0.0.255Everyone else on the 192.168.0.0/24 segment is eligible for translation.

Step-by-Step Configuration

Four moves: interface addressing, the ACL that scopes translation, Easy IP outbound NAT on the public interface, and a default route back to the ISP.

  1. Configure the internal gateway interface's IP address — this is the address internal hosts use as their default gateway.
  2. Configure the public (WAN) interface's IP address — this is the address Easy IP will reuse for every translated host.
  3. Configure an ACL that defines which internal addresses are eligible for translation — and, if needed, which ones are explicitly excluded.
  4. Apply nat outbound with that ACL on the public interface — this is what makes it Easy IP: no address-group is referenced, so the interface's own address is used.
  5. Configure a default static route pointing at the ISP's gateway address, so translated traffic actually has a path out.
#
 sysname Router
#
acl number 2000
 rule 5 deny source 192.168.0.3 0
 rule 6 permit source 192.168.0.0 0.0.0.255
#
interface Ethernet0/0/1
 undo portswitch
 ip address 192.168.0.1 255.255.255.0
#
interface GigabitEthernet0/0/1
 ip address 1.1.1.2 255.255.255.0
 nat outbound 2000
#
ip route-static 0.0.0.0 0.0.0.0 1.1.1.1
#

Adding NAT Server: Publishing an Internal Service on the Same Public Address

When there's only one public IP address, the router's outbound interface has to double as the address the outside world uses to reach an internal server — current-interface makes that possible, on different ports.

  1. Enable NAT ALG for FTP if the published service is FTP or another multi-channel protocol — HTTP doesn't need this, FTP does.
  2. On the same public interface, add nat static entries that map specific public ports on current-interface to an internal server's address and port — one entry per service.
  3. Keep the Easy IP nat outbound rule in place on the same interface — outbound traffic and inbound service mapping coexist on the one public address without conflict.
#
 sysname Router
#
acl number 3000
 rule 5 permit ip source 192.168.1.0 0.0.0.255
#
nat alg ftp enable
#
interface GigabitEthernet0/0/1
 undo portswitch
 ip address 1.1.1.1 255.255.255.0
 nat static protocol tcp global current-interface ftp inside 192.168.1.2 ftp netmask 255.255.255.255
 nat static protocol tcp global current-interface 9080 inside 192.168.1.3 www netmask 255.255.255.255
 nat outbound 3000
#
interface GigabitEthernet0/0/2
 undo portswitch
 ip address 192.168.1.1 255.255.255.0
#
ip route-static 0.0.0.0 0.0.0.0 1.1.1.2
#
return

This example publishes an FTP server on port 21 and a web server mapped to public port 9080, both reachable through the single public address 1.1.1.1 — internal users on GE0/0/2's subnet still go out through the same Easy IP rule.

4 Configuration Gotchas

The ones that turn a five-minute Easy IP setup into a half-day of head-scratching.

1. The Well-Known Port Warning Is Not Just a Formality

SYMPTOMConfiguring nat static protocol tcp global current-interface 21 ... triggers a console warning and a yes/no prompt instead of completing immediately.

CAUSEPort 21 falls inside the well-known port range (1–1023). The device is confirming, in case another feature on the router already depends on that port range being free.

FIXRead the warning, don't just reflex-confirm it — then answer y to continue.

Warning: The port is well-known(1~1023) port. If you continue it may cause function
failure.
Are you sure to continue?[Y/N]: y

2. Forgetting NAT ALG Breaks FTP, Not HTTP

SYMPTOMThe web-mapped service (public port 9080 to internal port 80) works fine from outside, but the FTP mapping (port 21) fails or hangs on data transfer.

CAUSEFTP is a multi-channel protocol — it negotiates a second connection for data transfer, and that negotiation embeds IP/port information inside the payload that plain NAT can't rewrite. HTTP is single-channel and never runs into this.

FIXEnable NAT ALG for FTP specifically; leave it off for HTTP, since HTTP doesn't need it and enabling ALGs you don't need adds inspection overhead for nothing.

nat alg ftp enable

3. ACL Rule Order Decides Who Actually Gets Blocked

SYMPTOMThe host meant to be excluded from internet access (192.168.0.3 in this example) still gets out.

CAUSEAn ACL evaluates rules in rule-number order and stops at the first match. If a broad permit rule has a lower number than the specific deny rule for that host, the permit matches first and the deny is never reached.

FIXGive the specific deny rule the lower rule number so it's evaluated before the broad permit — exactly as in this example: rule 5 deny before rule 6 permit.

acl number 2000
 rule 5 deny source 192.168.0.3 0
 rule 6 permit source 192.168.0.0 0.0.0.255

4. Easy IP Alone Doesn't Get You DNS Resolution

SYMPTOMInternal hosts can reach an internet server by its IP address, but browsing a website by name fails.

CAUSEEasy IP only handles the address translation for the traffic itself — it says nothing about how internal hosts resolve domain names in the first place.

FIXConfigure DNS separately for internal hosts — either by pointing them at a public DNS server, or per the AR series' own IP service configuration guide referenced in the source material this note is based on.

Related solution designs

How to Confirm It's Actually Working

“easyip” in the Type column is necessary but not sufficient — check that the excluded host is actually excluded, too.

  1. Run display nat outbound on the router. The Type column should read easyip for the ACL and interface configured above — that confirms Easy IP itself is active.
  2. From an included host, ping or browse to confirm internet reachability works; from the excluded host (192.168.0.3 in this example), confirm that it doesn't.
  3. If NAT Server port mapping was added, run display nat static to confirm the current-interface mappings show the correct inside address and port for each published service.
<Router> display nat outbound
 NAT Outbound Information:
 -----------------------------------------------------------
 Interface              Acl    Address-group/IP/Interface    Type
 GigabitEthernet1/0/0    2000    2.2.2.1                       easyip
 --------------------------------------------------------------------------
 Total : 1

The interface name and address shown above are from the source documentation's own display nat outbound sample for an Easy IP entry — expect your own output to show the interface and address from your configuration instead.

<Router> display nat static
 Static Nat Information:
 Interface       : GigabitEthernet0/0/1
 Global IP/Port  : current-interface/21(ftp) (Real IP : 1.1.1.1)
 Inside IP/Port  : 192.168.1.2/21(ftp)
 Protocol        : 6(tcp)
 VPN instance-name : ----
 Acl number      : ----
 Vrrp id         : ----
 Netmask         : 255.255.255.255
 Description     : ----

 Global IP/Port  : current-interface/9080 (Real IP : 1.1.1.1)
 Inside IP/Port  : 192.168.1.3/80(www)
 Protocol        : 6(tcp)
 VPN instance-name : ----
 Acl number      : ----
 Vrrp id         : ----
 Netmask         : 255.255.255.255
 Description     : ----

 Total : 2

Honest Limits of This Note

Honest Limits of This Note

This note is based on one worked configuration: a single router with one public interface, Easy IP outbound NAT scoped by a two-rule ACL, and an optional NAT Server port-mapping layer on the same public address. It doesn't cover NAT address-pool mode (a separate, larger address block instead of the interface's own address), VPN-instance NAT for multi-tenant setups, overlapping-address scenarios, or what happens once a second uplink enters the picture — that last one is covered in our dual-WAN failover and load-sharing configuration note.

Five Questions Worth Having an Answer For

Pulled from the same configuration cases this note is built on.

What's the actual difference between Easy IP and a NAT address pool?

Easy IP reuses the outbound interface's own IP address as the translated address for every host — no extra public address needed, but also only one address's worth of port capacity to share. A NAT address pool (nat outbound acl address-group) uses a separate, dedicated block of public addresses, which gives more simultaneous-session headroom but requires those addresses to actually be available to assign.

Can I still use NAT Server port mapping if I only have one public IP address, the same one Easy IP is using?

Yes — that's exactly the current-interface pattern. nat static protocol tcp global current-interface inside maps a specific public port on that same interface's address to an internal server, while nat outbound keeps handling outbound traffic from everyone else. Different services get different public ports on the one address.

Why does nat alg ftp enable matter but there's no equivalent step for HTTP?

FTP negotiates a second, separate connection for data transfer and embeds addressing information for that connection inside the application payload — plain NAT can't see or rewrite that. The ALG understands FTP well enough to fix it up. HTTP doesn't negotiate a second connection this way, so there's nothing for an ALG to fix.

Does the ACL in this example need to reference a VPN instance?

Not in this scenario — it's a single routing domain with no VPN instances involved. If your router does use VPN instances (for multi-tenant separation, for instance), the ACL rules do need to specify vpn-instance explicitly, or the NAT outbound rule won't match traffic from that instance at all.

My office is about to add a second internet uplink — does this Easy IP configuration still apply?

The Easy IP and ACL logic stays the same on each interface, but a second uplink introduces route selection and NAT-outbound placement questions this note doesn't cover — which link carries which traffic, and how failover or load sharing is configured. See our dual-WAN failover and load-sharing configuration note for that.

Only one public IP and a growing office?

Tell us your interface count, whether you need port mapping for any internal service, and we'll help you size the ACL and ports correctly.

WhatsApp an engineer →

Related Reading