Troubleshooting NAT and PAT for the CCNA 200-301
NAT/PAT troubleshooting involves verifying inside/outside interface designations, checking the ACL matching the traffic, and ensuring NAT translations are actively populating the NAT table.
Verifying Inside and Outside Interfaces
NAT requires explicit definition of which interfaces are inside the network and which face the internet. A common error is forgetting to apply `ip nat inside` to the LAN interface or `ip nat outside` to the WAN interface. Without these, the router will not translate traffic crossing those interfaces.
Checking the Interesting Traffic ACL
Dynamic NAT and PAT use an Access Control List to define which internal IP addresses are allowed to be translated. If the ACL is misconfigured (e.g., pointing to the wrong subnet or denying traffic), no translation occurs. Use `show run | include access-list` to verify the subnet matches your LAN.
Validating NAT Translations
To see if NAT is working, use `show ip nat translations`. If the table is empty while traffic is flowing, the configuration is broken. Use `show ip nat statistics` to view hit/miss counters and verify which interfaces are assigned as inside/outside. To clear stale translations during testing, use `clear ip nat translation *`.
❓ Frequently Asked Questions
What command shows active NAT sessions?
The 'show ip nat translations' command lists all current inside local, inside global, outside local, and outside global IP mappings.
What does the 'overload' keyword do in NAT configuration?
The 'overload' keyword enables Port Address Translation (PAT), allowing multiple inside devices to share a single outside public IP address using unique port numbers.
Why would 'show ip nat translations' be empty?
This occurs if there is no traffic matching the NAT ACL, missing inside/outside interface commands, or a fundamentally flawed NAT configuration.