![Siemens SCALANCE S615 Configuration Manual Download Page 298](http://html.mh-extra.com/html/siemens/scalance-s615/scalance-s615_configuration-manual_377351298.webp)
Layer 3 functions
8.1 NAT
SCALANCE S615 Command Line Interface
298
Configuration Manual, 06/2015, C79000-G8976-C406-02
Result
The numbers are listed.
Further notes
You delete a NETMAP rule with the
no netmap
command.
You delete all NETMAP rules with the
no netmap all
command.
You create a NETMAP rule with the commands
netmap source type ipv4
and
netmap
destination type ipv4
.
8.1.3.11
src-nat type ipv4
Description
With this command, you create a rule for source NAT.
Requirement
You are in the FIREWALL NAT configuration mode.
The command prompt is as follows:
cli(config-fwnat)#
Syntax
Call up the command with the following parameters:
src-nat srcint <if-type> [<num(0-4094)>] dstint <if-type> [<num(0-4094)>] type ipv4
srcip <ip_addr|ip_range|subnet> dstip <ip_addr|ip_range|subnet> transip
<auto|ip_addr>
The parameters have the following meaning:
Parameter
Description
Range of values / note
srcint
Keyword for the source interface
-
if-type
Type or speed of the interface
Specify a valid interface.
num
Number of the addressed interface
0 ... 4094
dstint
Keyword for the destination interface
-
if-type
Type or speed of the interface
Specify a valid interface.
num
Number of the addressed interface
0 ... 4094
srcip
Keyword for the source IP address.
ip_addr
IPv4 address
Enter a valid IPv4 address.
ip_range
IPv4 address range
Specify a valid IPv4 address
range.
subnet
IPv4 address for the subnet
Specify the subnet in CIDR
notation.