configure nat add vlan map
ExtremeWare Software 7.3.0 Command Reference Guide
423
IP/mask, the rule will only match if the port(s) specified are the source layer 4-ports. If you use the
l4-port
command after the destination IP/mask, the rule will only match if the port(s) specified are the
destination layer 4 ports. Both options may be used together to further limit the rule. If you specify
layer 4 ports, ICMP traffic will not translated and allowed to pass.
Rules are processed in order, usually in the order in which they were added. When a single rule is
matched, no other rules are processed. You can view the rule order using the
show nat rules
command.
Example
The following command defines a static translation rule that specifies that traffic coming from
192.168.1.12 be mapped to 216.52.8.32 on outside VLAN
out_vlan_1
:
configure nat add out_vlan_1 map source 192.168.1.12/32 to 216.52.8.32/32
The following command defines a dynamic translation rule that specifies that traffic coming from
subnet 192.168.1.0 should be mapped to IP addresses in the range of 216.52.8.1 to 216.52.8.31 on outside
VLAN
out_vlan_1
:
configure nat add out_vlan_1 map source 192.168.1.0/24 to 216.52.8.1 - 216.52.8.31
The following command defines a translation rule that specifies that TCP/UDP packets coming from
192.168.1.12 and destined for 192.168.5.20 be mapped to 216.52.8.32 on outside VLAN
out_vlan_1
:
configure nat add out_vlan_1 map source 192.168.1.12/32 destination 192.168.5.20 to
216.52.8.32/32
The following command defines a portmap translation rule that specifies that both TCP and UDP traffic
from subnet 102.168.2.0/25 be mapped to available layer 4 ports on the IP addresses in the subnet
216.52.8.32/28:
configure nat add out_vlan_2 map source 192.168.2.0/25 to 216.52.8.32 /28 both portmap
The following command defines a portmap translation rule that specifies that only TCP traffic from
subnet 102.168.2.0/25 be mapped to layer 4 ports in the range of 1024-8192 on the IP addresses in the
subnet 216.52.8.32/28:
configure nat add out_vlan_2 map source 192.168.2.128/25 to 216.52.8.64/28 tcp portmap
1024 - 8192
The following command specifies an autoconstrain NAT translation rule that applies to both TCP and
UDP traffic:
configure nat add out_vlan_3 map source 192.168.3.0/24 to 216.52.8.64/32 both
auto-constrain
History
This command was first available in ExtremeWare 6.2.
Platform Availability
This command is available on all platforms.
Summary of Contents for ExtremeWare 7.3.0
Page 54: ...54 ExtremeWare Software 7 3 0 Command Reference Guide Contents...
Page 104: ...104 ExtremeWare Software 7 3 0 Command Reference Guide Commands for Accessing the Switch...
Page 378: ...378 ExtremeWare Software 7 3 0 Command Reference Guide FDB Commands...
Page 418: ...418 ExtremeWare Software 7 3 0 Command Reference Guide QoS Commands...
Page 436: ...436 ExtremeWare Software 7 3 0 Command Reference Guide NAT Commands...
Page 600: ...600 ExtremeWare Software 7 3 0 Command Reference Guide SLB Commands...
Page 968: ...968 ExtremeWare Software 7 3 0 Command Reference Guide Security Commands...
Page 1002: ...1002 ExtremeWare Software 7 3 0 Command Reference Guide EAPS Commands...
Page 1126: ...1126 ExtremeWare Software 7 3 0 Command Reference Guide ESRP Commands...
Page 1392: ...1392 ExtremeWare Software 7 3 0 Command Reference Guide IGP Commands...
Page 1478: ...1478 ExtremeWare Software 7 3 0 Command Reference Guide BGP Commands...
Page 1556: ...1556 ExtremeWare Software 7 3 0 Command Reference Guide IP Multicast Commands...
Page 1600: ...1600 ExtremeWare Software 7 3 0 Command Reference Guide IPX Commands...
Page 1616: ...1616 ExtremeWare Software 7 3 0 Command Reference Guide ARM Commands...
Page 1694: ...1694 ExtremeWare Software 7 3 0 Command Reference Guide PoS Commands...
Page 1750: ...1750 ExtremeWare Software 7 3 0 Command Reference Guide T1 E1 and T3 WAN Commands...
Page 1856: ...1856 ExtremeWare Software 7 3 0 Command Reference Guide MPLS Commands...
Page 1898: ...1898 ExtremeWare Software 7 3 0 Command Reference Guide High Density Gigabit Ethernet Commands...
Page 1938: ...1938 ExtremeWare Software 7 3 0 Command Reference Guide Power Over Ethernet Commands...
Page 1988: ...1988 ExtremeWare Software 7 3 0 Command Reference Guide H VPLS Commands...
Page 2106: ...2106 ExtremeWare Software 7 3 0 Command Reference Guide Wireless Commands...
Page 2132: ...2132 ExtremeWare Software 7 3 0 Command Reference Guide Configuration and Image Commands...
Page 2236: ...2236 ExtremeWare Software 7 3 0 Command Reference Guide Troubleshooting Commands...
Page 2254: ...2254 ExtremeWare Software 7 3 0 Command Reference Guide Index of Commands...