22
source port
Use
source port
to specify a source port number for TCP connections. The router must use the specified
source port number to establish a TCP connection with the FEP.
Use
undo source port
to remove the configuration.
Syntax
source port
port-number
undo source port
Default
No source port number is specified for TCP connections. The POS application template uses an available
port number randomly assigned by the system to establish a TCP connection with the FEP.
Views
POS application template view
Predefined user roles
network-admin
Parameters
port-number
: Specifies a source port number for TCP connections, in the range of 4000 to 4999.
Usage guidelines
If you specify a source port for a POS application template in temporary TCP connection mode, only one
connection from the application template to the FEP can be created.
Changing the source port number also deletes all existing TCP connections for the application template.
The specified source port number must not be assigned to any other POS application template and must
be different from the listening port for the POS terminal.
If you specify a source port number that is the same as the port number of any other system process, the
source port does not take effect. You can use
display posa status
command to see which TCP ports have
been occupied by other system processes.
Examples
# Specify the source port number for POS application template 1 as 4001. All existing connections for
application template 1 are deleted.
<Sysname> system-view
[Sysname] posa app 1 type tcp
[Sysname-posa-app1] source port 4001
Connections for the application have been reset.
tcp keepalive
Use
tcp keepalive
to configure TCP keepalive parameters for a POS application template.
Use
undo tcp keepalive
to restore the default.
Syntax
tcp keepalive interval
time
count
counts