Study guide

12.3 Network Address Translation (NAT/PAT) & VRF-Aware NAT

CCNP Enterprise ENCOR 350-401

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: Enterprise Architecture & Hierarchical Design

1.1 Enterprise Network Design Models & Hierarchical Campus Architecture 1.2 On-Premises, Cloud & Hybrid Infrastructure Deployment Models 1.3 Hardware Switching Architecture & Packet Forwarding

2 Chapter 2: Enterprise Quality of Service (QoS)

2.1 QoS Components: Classification, Marking & Trust Boundaries 2.2 QoS Policy: Queuing, Shaping, Policing & Interpreting MQC Output

3 Chapter 3: Software-Defined WAN (Catalyst SD-WAN)

3.1 Cisco Catalyst SD-WAN Architecture & Orchestration 3.2 SD-WAN Policies, Traffic Engineering & Application-Aware Routing

4 Chapter 4: Software-Defined Access (Catalyst SD-Access)

4.1 Catalyst SD-Access Fabric Architecture & Plane Separation 4.2 Cisco TrustSec, Security Group Tags (SGT), SXP & MACsec

5 Chapter 5: Device & Data Path Virtualization

5.1 Server & Network Device Virtualization 5.2 VRF-Lite & Virtual Routing Multi-Tenancy 5.3 GRE & IPsec Tunnel Virtualization Mechanics

6 Chapter 6: Network Virtualization & Overlay Technologies

6.1 LISP Architecture & EID-to-RLOC Mapping Mechanics 6.2 VXLAN & EVPN Overlay Architecture

7 Chapter 7: Layer 2 Infrastructure & Switching

7.1 VLANs, 802.1Q Trunking & VTPv3 7.2 Spanning Tree Protocol Mechanics 7.3 Advanced STP Protection Mechanisms 7.4 EtherChannel Link Aggregation

8 Chapter 8: Layer 3 Routing Foundations & EIGRP

8.1 IP Routing Foundations & Administrative Distance 8.2 Enhanced Interior Gateway Routing Protocol (EIGRP)

9 Chapter 9: OSPFv2 & OSPFv3 Operations

9.1 OSPFv2 Architecture & Neighbor State Machine 9.2 OSPF LSA Types & Multi-Area Design 9.3 OSPFv3 for IPv4 and IPv6 Address Families

10 Chapter 10: Border Gateway Protocol (BGP)

10.1 BGP Architecture, Neighbor States & Peering 10.2 BGP Path Attributes & Best Path Selection Algorithm

11 Chapter 11: Policy-Based Routing & Route Redistribution

11.1 Policy-Based Routing (PBR) & Route Maps 11.2 Route Redistribution & Loop Prevention

12 Chapter 12: IP Services & High Availability

12.1 First Hop Redundancy Protocols (HSRP, VRRP & GLBP) 12.2 Network Time Protocol (NTPv4) & Precision Time Protocol (PTP) 12.3 Network Address Translation (NAT/PAT) & VRF-Aware NAT

13 Chapter 13: IP Multicast Operations

13.1 IP Multicast Addressing, Group Management (IGMPv1/v2/v3) & IGMP Snooping 13.2 Protocol Independent Multicast (PIM-SM, PIM-SSM & Bidir-PIM) 13.3 Rendezvous Point (RP) Distribution Mechanisms

14 Chapter 14: Network Assurance & Monitoring

14.1 Diagnostic Utilities, Conditional Debugging & Path MTU Discovery 14.2 Syslog Architecture, Logging Facilities & Severity Levels 14.3 SNMPv1/v2c/v3 Security & Flexible NetFlow (FNF) Architecture 14.4 Switched Port Analyzer (SPAN, RSPAN, ERSPAN) & IP SLA Object Tracking

15 Chapter 15: Catalyst Center Assurance & Controller Operations

15.1 Cisco Catalyst Center (DNA Center) Assurance & AI Network Analytics 15.2 Cisco Catalyst Center Device Onboarding & Software Image Management (SWIM)

16 Chapter 16: Enterprise Security & Access Control

16.1 Device Hardening, AAA Architecture & RADIUS/TACACS+ 16.2 Access Control Lists (ACLs) for Infrastructure Security 16.3 Control Plane Policing (CoPP) & Control Plane Protection (CPPr) 16.4 Layer 2 Infrastructure Security Features 16.5 IEEE 802.1X Port-Based Authentication & MAB

17 Chapter 17: Threat Defense & API Security

