Command
Show IP NAT Translation
Use
This command shows information about NAT translations that are active on the router.
Syntax
Router#show ip nat translation
Example
In the below example we configure R2 to translate addresses from 10.1.1.0/24 to 10.2.2.0/24.
R2(config)#access-list 25 permit 10.1.1.0 0.0.0.255 R2(config)#ip nat inside source list 25 interface fa1/0 R2(config)#int fa0/0 R2(config-if)#ip nat inside R2(config-if)#int fa1/0 R2(config-if)#ip nat out
Now we will do several pings to generate NAT traffic.
Success rate is 0 percent (0/5) R1(config-if)#do ping 10.2.2.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.2.2.3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 12/33/84 ms R1(config-if)#do ping 10.2.2.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.2.2.3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 12/42/88 ms R1(config-if)#do ping 10.2.2.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.2.2.3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 12/34/64 ms R1(config-if)#
Afterwards, we can see the NAT translations using the show ip nat translation command.
R2(config-if)#do show ip nat translation Pro Inside global Inside local Outside local Outside global icmp 10.2.2.2:3 10.1.1.1:3 10.2.2.3:3 10.2.2.3:3 icmp 10.2.2.2:4 10.1.1.1:4 10.2.2.3:4 10.2.2.3:4 icmp 10.2.2.2:5 10.1.1.1:5 10.2.2.3:5 10.2.2.3:5