Device Interfaces
A key concept in all NAT translations is identifying the
internal (inside) interface(s) and the external (outside) interface(s). NAT
needs to know which interfaces are connected to inside networks and which are
connected to outside networks. Only packets moving between inside and outside
interfaces can be translated. At least one inside interface and one outside
interface for each border router must be defined. The following configuration
additions would be typical for a perimeter router with a single serial
connection to the Internet and a single LAN:
interface Serial0/0
ip nat outside
!
interface FastEthernet0/0
ip nat inside
Outside interfaces should never be included in internal route
tables and must remain unknown to internal hosts. Similarly, internal addresses
should never be advertised or shared with the outside world. The internal
interface typically is either the default gateway for hosts that share that
network or the next-hop address for default routes set on other internal
routers.