17.1 Enterprise VPN Technologies (DMVPN Phase 1/2/3 & FlexVPN) 17.2 Next-Generation Threat Defense & Secure Access Service Edge (SASE)

18 Chapter 18: Network Automation, Programmability & Data Modeling

18.1 Python Fundamentals for Network Engineers & Cisco Libraries 18.2 YANG Data Modeling Language (RFC 6020/7950) & Model Types 18.3 REST API Architecture, HTTP Verbs, Security & Cisco Controller APIs 18.4 Model-Driven Telemetry (MDT) & NETCONF/RESTCONF Operations

19 Chapter 19: Orchestration, EEM & AI Operations

19.1 Configuration Management & Infrastructure as Code (Ansible & Terraform) 19.2 Cisco Embedded Event Manager (EEM) & Intent-Based Networking

12.3 Network Address Translation (NAT/PAT) & VRF-Aware NAT

Key Takeaways Explain This Topic AI

Network Address Translation (NAT) preserves IPv4 address space by translating private RFC 1918 addresses into globally routable public IP addresses, categorized into Inside Local, Inside Global, Outside Local, and Outside Global.

Port Address Translation (PAT / NAT Overload) maps thousands of private Inside Local IP addresses to a single or small pool of Inside Global public IPs by tracking Layer 4 TCP/UDP port multiplexing across unique 5-tuple sessions.

Cisco IOS-XE evaluates NAT in a deterministic order of operations: Inside-to-Outside traffic executes Routing lookups BEFORE Source NAT translation, whereas Outside-to-Inside traffic executes Destination NAT translation BEFORE Routing lookups.

NAT Virtual Interface (NVI) eliminates the rigid architectural requirement for dedicated 'inside' and 'outside' interface tagging by using 'ip nat enable' to route and translate across any active interface.

VRF-Aware NAT isolates address translation tables per Virtual Routing and Forwarding instance, supporting Intra-VRF translations for isolated multi-tenant segments and Inter-VRF translations for shared Internet egress.

Last updated: August 2026

12.3 Network Address Translation (NAT/PAT) & VRF-Aware NAT

Core Blueprint Focus: Cisco 350-401 ENCOR v1.2 topic 3.3.b (configure NAT/PAT) requires candidates to configure and verify Network Address Translation (NAT), including Static NAT, Dynamic NAT, Port Address Translation (PAT / NAT Overload), and VRF-Aware NAT. Candidates must master Cisco four-address terminology, NAT Virtual Interface (NVI) operations, and the strict Cisco IOS-XE NAT order of operations.

IPv4 address depletion necessitated the widespread adoption of RFC 1918 private address spaces ( 10.0.0.0/8 , 172.16.0.0/12 , 192.168.0.0/16 ). Because private IP addresses are non-routable across the public Internet, enterprise edge routers utilize Network Address Translation (NAT) to translate private IPv4 addresses into globally unique, routable public IPv4 addresses at the network boundary.

1. Cisco NAT Terminology & The Four Address Types

Cisco defines NAT address terminology based on two perspectives: Location (Inside vs. Outside) and Perspective (Local vs. Global). +-----------------------------------------------------------------------------------+

  • | CISCO NAT ADDRESS MODEL |
  • +-----------------------------------------------------------------------------------+
  • | |
  • | <--- INSIDE NETWORK (Private) ---> | <--- OUTSIDE NETWORK (Public Internet) ---> |
  • | | |
  • | [ Internal Host ] | [ External Web Server ]|
  • | 10.1.1.50 | 203.0.113.100 |
  • | | | | |
  • | v v v |
  • | +--------------------+ +--------------------+ +--------------------+ |
  • | | INSIDE LOCAL (IL) | | INSIDE GLOBAL (IG) | | OUTSIDE GLOBAL (OG)| |
  • | | IP of inside host |-->| Public IP representing |-->| True public IP of | |
  • | | as seen from the | | inside host to the | | external server on | |
  • | | inside network. | | outside world. | | public Internet. | |
  • | | Example: | | Example: | | Example: | |
  • | | 10.1.1.50 | | 198.51.100.5 | | 203.0.113.100 | |
  • | +--------------------+ +--------------------+ +--------------------+ |
  • | | | |
  • | | +--------------------+ | |
  • | | | OUTSIDE LOCAL (OL) | | |
  • | | | IP of external host|<+ |
  • | | | as seen from the | |
  • | | | inside network. | |
  • | | | Example: | |
  • | | | 203.0.113.100 | |
  • | | +--------------------+ |
  • +-----------------------------------------------------------------------------------+
  • The Four Address Definitions

Inside Local (IL): The IPv4 address assigned to a host on the inside network. Typically an RFC 1918 private address (e.g., 10.1.1.50 ).

Inside Global (IG): The legitimate IPv4 address representing one or more Inside Local hosts to the outside world. Allocated by an ISP or Regional Internet Registry (RIR) (e.g., 198.51.100.5 ).

Outside Local (OL): The IPv4 address of an external host as it is known and referenced by hosts on the inside network. In standard deployments, Outside Local is identical to Outside Global.

Outside Global (OG): The globally routable public IPv4 address assigned to an external host on the public Internet or remote external network (e.g., 203.0.113.100 ).

2. NAT Operational Flavors: Static, Dynamic & PAT Overload +-----------------------------------------------------------------------------------+

  • | NAT OPERATIONAL FLAVORS |
  • +-----------------------------------------------------------------------------------+
  • | 1. STATIC NAT (1:1 Bidirectional Mapping): |
  • | [ Private IP: 10.1.1.10 ] <===================> [ Public IP: 198.51.100.10 ] |
  • | - Used for DMZ Web / Mail / Application Servers. |
  • | |
  • | 2. DYNAMIC NAT (Many-to-Many Pool Mapping): |
  • | [ Host A: 10.1.1.11 ] ---> [ Public Pool: 198.51.100.20-30 ] (Allocates .20) |
  • | [ Host B: 10.1.1.12 ] ---> [ Public Pool: 198.51.100.20-30 ] (Allocates .21) |
  • | - First-come, first-served; drops connections when pool is exhausted. |
  • | |
  • | 3. PORT ADDRESS TRANSLATION (PAT / NAT Overload - N:1 Multiplexing): |
  • | [ Host A: 10.1.1.50:49152 ] --\ |
  • | [ Host B: 10.1.1.51:49152 ] ---> [ 198.51.100.1:10001 ] ---> Public Internet |
  • | [ Host C: 10.1.1.52:50220 ] --/ [ 198.51.100.1:10002 ] |
  • | - Multiplexes thousands of hosts onto a single public IP via unique L4 ports. |
  • +-----------------------------------------------------------------------------------+
  • 1. Static NAT (One-to-One Translation)

Creates a permanent, fixed bidirectional mapping between a specific Inside Local address and a specific Inside Global address.

Inbound connections initiated from the Internet to the Inside Global IP are automatically translated and forwarded to the Inside Local server.

  • Syntax: ip nat inside source static 10.1.1.10 198.51.100.10
  • 2. Dynamic NAT (Pool Translation)

Maps unregistered Inside Local addresses to registered Inside Global addresses from a configured pool on a dynamic, first-come, first-served basis.

Translations are temporary and expire after a configurable inactivity timeout.

Limitation: If the pool contains 10 public IP addresses and 11 internal hosts attempt to access the Internet simultaneously, the 11th host is blocked until an active translation expires.

Syntax: ip nat pool POOL_A 198.51.100.20 198.51.100.30 netmask 255.255.255.0 paired with ip nat inside source list ACL_LAN pool POOL_A

3. Port Address Translation (PAT / NAT Overload)

Port Address Translation (PAT) , also known as NAT Overload, maps multiple private Inside Local IP addresses to a single public Inside Global IP (or pool) by tracking Layer 4 TCP and UDP port numbers .

When an internal host initiates a session, the router records the 5-tuple : (Protocol, Source IP, Source Port, Destination IP, Destination Port) . The router rewrites the private Source IP to the router's public interface IP and assigns a unique ephemeral port number on the public interface.

A single public IPv4 address can theoretically support up to ≈ 64 , 000 \approx 64,000 ≈ 64 , 000 concurrent translated sessions ( 2 16 = 65 , 536 2^{16} = 65,536 2 16 = 65 , 536 available port numbers minus well-known ports).

Syntax: ip nat inside source list ACL_LAN interface GigabitEthernet0/0/0 overload

Loading diagram... Port Address Translation (PAT) 5-Tuple Session Multiplexing

3. Cisco IOS-XE NAT Order of Operations

