Troubleshooting notes · IP services

NAT pool exhausted: the third user can't get online

The first users of the day reach the internet, the next one gets "host unreachable". How to spot a dynamic NAT pool without overload, and change it to PAT. Real output from Cisco IOS XE 17.18.

The symptom

Internet access works for the first users of the day. Then everyone after them fails, and their pings come back as Destination host unreachable from the router. The NAT configuration and statistics show why:

R1# show running-config | include nat|access-list
 ip nat inside
 ip nat outside
 ip nat inside
ip nat pool OFFICE 203.0.113.3 203.0.113.4 netmask 255.255.255.240
ip nat inside source static 192.168.50.10 203.0.113.10
ip nat inside source list 1 pool OFFICE
ip access-list standard 1
R1# show ip nat translations
Pro Inside global         Inside local          Outside local         Outside global
icmp 203.0.113.3:59377    192.168.10.11:59377   198.51.100.1:59377    198.51.100.1:59377
icmp 203.0.113.3:59889    192.168.10.11:59889   198.51.100.1:59889    198.51.100.1:59889
--- 203.0.113.3           192.168.10.11         ---                   ---
icmp 203.0.113.4:60913    192.168.10.12:60913   198.51.100.1:60913    198.51.100.1:60913
icmp 203.0.113.4:61425    192.168.10.12:61425   198.51.100.1:61425    198.51.100.1:61425
--- 203.0.113.4           192.168.10.12         ---                   ---
icmp 203.0.113.10:0       192.168.50.10:0       203.0.113.1:0         203.0.113.1:0
--- 203.0.113.10          192.168.50.10         ---                   ---
R1# show ip nat statistics | include pool|Misses|allocated|Inside|Outside|Ethernet
Outside interfaces:
  Ethernet0/1
Inside interfaces: 
  Ethernet0/0, Ethernet0/3
Hits: 10  Misses: 0
-- Inside Source
[Id: 1] access-list 1 pool OFFICE refcount 6
 pool OFFICE: id 1, netmask 255.255.255.240
    type generic, total addresses 2, allocated 2 (100%), misses 2
PC3> ping 198.51.100.1 -c 2
*192.168.10.1 icmp_seq=1 ttl=255 time=2.398 ms (ICMP type:3, code:1, Destination host unreachable)
*192.168.10.1 icmp_seq=2 ttl=255 time=2.051 ms (ICMP type:3, code:1, Destination host unreachable)

Why it happens

The users are translated with dynamic NAT from a pool of two public addresses, without the overload keyword. Dynamic NAT maps one inside address to one public address, and the mapping stays for as long as the translation lives (24 hours by default). Two users take both addresses, the pool shows allocated 2 (100%), and every packet from a third user counts as a miss: the router drops it and answers "host unreachable".

The fix

Use PAT (overload): many inside users share one public address, told apart by port number. Here the design says to use the outside interface's address. IOS won't remove a NAT rule while translations use it, so clear them first:

R1# clear ip nat translation *
R1(config)# no ip nat inside source list 1 pool OFFICE
R1(config)# no ip nat pool OFFICE
R1(config)# ip nat inside source list 1 interface Ethernet0/1 overload

Check it

Ping from several users, then run show ip nat translations: every user should appear with the same inside global address and a different port. show ip nat statistics should list the interface rule instead of the pool.

Practise this fault

This fault is in CCNA Lab 23, one of the free labs: a ready-made GNS3 project where you find and fix it yourself, with the tested solution. Get it with 14 more free labs, by email:

We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.

See CCNA Troubleshooting Labs · What's in the free labs