EasyManua.ls Logo

Digi TransPort WR31 - Tcpperm Command: Establish a Permanent Serial to IP Connection

Digi TransPort WR31
866 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Use the command-line interface Using the CLI parameter tables in this guide
Digi TransPort WR Routers User Guide 142
tcpperm command: establish a permanent serial to IP connection
The tcpperm command is available only as application commands, and has no equivalent web
pages. tcpperm establishes a permanent “serial to IP” connection between one of the ASY ports
and a remote IP host. After tcpperm executes, the router automatically opens a socket connection
to the remote peer whenever data is received from a terminal attached to the specified ASY port.
When the socket is first opened and the connection is established, the router issues a CONNECT
message to the terminal and subsequently relays data between the socket and the ASY port. You
can modify the format of the CONNECT message using the standard AT commands (such as ATV,
ATE, etc.) or using the web interface page Configuration > Network > Interfaces > Serial > Serial
Port n.
Note Preconfigure the serial port to use the appropriate word format, speed, and flow control.
While the serial-to-IP connection is established, if the attached serial device drops the DTR signal,
the socket connection is terminated, much as with a standard modem or terminal adapter. You can
modify this behavior using the AT&D command or the serial port settings.
The format of the command is:
TCPPERM <[ASY 0-1]> <Dest Host> <Dest Port> [UDP] [nodeact] [-
l<listening port>] [-i<inact_timeout>] [-f<fwd_time>] [-e<eth_ip>][-
d(deact link)] [-k<keepalive_time>] [-s<src_port>] [-ok] [-
t<telnet_mode>] [-ho(host only)] [-ssl] [-ao(always open)] [-m<mhome
idx>]
The tcpperm parameters are as follows:
Parameter Description
ASY The number of the ASY port that the link will be made from/to.
Dest Host The IP address (or name) of the remote peer.
Dest Port The port number to use on the remote peer.
UDP Open a UDP connection (the default is TCP).
-ao Open socket immediately, and reopen if and when the socket is closed.
-e Use the address of Ethernet port n for the socket connection rather than the default of
the address of the interface over which the socket is opened (that is, ppp 1, ppp 2, etc.)
-d Deactivate link. If non-zero, when the socket is closed and there are no other sockets
using the interface then the interface connection is dropped (switched connections
only).
-f The forwarding time (x10ms) for packetizing data from the serial port.
-ho Host. Indicates that the socket should only accept connections from the specified host.
-i The inactivity timeout (s) after which the socket will be closed.
-k Keep alive packet timer (s).
-l Listening port. Allows the user to set a new TCP port number to listen on rather than the
default value of 4000+ASY port #.
-m Multihome additional consecutive addresses index

Table of Contents

Other manuals for Digi TransPort WR31

Related product manuals