Configuring Dynamic Nat Pool - Cisco Nexus 3548 Configuration Manual

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

Advertisement

Configuring Dynamic NAT Pool

Configuring Dynamic NAT Pool
You can create a NAT pool by either defining the range of IP addresses in a single ip nat pool command or
by using the ip nat pool and address commands
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# feature nat
3. switch(config)# ip nat pool pool-name [startip endip] {prefix prefix-length | netmask network-mask}
4. (Optional) switch(config-ipnat-pool)# address startip endip
5. (Optional) switch(config)# no ip nat pool pool-name
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# feature nat
Step 3
switch(config)# ip nat pool pool-name [startip endip]
{prefix prefix-length | netmask network-mask}
Step 4
(Optional) switch(config-ipnat-pool)# address startip endip
Step 5
(Optional) switch(config)# no ip nat pool pool-name
Example
This example shows how to create a NAT pool with a prefix length:
switch# configure terminal
switch(config)# ip nat pool pool1 30.1.1.1 30.1.1.2 prefix-length 24
switch(config)#
This example shows how to create a NAT pool with a network mask:
switch# configure terminal
switch(config)# ip nat pool pool5 20.1.1.1 20.1.1.5 netmask 255.0.255.0
switch(config)#
This example shows how to create a NAT pool and define the range of global IP addresses using the
ip nat pool and address commands:
switch# configure terminal
switch(config)# ip nat pool pool7 netmask 255.255.0.0
switch(config-ipnat-pool)# address 40.1.1.1 40.1.1.5
switch(config-ipnat-pool)#
Cisco Nexus 3548 Switch NX-OS Interfaces Configuration Guide, Release 9x
110
Configuring Static and Dynamic NAT Translation
Purpose
Enters global configuration mode.
Enables the NAT feature on the device.
Creates a NAT pool with a range of global IP addresses.
The IP addresses are filtered by using either a prefix length
or a network mask.
Specifies the range of global IP addresses if they were not
specified during creation of the pool.
Deletes the specified NAT pool.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents