Solved

Configure multiple ports for NAT in one command?

Posted on 2008-09-29
6
856 Views
Last Modified: 2013-12-27
Im trying to configure a block of ports to be NAT'd to a machine on the internal network. Its for our new VoIP system. Ports 10000-10500 need to be open and I dont want to have to write this for every single port:

ip nat inside source static udp 192.168.43.230 10000 interface FastEthernet0 10000

Is there a form of this command that will allow to specify the entire range of ports to be NAT'd?
0
Comment
Question by:vizient
6 Comments
 
LVL 3

Accepted Solution

by:
TheTechMan earned 500 total points
ID: 22597874
Try creating an IP NAT POOL:

ip nat pool POOL1 192.168.43.230  192.168.43.230  netmask 255.255.255.0 type rotary
ip nat inside source list 1 interface FastEthernet0 overload
ip nat inside destination list MYNATPORTS pool POOL1
!
ip access-list extended MYNATPORTS
 permit udp any any range 10000 15000
0
 

Author Comment

by:vizient
ID: 22598064
Thanks! I will test it out tonight and let you know how it goes tomorrow morning.
0
 
LVL 8

Expert Comment

by:Jay_Gridley
ID: 22598222
If this works I'll add this to my knowledgebase... I've had this same problem myself in the past ;-)
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 12

Expert Comment

by:Pugglewuggle
ID: 22598348
Yes, that will work - it's called "Policy NAT" - basically where you use an Access-List to create a "policy" and then apply it to a NAT statement.
Let me know if you need any more help!
Cheers! :-)
0
 
LVL 3

Expert Comment

by:TheTechMan
ID: 23671413
Hello, did my answer work for you?  Please close out the question if you can?
0
 
LVL 3

Expert Comment

by:TheTechMan
ID: 23671423
Whooops... sorry...  I misread something.  I'm glad it helped out, and I'm sorry for the confusion here.  Take care!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently purchased a Bluetooth headset called the Music Jogger (model BSH10). The control buttons on it look like this: One of my goals is to use it as the microphone and speakers for Skype calls. In that respect, it works well. However, I …
Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question