beautypg.com

Tcpdial 20.2 – Westermo MR Series User Manual

Page 428

background image

428

6622-3201

Web Interface and Command Line Reference Guide

www.westermo.com

-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 autoc-
md ‘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
inter face 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 GP sockets use IP from interface:
Ethernet n’ in the Web interface on the Configure > General page.

TCPDIAL

20.2

TCPDIAL operates in an identical manner to TCPPERM except that establishment of the socket
con nection is not automatic and must be initiated by the tcpdial command. The simplest method of
achieving this is to map a command using the Configure > Command Mappings table, i.e. Command
to Map ATDT0800456789 maps to “tcpdial asy 1 217.36.133.29 -e0”. Now, whenever the attached
ter minal 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 com mand mappings.

Aborting TCPDIAL

20.2.1

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 connec tion
on another ASY port.

The format of the command is:

tcpdab ?

where is the number of the ASY port.

This manual is related to the following products: