291
6620-3201
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 modi
fi
er so that the source
address of the socket matches the local subnet address speci
fi
ed 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
Confi gure
>
General
page.
19.2 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
Confi gure
>
Command Mappings
table, 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 de
fi
ned 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.