Command
IP NAT Pool
Use
This command is used to create a pool of IP addresses that NAT will translate other addresses into. The address range is used on a first come, first serve basis.
Syntax
R1(config)#ip nat pool <name> <low ip> <high ip> netmask <subnet mask>
Example
In this example, we will remove all routing protocols on R2. Afterwards, using NAT, we will restore reachability so that R1 can ping 10.2.2.3
router eigrp 100 R1(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.2 R1(config)#do ping 10.2.2.3 Type escape sequence to abort. |
Now we will configure NAT using a pool of 10.2.2.5 to 10.2.2.10. Theses addresses will be assigned per session as needed by NAT.
R2(config)#access-list 10 permit 10.1.1.0 0.0.0.255 R1(config)#do ping 10.2.2.3 Type escape sequence to abort. R2(config)#do sh ip nat trans |