Configuring Network Address Translation of External IP Addresses Only By default, NAT translates the addresses embedded in the packet pay-load as explained in Using Application-Level Gateways with Network Address Translation, on page 12 section. There might be situations where the translation of the embedded address is not desirable and in such cases, NAT can be configured to translate the external IP address only. Procedure Configuring Network Address Translation Configuring Network Address Translation of External IP Addresses Only Command or Action Purpose Step 9 interface type number Example:
Switch(config)# interface gigabitethernet0/0/2 Specifies a different interface and enters interface configuration mode. Step 10 ip address ip-address mask [secondary] Example: Switch(config-if)# ip address 192.168.201.29 255.255.255.240 Sets a primary IP address for an interface. Step 11 ip nat outside Example: Switch(config-if)# ip nat outside Connects the interface to the outside network. Step 12 end Example: Switch(config-if)# end Exits interface configuration mode and returns to privileged EXEC mode. Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 configure terminal Example:
Device# configure terminal Enters global configuration mode. Step 3 ip nat inside source {list {access-list-number | access-list-name} pool pool-name [overload] | static network local-ip global-ip [no-payload]} Example: Device(config)# ip nat inside source static network 10.1.1.1 192.168.251.0/24 no-payload Disables the network packet translation on the inside host device. Configuring Network Address Translation 20