BuildTheNet

Opening your workspace

Your learning content and tools are loading.

NAT and PAT

show ip nat translations

Lists the active NAT and PAT translations: inside local and global, outside local and global addresses and ports.

Written by a working field network engineer · CCNA, Security+, CySA+

The NAT table: which inside host is being represented by which public address and port right now. If it is empty while users are browsing, NAT is not happening.

Example output

R1#show ip nat translations
Pro Inside global         Inside local          Outside local         Outside global
icmp 203.0.113.2:3        192.168.10.11:3       198.51.100.10:3       198.51.100.10:3
tcp 203.0.113.2:51514     192.168.10.11:51514   198.51.100.80:443     198.51.100.80:443
udp 203.0.113.2:53211     192.168.10.11:53211   198.51.100.53:53      198.51.100.53:53
udp 203.0.113.2:1024      192.168.10.12:53211   198.51.100.53:53      198.51.100.53:53
Total number of translations: 4

Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.

Useful variants

What each column or field means

FieldMeaning
ProProtocol. PAT entries carry a protocol and port; a static one-to-one NAT entry shows a dash.
Inside localThe inside host’s real (usually private) address.
Inside globalThe address the outside world sees for that host: here the router’s outside interface address, with a port to tell hosts apart (PAT).
Outside local / Outside globalThe remote host’s address as seen from inside and outside. Identical unless you also translate destinations.
:portWith overload, the router keeps the source port where it can (51514) and changes it when two hosts collide. Both PCs sent DNS queries from port 53211: PC1 got it, so PC2’s 53211 became 1024.

When it doesn’t look right

The table stays empty while hosts try to browse.

Check the three parts: ip nat inside on the LAN interface, ip nat outside on the internet interface, and an ACL in the ip nat inside source rule that actually matches the hosts’ addresses.

Only some subnets are translated.

The NAT ACL matches only those subnets. Add the missing ones, using wildcard masks.

Translations appear but there is still no internet.

Return traffic or routing is the problem: the router needs a default route toward the ISP.

Related commands

Try it yourself

Learn it in the CCNA path

Topic

NAT and PAT — Translate private addresses at the edge with static NAT, dynamic pools and PAT overload, and read the translation table.

All 57 commands