Enabling Static Nat For An Inside Source Address - Cisco Nexus 3548 Configuration Manual

Nx-os interfaces release 9x
Hide thumbs Also See for Nexus 3548:
Table of Contents

Advertisement

Enabling Static NAT for an Inside Source Address

Command or Action
Step 2
switch(config)# interface type slot/port
Step 3
switch(config-if)# ip nat {inside | outside}
Step 4
(Optional) switch(config)# copy running-config
startup-config
Example
This example shows how to configure an interface with static NAT from the inside:
switch# configure terminal
switch(config)# interface ethernet 1/4
switch(config-if)# ip nat inside
Enabling Static NAT for an Inside Source Address
For inside source translation, the traffic flows from inside interface to the outside interface. NAT translates
the inside local IP address to the inside global IP address. On the return traffic, the destination inside global
IP address gets translated back to the inside local IP address.
Note
When the Cisco Nexus device is configured to translate an inside source IP address (Src:ip1) to an outside
source IP address (newSrc:ip2), the Cisco Nexus device implicitly adds a translation for an outside destination
IP address (Dst: ip2) to an inside destination IP address (newDst: ip1).
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# ip nat inside source static local-ip-address global-ip-address [group group-id]
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 inside source static local-ip-address
global-ip-address [group group-id]
Cisco Nexus 3548 Switch NX-OS Interfaces Configuration Guide, Release 9x
100
Configuring Static and Dynamic NAT Translation
Purpose
Specifies an interface to configure, and enters interface
configuration mode.
Specifies the interface as inside or outside.
Only packets that arrive on a marked interface
Note
can be translated.
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 inside global address
to the inside local address or to translate the opposite (the
inside local traffic to the inside global traffic).

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents