Extreme Networks ExtremeWare Command Reference Manual page 475

Version 7.5
Hide thumbs Also See for ExtremeWare:
Table of Contents

Advertisement

configure nat add vlan map
Using Layer 4 Port Numbers. The addition of the
optional keyword allows the NAT rule to
l4-port
be applied to only packets with a specific layer 4 source or destination port. If you use the layer 4-port
command after the source IP/mask, the rule matches only if the port(s) specified are the source layer
4-ports. If you use the
command after the destination IP/mask, the rule matches only if the
l4-port
port(s) specified are the destination layer 4 ports. Both options can be used together to further limit the
rule. If you specify layer 4 ports, ICMP traffic will not be translated and allowed to pass.
Rule Processing. 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
command.
rules
Examples
Static Mapping. The following command defines a static translation rule that specifies that traffic
coming from 192.168.1.12 will be mapped to 216.52.8.32 on the outside VLAN called out_vlan_1:
configure nat add out_vlan_1 map source 192.168.1.12/32 to 216.52.8.32/32
Using /32 as the netmask for both the
and
netmasks specifies static translation.
source
to
Dynamic Mapping. The following command defines a dynamic translation rule that specifies that
traffic coming from subnet 192.168.1.0 will 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
Port Mapping. 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 will 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 will 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.64/28:
configure nat add out_vlan_2 map source 192.168.2.128/25 to 216.52.8.64/28 tcp portmap
1024 - 8192
Auto-constraining. The following command specifies an auto-constrain 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.
This command was added to the Summit "e" series of switches in ExtremeWare 7.1e.
ExtremeWare 7.5 Command Reference Guide
475

Advertisement

Table of Contents
loading

This manual is also suitable for:

Extremeware 7.5

Table of Contents