Jooomla  - Article Details
DIRECTORY STATISTICS
  • Active Links: 1866
  • Pending Links: 0
  • New Today: 0
  • Total Categories: 21
  • Sub Categories: 773
POPULAR TAGS
 

Configure NAT Using Port Address Translation

Date Added: March 05, 2008 06:50:24 AM

Network Address Translation, better known simply as NAT, allows an outside address to represent a single or many inside addresses. There are several forms of NAT, but one of the most common is called NAT overloading, Port Address Translation, or simply PAT. PAT provides a many-to-one mapping with many inside private addresses mapped to one outside public address. We often see PAT used in home firewalls and routers to allow several home computers and perhaps a gaming console to use private addresses such as 192.168.1.1-100 and share a single registered public address on the Internet. The process is made possible by appending different port numbers to the source and destination addresses to create a unique connection. Given that there are more than 65,000 port numbers, you'll likely run out of bandwidth or system resources long before running out of translation slots!

Here are the four steps to configuring Port Address Translation (each step starts in configuration mode ("config t"):
1.ᅠ Configure nat on your inside interface:
ᅠᅠᅠᅠ int e0/0
ᅠᅠᅠᅠ ip nat inside
2.ᅠ Configure nat on your outside interface:
ᅠᅠᅠᅠ int e0/1
ᅠᅠᅠᅠ ip nat outside
3.ᅠ Configure an access control list to allow the inside traffic to use NAT:
ᅠᅠᅠ access-list 101 permit ip any any
4.ᅠ Enable NAT overloading (PAT) on the outside interface:
ᅠᅠᅠ ip nat inside source list 101 interface e0/1 overload

In this example, the "ip nat inside" and "ip nat outside" statements are used to tell the router which interface is considered inside and which interface is considered outside for the purpose of NAT. Interface Ethernet 0/0 is inside and Interface Ethernet 0/1 is outside. Your interfaces will probably different, for example you might be configuring "f0/0" or "gigabit 0/1", etc.

The access control list statement tells the router to permit all IP traffic to flow from any source to any destination. The number (101) is simply an ID that must match the number used in the "ip nat" statement. (Note that, in this case, the number must fall between 100 and 199 inclusive.)

The "ip nat insisde source list" statement tells the router which access control list to use to know the traffic to permit (access-list 101), the interface on which NAT will be performed (interface ethernet 0/1) and the form of NAT to perform (overload).

This configuration will allow any host on the inside subnet to share the outside interface for the purpose of going on the Internet. There is no restriction as to the type of traffic, nor are there any restricted hosts. Obviously, this configuration would only be acceptable in a small office or home type of network. Even then, you might want to limit hosts' access to the Internet by creating a more restrictive access control list.


Don R. Crawley, CCNA-certified, is president and chief technologist at soundtraining.net, the Seattle training firm specializing in business skills and technical training for IT professionals. He works with IT pros to enhance their work, lives, and careers. For a free subscription to soundbytes, Don's 60-second e-zine for IT pros with musings, rants, and how-to guides, click here.

 
SEARCH
LATEST FEATURED LINKS
Dunsland Cross Wind Farm
Dunsland Cross is a small rural area of north Devon. The Dunsland Turbines Opposition Group (DTOG) is fighting a proposed development of 4... - Read more
Gadget Advisor Computer Software, Hardware, and Tech Releases
Hand-picked, best of best technology and gadget news that appeals to the cool factor as well as the practicality of advancements or must-have... - Read more
Elegant Wordpress Themes
Premium Wordpress themes for affordable prices. Each theme is compatible with the latest Wordpress software, as well as with the most popular... - Read more
Stop Smoking
A comprehensive guide to help you stop smoking including a support forum and product guide. Why not join today and get help with your quit smoking... - Read more
Wind Watch
National Wind Watch is a nonprofit organization that raises awareness of the shortcomings of industrial wind energy and the negative impacts of its... - Read more
Blinds
Sales and customer service for wooden blinds, vertical, roller, roman, velux and venetian blinds. - Read more