How do I configure the AR router to map multiple internal IP addresses to external IP addresses using a NAT address pool

0

A Huawei AR router can use the NAT address pool to implement mapping between internal IP addresses and public IP addresses in the public address pool. The configuration is as follows:
1. Configure a NAT address pool on the router.
[Huawei] nat address-group 1 202.169.10.100 202.169.10.200
2. Configure an ACL rule to permit the internal address segment that allows NAT translation.
[Huawei] acl 2000
[Huawei-acl-basic-2000] rule 5 permit source 192.168.20.0 0.0.0.255
[Huawei-acl-basic-2000] quit
3. Associate outbound NAT with an address pool on an outbound interface
[Huawei] interface gigabitethernet 3/0/0
[Huawei-GigabitEthernet3/0/0] ip address 202.169.10.1 24
[Huawei-GigabitEthernet3/0/0] nat outbound 2000 address-group 1
[Huawei-GigabitEthernet3/0/0] quit

Other related questions:
How do I configure the AR router to map multiple internal IP addresses to external IP addresses using Easy IP
A Huawei AR router can use Easy IP to implement mapping between internal IP addresses and public IP addresses. Internal users access the Internet by performing Easy IP on GE0/0/1.The configuration is as follows: 1.Configure an ACL rule and configure NAT on the internal network address segment 192.168.0.0/24 . [Huawei] acl 2000 [Huawei-acl-basic-2000] rule 5 permit source 192.168.0.0 0.0.0.255 [Huawei-acl-basic-2000] quit 2. Assign IP addresses to interfaces on the router. [Huawei] interface ethernet0/0/1 [Huawei-Ethernet0/0/1] ip address 192.168.0.1 24 [Huawei-Ethernet0/0/1] quit [Huawei] interface gigabitethernet 3/0/0 [Huawei-GigabitEthernet3/0/0] ip address 200.100.1.2 24 [Huawei-GigabitEthernet3/0/0] quit 3. Configure outbound NAT in Easy IP mode on the outbound interface. [Huawei] interface gigabitethernet 0/0/1 [Huawei-GigabitEthernet0/0/1] nat outbound 2000 [Huawei-GigabitEthernet0/0/1] quit

How do I configure the AR router to map multiple public IP addresses to private IP addresses of internal servers
A Huawei AR router can use NAT to configure the mapping between public IP addresses and internal IP addresses. 1. Configure the mapping between the public network address and internal network address of the same network segment on the same interface. [Huawei] interface GigabitEthernet2/0/0 [Huawei-GigabitEthernet2/0/0] nat server protocol tcp global 202.10.1.3 www inside 192.168.0.100 8080 [Huawei-GigabitEthernet2/0/0] nat server protocol tcp global 202.10.1.5 www inside 192.168.0.100 8090 [Huawei-GigabitEthernet2/0/0] quit 2. Configure the mapping between addresses of different segments and internal network address on different interfaces. [Huawei] interface GigabitEthernet2/0/0 [Huawei-GigabitEthernet2/0/0] nat server protocol tcp global 201.10.1.3 www inside 192.168.0.100 8080 [Huawei-GigabitEthernet2/0/0] quit [Huawei] interface GigabitEthernet3/0/0 [Huawei-GigabitEthernet3/0/0] nat server protocol tcp global 202.20.1.5 www inside 192.168.0.100 8080 [Huawei-GigabitEthernet3/0/0] quit

Configure NAT on the AR router to allow internal hosts to access internal servers using an external IP address
All models of Huawei AR routers in V200R003C01 and later versions allow internal and external users to access internal servers by configuring static NAT. GE1/0/0 on the router connects to the internal network and its IP address is 192.168.1.1/24. GE2/0/0 on the router connects to the external network and its IP address is 11.11.11.1/8. The internal server has an internal IP address 192.168.1.2/24 and an external IP address 11.11.11.6. The internal host at 192.168.1.3/24 wants to access the internal server. The configuration details on the AR router are as follows: 1. Assign IP addresses to interfaces on the router. [Huawei] interface GigabitEthernet1/0/0 [Huawei-GigabitEthernet1/0/0] ip address 192.168.1.1 24 [Huawei-GigabitEthernet1/0/0] quit [Huawei] interface GigabitEthernet2/0/0 [Huawei-GigabitEthernet2/0/0] ip address 11.11.11.1 8 [Huawei-GigabitEthernet2/0/0] quit 2. Configure a default router to ensure interconnection between internal users and the external network. [Huawei] ip route-static 0.0.0.0 0.0.0.0 11.11.11.2 3. Configure internal users to access internal servers. The internal host use 11.11.11.6 to access servers. NAT is implemented through GE1/0/0 and one-to-one NAT is configured on the internal network service only when service requests are initiated from the internal network. [Huawei] acl number 2000 [Huawei-acl-basic-2000] rule 5 permit ip source 192.168.1.0 0.0.0.255 destination 11.11.11.6 0 [Huawei-acl-basic-2000] quit [Huawei] interface GigabitEthernet1/0/0 [Huawei-GigabitEthernet1/0/0] nat static global 11.11.11.6 inside 192.168.1.2 netmask 255.255.255.255 [Huawei-GigabitEthernet1/0/0] nat outbound 2000 [Huawei-GigabitEthernet1/0/0] quit 4. Configure external users to access internal servers to ensure that external users use 11.11.11.6 to access internal servers. [Huawei] interface GigabitEthernet2/0/0 [Huawei-GigabitEthernet2/0/0] nat static global 11.11.11.6 inside 192.168.1.2 netmask 255.255.255.255 [Huawei-GigabitEthernet2/0/0] quit

Whether the public IP address mapped to the USG5530 must be configured for the external network port or NAT address pool
You only need to configure NAT Server for the mapping instead of configuring the public IP address for the external network port or NAT address pool.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top