User`s guide

514
Parameter
Description
-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
-ok Open socket in ’quiet mode’, i.e. there is no ’OK’ response to the TCPPERM
command.
-s Source port number
-ssl Use SSL mode
-t Use Telnet mode. Opens socket in the corresponding Telnet mode (port 23
default), 0= raw, 1 Telnet Mode, 2 - Telnet Mode with null stuffing. If this is
not specified then the mode specified for the associated ASY port in general
setup is used. If the -t option is specified then the “ok” option is always used.
The command can also be made to execute automatically on power-up by using the “cmd n
autocmd ‘cmd’” macro command, i.e.
cmd 0 autocmd ’tcpperm asy 0 192.168.0.1 -f3 -s3000 -k10 -e1’
Considerations for use with VPN or GRE Tunnels
When the socket used by TCPPERM is opened the default behaviour 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 tunnelled 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
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, i.e. 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 unit 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.
Aborting TCPDIAL
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.