Specifications
NAT Configuration Examples
September 08, 2010 Page 13 of 18
NAT Static Configuration Example
ThisexamplestepsyouthroughaNATstaticconfigurat ionforbothNATandNAPTtranslation
methods.SeeFigure 5onpage 13foradepictionoftheNATstaticconfigurationexamplesetup.
OurstaticNATconfigurationexampleconfigurestwoclients:Client1withNATtranslationand
Client2withNAPTtranslation. Bothclientsareon
theinternalprivatenetworkVLAN 10interface
andcommunicatewithServer1overtheexternalpublicnetworkVLAN100interface.NAT is
enabledonVLAN10asaninsideinterface.NATisenabledonVLAN100asanoutsideinterface.
ThesearetheonlyVLANsoverwhichtranslationoccursforthestatic
portionofthisconfiguration
example.
ToconfigureClient1ontheNATrouter,weenablestaticNATtranslationoftheinsidesource
addressspecifyinglocalIPaddress10.1.1.1andglobalIPaddress200.1.1.1.Server1willonlysee
Client1asIPaddress200.1.1.1.
ToconfigureClient2ontheNATrouter,weenablestatic
NATtranslationoftheinsidesource
addressspecifyinglocalIPaddress10.1.1.2:125andglobalIPaddress200.1.1.2:1025.Server1will
onlyseeClient2asIPaddress200.1.1.2:1025.
Figure 5 NAT Static Configuration Example
Enable NAT Inside and Outside Interfaces
EnableNATinsideinterface:
System(rw)->configure
System(rw-config)->interface vlan 10
System(su-config-intf-vlan.0.10)->ip nat inside
Server1
200.1.1.50
200.1.1.50:80
NAT
ROUTER
DA: 200.1.1.50:80
SA: 200.1.1.2:1025
DA: 200.1.1.2:1025
SA: 200.1.1.50:80
DA: 200.1.1.50:80
SA: 10.1.1.2:125
DA: 10.1.1.2:125
SA: 200.1.1.50:80
Client1
10.1.1.1
DA: 200.1.1.50
SA: 200.1.1.1
VLAN 100
VLAN 10
External
Public
Network
Internal
Private
Network
DA: 200.1.1.1
SA: 200.1.1.50
DA: 200.1.1.50
SA: 10.1.1.1
DA: 10.1.1.1
SA: 200.1.1.50
Client2
10.1.1.2.125