Command
IP nat inside source list
Use
This command is used to specify an access-list that matches which IPs should be translated.
Syntax
R1(config)#ip nat inside source list <access-list> <pool or interface> overload
Options
<pool> | Specifies what NAT Pool to use. |
<interface> | Tells NAT to use the IP address on a given interface instead of a pool |
<overload> | Tells NAT to overload a single IP address so it can support numerous translations. |
Example
In this example, we will remove all routing protocols on R2. Afer that, using NAT, we will restore reachbility 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 |