Configuration

Define the 'inside' interface(s) connected to the internal network.
R1(config)# int g0/1
R1(config-if)# ip nat inside
Define the 'outside' interface(s) connected to the external network.
R1(config-if)# int g0/0
R1(config-if)# ip nat outside
Define the traffic that should be translated.
Traffic permitted by this ACL will be translated.
R1(config)# access-list 1 permit 192.168.0.0 0.0.0.255
Define the pool of inside global IP addresses.
Instead of
prefix-length
24
, you can usenetmask 255.255.255.0
R1(config)# ip nat pool POOL1 100.0.0.0 100.0.0.255 prefix-length 24
Configure dynamic NAT by mapping the ACL to the pool.
R1(config)# ip nat inside source list 1 pool POOL1



Last updated