User Guide
Chapter 5. Command Line Interface Reference 173
ETH IP ADDHOSTMAPPING
Remaps a range of local LAN IP addresses to a range of public IP addresses on a
per-interface basis
. These local
addresses are mapped one-to-one to the public addresses.
Note:
The range of public IP addresses is defined by <
first public addr
> only. The rest of the range is computed
automatically (from <
first public addr
> to <
first public addr
> + number of addresses remapped - 1) inclusive.
ETH IP ADDSERVER
This Network Address Translation (NAT) command is used to add a server’s IP address (on the LAN) associated
with this interface for a particular protocol.
eth ip addHostMapping
<first private addr
><
second private addr
><
first public addr
><
port#
>>
first private addr
First IP address in the range of local IP address to be remapped, in the format of 4 decimals
separated by periods.
second private addr
Last address in the range of local IP address to be remapped, in the format of 4 decimals
separated by periods.
first public addr
Defines the range of public IP addresses, in the format of 4 decimals separated by periods.
The rest of the range is computed automatically.
port#
Ethernet interface number; can be 0 or 1.
Example:
eth ip addHostMapping 192.168.207.40 192.168.207.49 10.0.20.11 1
eth ip addServer
<
ipaddr
>|discard|me <
protocolid
> |tcp|udp<
first port
> |ftp|telnet|smtp|snmp|http [<
last port
>
[<
first private port
>]] <
port#
>
ipaddr
IP address of the host selected as server in the format of 4 decimals separated by periods
discard Discards the incoming server request.
me Sends the incoming server request to the local router, regardless of its IP address.
protocolid
Protocol used by the selected server; can be
tcp
or
udp.
first port
First or only port as seen by the Ethernet interface
.
Port used by the selected server. Can be a
string such as ftp, telnet, smtp, snmp, or http, or a numeric value between 0 and
65,535. A numeric value of 0 will match any port
last port
If specified, this is used with <
first port
> to specify a range of ports as seen by Ethernet
interface end for the server on the LAN.
first private port
If specified, this is a port remapping of the incoming request from the Ethernet interface.
port#
Ethernet interface number; can be 0 or 1.










