Configuring Network Address Translation Configuring Dynamic Translation of Inside Source Addresses Command or Action Purpose Switch(config)# ip nat pool net-208 172.16.233.208 172.16.233.223 prefix-length 28 Step 4 access-list access-list-number permit source [source-wildcard] Example: Switch(config)# access-list 1 permit 192.168.34.0 0.0.0.255 Defines a standard access list permitting those addresses that are to be translated. Step 5 ip nat inside source list access-list-number pool name vrf vrf-name Example: Switch(config)# ip nat inside source list 1 pool net-208 Establishes dynamic source translation, specifying the access list defined in Step 4.
Using the vrf keyword makes the dynamic translation VRF aware and associates the given rule with the specified VRF. Step 6 interface type number Example: Switch(config)# interface ethernet 1 Specifies an interface and enters interface configuration mode. Step 7 ip address ip-address mask Example: Switch(config-if)# ip address 10.114.11.39 255.255.255.0 Sets a primary IP address for the interface. Step 8 ip nat inside Example: Switch(config-if)# ip nat inside Connects the interface to the inside network, which is subject to NAT. Step 9 exit Example: Switch(config-if)#exit Exits the interface configuration mode and returns to global configuration mode. Step 10 interface type number Example:
Switch(config)# interface ethernet 0 Specifies an interface and enters interface configuration mode. Step 11 ip address ip-address mask Example: Switch(config-if)# ip address 172.16.232.182 255.255.255.240 Sets a primary IP address for the interface. Step 12 ip nat outside Example: Switch(config-if)# ip nat outside Connects the interface to the outside network. Configuring Network Address Translation 16