Configuring Static and Dynamic NAT Translation
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# ip nat outside source static
{outside-global-address outside-local-address | {tcp | udp}
outside-global-address {global-tcp-port | global-udp-port}
outside-local-address {global-tcp-port |
global-udp-port}}group group-id add-route
Step 3
(Optional) switch(config)# copy running-config
startup-config
Example
This example shows how to map TCP services to a specific outside source address and TCP port:
switch# configure terminal
switch(config)#
switch(config)# copy running-config startup-config
Configuring Static Twice NAT
All translations within the same group are considered for creating static twice Network Address Translation
(NAT) rules.
SUMMARY STEPS
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12. end
ip nat outside source static tcp 20.1.9.2 63 35.48.35.48 130
enable
configure terminal
ip nat inside source static inside-local-ip-address inside-global-ip-address [group group-id]
ip nat outside source static outside-global-ip-address outside-local-ip-address [group group-id]
[add-route]
interface type number
ip address ip-address mask
ip nat inside
exit
interface type number
ip address ip-address mask
ip nat outside
Cisco Nexus 3548 Switch NX-OS Interfaces Configuration Guide, Release 9x
Purpose
Enters global configuration mode.
Maps static NAT to an outside global port to an outside
local port.
Saves the change persistently through reboots and restarts
by copying the running configuration to the startup
configuration.
Configuring Static Twice NAT
103