Specifications
NAT Configuration Examples
September 08, 2010 Page 14 of 18
System(su-config-intf-vlan.0.10)->exit
System(rw-config)->
EnableNAToutsideinterface:
System(rw-config)->interface vlan 100
System(su-config-intf-vlan.0.100)->ip nat outside
System(su-config-intf-vlan.0.100)->exit
System(rw-config)->
Enable Static Translation of Inside Source Addresses
EnabletheNATstatictranslationoftheinsidesourceaddress:
System(rw-config)->ip nat inside source static 10.1.1.1 200.1.1.1
EnabletheNAPTstatictranslationoftheinsidesourceaddress:
System(rw-config)->ip nat inside source static tcp 10.1.1.2:125 200.1.1.2:1025
NAT Dynamic Configuration Example
ThisexamplestepsyouthroughaNATDynamicConfigurationforbothNATandNAPT
translationmethods.SeeFigure 6onpage 15 foradepictionoftheexamplesetup.
OurdynamicNATconfigurationexampleconfiguresfourclients:Client1andClient2withNAT
translationandClient3andClient4withNAPT translation.ThetwoNAT
clientsareonthe
internalprivatenetworkVLAN10interfaceandcommunicatewithServer1overtheexternal
publicnetworkVLAN100interface.ThetwoNAPTclientsareontheinternalprivatenetwork
VLAN20andcommunicatewithServer1overtheexternalpublicnetworkVLAN200interface.
NATisenabledonVLAN
10andVLAN20asinsideinterfaces.NATisenabledonVLAN100and
VLAN200asoutsideinterfaces.ThesearetheonlyVLANsoverwhichtranslationoccursforthe
dynamicportionofthisconfigurationexample.
ToconfigureClient1andClient2for dynamicNATtranslationontheNATrouter,wedefine
access‐list1topermitthelocalIPaddresses10.1.1.1and10.1.1.2.WethenconfiguretheNAT
translationNATpoolnatpoolwiththeglobaladdressrangeof200.1.1.1to200.1.1.2.Wethen
enabledynamictranslationofinsideaddressesassociatingaccess‐list1withtheNATpool
natpool.