configure ip nat add vlan

configure ip nat add {vlan} vlan_name direction [ingress | egress | both]

Description

Adds VLANs to the Network Address Translation (NAT).

Syntax Description

ip Specifies Internet Protocol (IP).
nat Specifies enabling NAT.
add Specifies adding a VLAN.
vlan Specifies adding a VLAN.
vlan_name Specifies the VLAN to add.
direction Configures directions for NAT translation on this VLAN.
ingress Configures VLAN as an ingress VLAN for NAT. Dynamic port translation rules are created for flows ingressing on this VLAN.
egress Configures VLAN as an egress VLAN for NAT. Dynamic port translation rules are not created for flows ingressing on this VLAN.
both Configures VLAN for NAT in both directions. Dynamic port translation rules are created for flows ingressing on this VLAN.

Default

N/A.

Usage Guidelines

For NAT Port Translation (NAPT), dynamic NAPT rules are created for traffic coming on VLANs whose direction is configured as “ingress” or “both”.

To delete a VLAN, run the command configure ip nat delete {vlan} vlan_name.

Example

The following example adds the VLAN "vlan1" to NAT as an ingress VLAN:

# configure ip nat add vlan vlan1 direction ingress

History

This command was first available in ExtremeXOS 31.2.

Platform Availability

This command is available on the switches that support the IP NAT feature. For information about which switches support this and other features, see the ExtremeXOS 32.6.1 Feature License Requirements document.