Specifications

232 Chapter 8. Command Reference
gateway IP address (4 decimals separated by periods).
hops Number of routers through which the packet must go to get to its destination.
interface Ethernet interface through which the packet is sent out. This parameter may be omitted if the
router has only one Ethernet interface.
If the router has two physical Ethernet interfaces (an Ethernet hub router), the port number (0 or
1) must be specified.
To specify a logical interface other than logical interface 0, specify both the port number and the
logical interface number (<port #>:<logical #>, for example, 0:1).
Examples:
The following command adds a route to the default routing table for the default Ethernet interface (0:0).
eth ip addRoute 10.1.2.0 255.255.255.0 192.168.1.17 1
The following command adds a route to the default routing table for logical interface 1 on Ethernet port 0.
eth ip addRoute 10.1.3.0 255.255.255.0 10.0.27.20 1 0:1
ETH IP ADDSERVER
This Network Address Translation (NAT) command adds a serverÕs IP address (on the LAN) associated with this
interface for a particular protocol. For more information, see Network Address Translation (NAT), on page 91.
action One of the following command actions:
ipaddr Selects the host with this IP address as server (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.
protocol Protocol used by the selected server.
protocolid Numeric protocol ID.
tcp TCP only.
udp UDP only.
all All protocols.
first port First or only port as seen by the Ethernet interface. Port used by the selected server
portid Numeric value between 0 and 65,535. A numeric value of 0 matches any port.
ftp FTP port.
telnet Telnet port.
smtp SMTP port.
sntp SNTP port.
http HTTP port.
tftp TFTP port.
all All ports.
last port Optional last port in the range of ports as seen by the Ethernet interface for the server on the
LAN.
first private port If specified, this is a port remapping of the incoming request from the Ethernet interface.
eth ip addServer <action> <protocol> <first port> [<last port> [<first private port>]] <interface>