Got it

NAT port-range mapping not working correctly [Troubleshooting Series Case 58]

1430 0 0 0 0

Hi there, everybody!

This post addresses the issue of a NAT port-range mapping not working correctly, as part of the Troubleshooting Series on the Community. Please see more details as you read further down this post.


  • Pc needs to access the Internet.

  • Pc1 needs to configure a NAT server for tcp port 3443 by using global IP address

  • Pc2 need to configure a nat server for tcp port 40000 to 45000 by using the global IP address

Figure 1-1. NAT not working correctly



A customer can't get access to the Internet and pc2 can't do a NAT port-range mapping.


 sysname Router                                                                        #                                                                               
interface GigabitEthernet0/0/1
 ip address   
 nat server protocol udp global current-interface 3443 inside 3443 
interface GigabitEthernet0/0/2    
 ip address


Troubleshooting procedure

Step 1. Check whether Pc1 and Pc2 can ping If they can't ping it, check the router and NAT configuration.

Step 2. To access the Internet, you need to configure NAT outbound, as follows:

Acl 3000
   rule 5 permit ip
interface GigabitEthernet0/0/1
   nat outbound 3000

Step 3. To configure port-range NAT mapping on PC2, you need to configure as follows:

acl 3333
     rule 5 permit udp destination-port range 40000 45000
interface GigabitEthernet0/0/1
    nat server protocol udp global inside acl 3333



  • Customer didn't configure NAT outbound for the Internet access.

  • On V2R7, there's a limitation if a customer wants to use port-range NAT mapping. Port range needs ACL to be define. Also, if the NAT is configured with the ACL, the global IP address can't be used for another NAT command again.

  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.