configure ip nat rule destination

configure ip nat rule rule_name destination [[dst_ip_addr new-destination new_dst_ip_addr {{vr} vr_name}] | none]

Description

Configures the IP address that is to be translated and the IP address to which this is to be translated for destination Network Address Port (NAT) rules.

Syntax Description

ip Specifies Internet Protocol (IP).
nat Specifies NAT.
rule Specifies NAT rule.
rule_name Specifies the NAT rule name.
destination Specifies modifying the destination IP address.
dst_ip_addr Specifies the destination IP address that needs to be translated.
new-destination Specifies a destination IP address after translation.
new_dst_ip_addr Specifies the destination IP address after translation.
vr Specifies a virtual router (VR) on which the packet is sent out after translation.
vr_name Specifies an existing VR/VRF name on which the packet is sent out on after translation. If not specified, the VR context from where this command is executed is used.
none Deletes the IP address configuration.

Default

If no VR is specified, the current VR context is used.

Usage Guidelines

This command configures the destination NAT rule address information. To configure the source information, run the command configure ip nat rule rule_name source [[[src_ip_addr src_mask | src_ipNetmask ] {{source-vr} src_vr_name} new-source new_src_ip_addr] | none].

Example

The following example configures the rule named "ipOnlyRule" to translate the destination the IP address from 121.144.169.196 to 10.20.30.40. The egress VLAN is present in the VR "VR-user-out":

# configure ip nat rule ipOnlyRule destination 121.144.169.196 new-destination 10.20.30.40 vr VR-user-out

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 and Switch Engine 31.7 Feature License Requirements document.