NAT Practice: Inside and Outside, Local and Global
Practise the four NAT address types for the CCNA: inside local, inside global, outside local and outside global. Every problem is a new network with static NAT, dynamic NAT or PAT, and Check my answer names your slip, such as swapping local and global.
Inside or outside: whose address it is. Local or global: where the packet is seen. Terms follow Cisco's NAT documentation.
CCNA exam practice
NAT and PAT are topic 4.3 of the CCNA 200-301 v2.0 exam, and NAT and PAT sit in objective 2.1 of CompTIA Network+ N10-009. Start with the free real exam questions, then get the full pack.
NAT address FAQ
What are inside local, inside global, outside local and outside global?
Cisco defines them this way. Inside local: the address assigned to a host on the inside network, the one set on the host or given by DHCP. Inside global: a legitimate address from the service provider that represents one or more inside local addresses to the outside world. Outside local: the address of an outside host as it appears to the inside network. Outside global: the address the owner of an outside host assigned to it.
How do I tell local from global, and inside from outside?
Inside or outside says whose address it is: a host behind the interface with ip nat inside, or a host beyond the one with ip nat outside. Local or global says where the address appears: local addresses appear on the inside portion of the network, global addresses on the outside portion. So a packet from an inside host starts with an inside local source and an outside local destination, and after the router translates it, it carries an inside global source and an outside global destination.
Why are the outside local and outside global often the same address?
With ip nat inside source the router translates only inside addresses, so an outside host keeps one address on both sides, and Cisco's examples show the same address in both columns. They differ only when the router also translates outside addresses, for example with ip nat outside source static. So an outside local is not a private address by definition: it is the address the inside network uses to reach the outside host.
What is the difference between static NAT, dynamic NAT and PAT?
Static NAT maps one inside local address to one inside global address (ip nat inside source static). Dynamic NAT maps inside local addresses to addresses taken from a pool (ip nat pool with ip nat inside source list). PAT, which Cisco calls overloading, maps many inside local addresses to one inside global address by using different ports, for example `ip nat inside source list 1 interface GigabitEthernet0/1 overload`.
How do I read show ip nat translations?
The columns are Pro, Inside global, Inside local, Outside local and Outside global, in that order, so each global address comes before its local one. Pro is the protocol. A line that starts with --- is a simple entry, such as a static mapping, with no ports. With overloading, each line shows address:port, and one inside global address can appear on several lines with different ports.
What do the port numbers mean in PAT?
When many inside hosts share one inside global address, the router keeps the TCP or UDP port of each connection so it can translate the replies back to the right host. It may keep the host's own port or use another one: Cisco's command reference shows 100.100.0.57:10001 translated to 200.200.0.100:1025. PAT works only for protocols with ports: TCP, UDP and ICMP.
Why does the drill use addresses like 203.0.113.1?
The inside hosts use private addresses from RFC 1918 (10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16). The public addresses come from the three blocks RFC 5737 sets aside for documentation (192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24), so no real network appears in a problem.
Sources
- Cisco, Use Local and Global NAT Terms (Document ID 4606, updated 9 December 2022): the four definitions, local addresses on the inside portion and global addresses on the outside portion, and the show ip nat translations examples.
- Cisco, IP Addressing: NAT Configuration Guide, Configuring NAT for IP Address Conservation (IOS XE, updated 14 October 2026): static NAT, dynamic NAT and overloading, and how port numbers tell inside hosts apart.
- Cisco, IP Addressing Services Command Reference, show ip nat translations: column order, field descriptions, and the sample output with overloading and with a changed port.
- Cisco, Configure Network Address Translation (Document ID 13772): ip nat pool and the overload keyword.
- Cisco, CCNA 200-301 v2.0 exam topics (PDF): 4.3 Configure NAT/PAT on IOS XE routers.
- CompTIA, Network+ N10-009 exam objectives (PDF, version 6.0): 2.1, address translation, NAT and PAT.
- IETF, RFC 1918 (private address space) and RFC 5737 (IPv4 address blocks reserved for documentation).
- Checked 20 November 2026: the drill reproduces Cisco's examples (doc 4606: the source and destination on each side of the router and its static translation line; the command reference lines with overloading and with a changed port). It was tested on 9,000 generated problems against a separate Python re-solver.
Checked 20 November 2026 against Cisco's NAT documentation and the CCNA 200-301 v2.0 exam topics.
- DrillSubnetting practiceUnlimited random questions at three levels, with worked answers.
- DrillIPv4 fragmentation and header practiceWork out fragments, offsets and the MF flag for an MTU, or read IHL, flags and protocol from a header.
- CalculatorSubnet mask calculatorNetwork, broadcast, host range, mask, wildcard and binary for any IPv4 address and CIDR prefix, plus subnet splitting.