A critical concept for CCNP ENCOR troubleshooting is the precise sequence of operations executed by the Cisco IOS-XE packet switching engine when processing packets traversing NAT boundaries. +-----------------------------------------------------------------------------------+

  • | CISCO IOS-XE NAT ORDER OF OPERATIONS |
  • +-----------------------------------------------------------------------------------+
  • | |
  • | INSIDE TO OUTSIDE PACKET PATH (LAN -> Internet): |
  • | 1. Ingress Interface Inbound ACLs Evaluated |
  • | 2. Ingress Interface Inbound QoS / Policy-Based Routing (PBR) Applied |
  • | 3. IP ROUTING TABLE LOOKUP (Determines Egress Interface) |
  • | 4. NAT INSIDE-TO-OUTSIDE TRANSLATION (Source IP Translated: IL -> IG) |
  • | 5. Egress Interface Outbound ACLs Evaluated |
  • | 6. Egress Interface Outbound QoS / IPsec Crypto Encryption Applied |
  • | 7. Layer 2 Frame Encapsulation & Transmission |
  • | |
  • | OUTSIDE TO INSIDE PACKET PATH (Internet -> LAN): |
  • | 1. Ingress Interface Inbound ACLs Evaluated |
  • | 2. Ingress Interface IPsec Crypto Decryption Applied |
  • | 3. NAT OUTSIDE-TO-INSIDE TRANSLATION (Destination IP Translated: IG -> IL) |
  • | 4. IP ROUTING TABLE LOOKUP (Determines Egress Interface based on Translated IP) |
  • | 5. Egress Interface Outbound ACLs Evaluated |
  • | 6. Egress Interface Outbound QoS Applied |
  • | 7. Layer 2 Frame Encapsulation & Transmission |
  • +-----------------------------------------------------------------------------------+

Warning

Critical Exam Rule: Notice the asymmetry between directions:

Inside to Outside: Routing lookup occurs BEFORE NAT translation. The router must have a valid route to the destination before it executes the source translation.

Outside to Inside: NAT translation occurs BEFORE Routing lookup. The router translates the public destination IP to the private inside IP first , and then routes the packet toward the internal host based on the translated inside IP.

4. NAT Virtual Interface (NVI)

Traditional NAT requires explicit designation of interface directionality via ip nat inside and ip nat outside . Packets are only translated when transitioning from an inside interface to an outside interface (or vice versa). If traffic enters an inside interface and exits another inside interface, no translation occurs.

NAT Virtual Interface (NVI) removes the requirement for dedicated inside and outside tagging. Under NVI, interfaces are enabled for NAT using the unified command ip nat enable . +-----------------------------------------------------------------------------------+

  • | NAT VIRTUAL INTERFACE (NVI) ARCHITECTURE |
  • +-----------------------------------------------------------------------------------+
  • | |
  • | Traditional NAT: |
  • | [ Gi0/0/1 (ip nat inside) ] =======> [ Gi0/0/0 (ip nat outside) ] (Translates) |
  • | [ Gi0/0/1 (ip nat inside) ] =======> [ Gi0/0/2 (ip nat inside) ] (NO TRANSLATION)|
  • | |
  • | NAT Virtual Interface (NVI): |
  • | [ Gi0/0/1 (ip nat enable) ] ---\ |
  • | [ Gi0/0/2 (ip nat enable) ] -----> [ NVI Virtual Interface ] ---> Translates |
  • | [ Gi0/0/3 (ip nat enable) ] ---/ (Any-to-Any Translation) Between ANY |
  • | Enabled Ports! |
  • +-----------------------------------------------------------------------------------+
  • Benefits of NVI

Allows translation between any two interfaces enabled with ip nat enable , regardless of domain.

Supports overlapping private subnets translating between two internal business units.

Simplifies Hub-and-Spoke DMVPN and multi-VRF translation deployments.

5. VRF-Aware NAT Architecture & Multi-Tenancy

In enterprise networks utilizing Virtual Routing and Forwarding (VRF) to isolate departmental, guest, IoT, or multi-tenant traffic, NAT must operate with awareness of the tenant's specific VRF routing table. VRF-Aware NAT prevents routing leakage and allows overlapping IP ranges across different VRFs to translate simultaneously. +-----------------------------------------------------------------------------------+

  • | VRF-AWARE NAT TOPOLOGY |
  • +-----------------------------------------------------------------------------------+
  • | |
  • | +-------------------------------+ |
  • | | VRF: TENANT_CORP (VLAN 100) | |
  • | | Internal Subnet: 10.1.1.0/24 |---\ |
  • | +-------------------------------+ \ |
  • | +--> [ Edge Router ] ---> [ Internet ] |
  • | +-------------------------------+ / (VRF-Aware NAT) (Global Table) |
  • | | VRF: TENANT_GUEST (VLAN 200) |---/ - Translates Corp to Public Pool A |
  • | | Internal Subnet: 10.1.1.0/24 | - Translates Guest to Public Pool B |
  • | | (Overlapping Private Subnet!) | |
  • | +-------------------------------+ |
  • +-----------------------------------------------------------------------------------+
  • Intra-VRF vs Inter-VRF NAT

