Configuring Static and Dynamic NAT Translation
Command or Action
Step 3
(Optional) switch(config)# copy running-config
startup-config
Example
This example shows how to configure static NAT for an inside source address:
switch# configure terminal
switch(config)# ip nat inside source static 1.1.1.1 5.5.5.5
switch(config)# copy running-config startup-config
Enabling Static NAT for an Outside Source Address
For outside source translation, the traffic flows from the outside interface to the inside interface. NAT translates
the outside global IP address to the outside local IP address. On the return traffic, the destination outside local
IP address gets translated back to outside global IP address.
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# ip nat outside source static global-ip-address local-ip-address [group group-id]
[add-route]
3. (Optional) switch(config)# copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# ip nat outside source static
global-ip-address local-ip-address [group group-id]
[add-route]
Step 3
(Optional) switch(config)# copy running-config
startup-config
Example
This example show how to configure static NAT for an outside source address:
switch# configure terminal
switch(config)# ip nat outside source static 2.2.2.2 6.6.6.6
switch(config)# copy running-config startup-config
Purpose
Saves the change persistently through reboots and restarts
by copying the running configuration to the startup
configuration.
Purpose
Enters global configuration mode.
Configures static NAT to translate the outside global address
to the outside local address or to translate the opposite (the
outside local traffic to the outside global traffic).
Saves the change persistently through reboots and restarts
by copying the running configuration to the startup
configuration.
Cisco Nexus 3548 Switch NX-OS Interfaces Configuration Guide, Release 9x
Enabling Static NAT for an Outside Source Address
101