configure ip nat rule destination protocol

configure ip nat rule rule_name destination protocol [[[tcp | udp | protocol_num] port port_num new-port new_port_num] | none]


Configures the protocol that is to be translated and the protocol to which this is to be translated for destination Network Address Translation (NAT) rules.

Syntax Description

ip Specifies Internet Protocol (IP).
nat Specifies NAT.
rule Specifies configuring NAT rules.
rule_name Specifies the NAT rule name.
destination Specifies modifying the destination L4 port number.
protocol Selects the translates IP protocol.
tcp Specifies Transmission Control Protocol (TCP).
udp Specifies User Datagram Protocol (UDP).
protocol_num Specifies the IP protocol number. The range is 1 to 255.
port Specifies modifying an L4 port.
port_num Specifies the L4 port number that needs to be translated.
new-port Specifies the L4 port after translation.
new_port_num Specifies the L4 port number after translation.
none Deletes the protocol configuration.



Usage Guidelines


The following example specifies for rule "rule1" that the destination protocol is TCP and the port is translated from port 1 to port 2:

# configure ip nat rule rule1 destination protocol tcp port 1 new-port 2


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.