Intra-VRF NAT: Both the ingress and egress interfaces belong to the same VRF . The translation occurs entirely within the context of that specific VRF routing table.

Syntax: ip nat inside source static 10.1.1.10 198.51.100.10 vrf TENANT_CORP

Inter-VRF NAT (Shared Services / Internet Egress): The ingress interface belongs to a tenant VRF (e.g., VRF_GUEST ), while the egress interface belongs to the Global routing table or a shared WAN VRF (e.g., VRF_INTERNET ). Packets are translated and routed across the VRF boundary into the destination VRF.

Syntax: ip nat inside source list ACL_GUEST pool POOL_GUEST vrf TENANT_GUEST overload paired with route-leaking or default routes.

6. Cisco IOS-XE Configuration & Verification CLI

1. Static NAT with Port Redirection (Port Forwarding) ! Configure static 1:1 NAT for DMZ Web Server (Port 443 HTTPS only)

  • interface GigabitEthernet0/0/1
  • description INSIDE-DMZ
  • ip address 10.1.1.1 255.255.255.0
  • ip nat inside

!

  • interface GigabitEthernet0/0/0
  • description OUTSIDE-INTERNET
  • ip address 198.51.100.1 255.255.255.0
  • ip nat outside

!

ip nat inside source static tcp 10.1.1.10 443 198.51.100.10 443 extendable

2. Port Address Translation (PAT Overload) with Access List ! Step 1: Define Standard Access List matching Inside Local Subnets

  • ip access-list standard ACL_NAT_ALLOWED
  • permit 10.10.0.0 0.0.255.255
  • permit 10.20.0.0 0.0.255.255
  • ! Step 2: Configure PAT Overload on Public Egress Interface
  • ip nat inside source list ACL_NAT_ALLOWED interface GigabitEthernet0/0/0 overload
  • 3. VRF-Aware NAT Multi-Tenant Configuration ! Step 1: Define VRF Instances
  • vrf definition TENANT_CORP
  • rd 65000:100
  • address-family ipv4
  • exit-address-family

!

  • vrf definition TENANT_GUEST
  • rd 65000:200
  • address-family ipv4
  • exit-address-family
  • ! Step 2: Configure VRF NAT Pools
  • ip nat pool POOL_CORP 198.51.100.10 198.51.100.19 netmask 255.255.255.0
  • ip nat pool POOL_GUEST 198.51.100.20 198.51.100.29 netmask 255.255.255.0
  • ! Step 3: Configure VRF-Aware Dynamic PAT Translations
  • ip access-list standard ACL_CORP
  • permit 10.1.1.0 0.0.0.255

!

  • ip access-list standard ACL_GUEST
  • permit 10.1.1.0 0.0.0.255

!

  • ip nat inside source list ACL_CORP pool POOL_CORP vrf TENANT_CORP overload
  • ip nat inside source list ACL_GUEST pool POOL_GUEST vrf TENANT_GUEST overload
  • 4. Verification Commands & Diagnostics Router-Edge# show ip nat translations
  • Pro Inside global Inside local Outside local Outside global
  • tcp 198.51.100.1:10001 10.10.1.50:49152 203.0.113.100:443 203.0.113.100:443
  • tcp 198.51.100.1:10002 10.20.1.80:51234 198.51.100.50:80 198.51.100.50:80
  • tcp 198.51.100.10:443 10.1.1.10:443 --- ---
  • Router-Edge# show ip nat translations verbose
  • Pro Inside global Inside local Outside local Outside global
  • tcp 198.51.100.1:10001 10.10.1.50:49152 203.0.113.100:443 203.0.113.100:443
  • create: 00:01:23, use: 00:00:05, timeout: 86400000
  • flags: extended, use_count: 0, vrf: default
  • w_flags: dynamic, o_flags: none
  • Router-Edge# show ip nat statistics
  • Total active translations: 3 (1 static, 2 dynamic; 2 extended)
  • Peak translations: 142, occurred 01:24:12 ago

Outside interfaces:

GigabitEthernet0/0/0

Inside interfaces:

  • GigabitEthernet0/0/1, GigabitEthernet0/0/2
  • Hits: 142859 Misses: 12
  • Expired translations: 2408

Dynamic mappings:

  • - Inside Source
  • [Id: 1] access-list ACL_NAT_ALLOWED interface GigabitEthernet0/0/0 ref_count 2