Application commands
Digi TransPort User Guide 150
Considerations for use with VPN or GRE tunnels
When the socket used by TCPPERM is opened the default behavior is to use the address of the
interface over which the socket is carried (ETHn or PPPn) as the source address of the socket. If
the socket data is to be tunneled then it may be necessary to use the -en modifier so that the
source address of the socket matches the local subnet address specified in the appropriate
Eroute. A similar effect can also be achieved by setting the parameter Default source IP address
interface: Ethernet n in the Web interface on the Configuration > Network > Advanced
Network Settings.
tcpdial command: Establish a manually initiated serial to IP
connection
The tcpdial command is available only as application commands, and has no equivalent web
pages. tcpdial operates in an identical manner to tcpperm, except that establishment of the
socket connection is not automatic and must be initiated by the tcpdial command. The simplest
method of achieving this is to map a command using the Configuration > Network > Interfaces
> Serial > Command Mappings, such as, Command to Map ATDT0800456789 maps to tcpdial
asy 1 217.36.133.29 -e0. Now, whenever the attached terminal device attempts to dial the
number defined the router will map it to an IP socket connection.
In this way, multiple dial commands can be directed to the same or different IP hosts with other
simple command mappings.
tcpdab command: Cancel a tcpdial connection
The tcpdab command can be used to cancel a TCPDIAL connection before the connection has
been made. It can also be used from a command session to disconnect an existing TCPDIAL
connection on another ASY port.
The format of the command is:
tcpdab <instance> ATH
where <instance> is the number of the ASY port.