background image

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

 

Содержание MSR Series

Страница 1: ...H3C MSR Series Routers Terminal Access Command Reference V7 Hangzhou H3C Technologies Co Ltd http www h3c com Software version MSR CMW710 R0007 Document version 6W100 20140320...

Страница 2: ...ne SecPath SecCenter SecBlade Comware ITCMM and HUASAN are trademarks of Hangzhou H3C Technologies Co Ltd All other trademarks that may be mentioned in this manual are the property of their respective...

Страница 3: ...nce Conventions About the H3C MSR documentation set Obtaining documentation Technical support Documentation feedback These configuration guides apply to the following models of the H3C MSR series rout...

Страница 4: ...t one choice multiple choices or none 1 n The argument or keyword and argument combination before the ampersand sign can be entered 1 to n times A line that starts with a pound sign is comments Symbol...

Страница 5: ...upgrade information technical support information and software upgrading Obtaining documentation You can access the most up to date H3C product documentation on the World Wide Web at http www h3c com...

Страница 6: ...terminal 7 hello enable 8 ip 9 mode 10 posa app 11 posa bind app 12 posa bind terminal 13 posa map 14 posa server enable 15 posa statistics caller id 16 posa statistics caller ip 17 posa terminal 17...

Страница 7: ...he specified application template does not exist or is not TCP type the command can be configured but it does not take effect If the FEP corresponding to an application template is unreachable the rou...

Страница 8: ...ction mode Examples Configure POS application template 1 in TCP mode Enable sending of the caller number Sysname system view Sysname posa app 1 type tcp Sysname posa app1 mode temporary Sysname posa a...

Страница 9: ...ies a POS terminal template by its ID in the range of 1 to 255 If no terminal template is specified the command displays connection information for all TCP based terminals Examples Display connection...

Страница 10: ...cation template applies to all instances that use the application template Examples Display all POS application template statistics Sysname display posa statistics app ID Received Sent PktErr DisErr I...

Страница 11: ...or a terminal template applies to for all instances that use the terminal template Examples Display all POS terminal template statistics Sysname display posa statistics terminal ID Received Sent PktEr...

Страница 12: ...stics for all POS application templates Examples Display state information for all POS application templates Sysname display posa status app AppID Type Mode Interface IPAddr Port State 1 TCP Temporary...

Страница 13: ...cation N indicates the number of TCP connections Blocked The POS application template is blocked due to application fault Error The mapping entry for the application template is not available because...

Страница 14: ...Down The connection has been terminated For the TCP access mode Unlinked The connection has not been established Linking The connection is being established Linked The connection has been established...

Страница 15: ...mode the router uses the existing TCP connection to send a packet If no TCP connection exists the router creates a TCP connection and keeps the TCP connection after the handshaking The handshaking wi...

Страница 16: ...3000 Modify the IP address and port number of the FEP for POS application template 1 to 1 1 1 2 and 3001 Sysname posa app1 ip 1 1 1 2 port 3001 Connections for the application have been reset Related...

Страница 17: ...tions with the FEP Examples Create POS application template 1 in TCP mode Specify the temporary TCP connection mode for POS application 1 Sysname system view Sysname posa app 1 type tcp Sysname posa a...

Страница 18: ...nd app posa bind app Use posa bind app to bind a POS application template to an interface Use undo posa bind app to remove the binding Syntax posa bind app app id undo posa bind app Default No POS app...

Страница 19: ...o posa bind terminal to remove the configuration Syntax posa bind terminal terminal id app app id undo posa bind terminal Default An interface is not an access interface of any POS terminal template V...

Страница 20: ...rminal template 1 Sysname system view Sysname interface async 1 0 Sysname Async1 0 posa bind terminal 1 Related commands posa app posa map Use posa map to configure a POS application mapping entry Use...

Страница 21: ...ntry If you change the destination FEP of a mapping entry during a transaction the connection will not be removed However it might affect the ongoing POS transaction If the specified application templ...

Страница 22: ...FEP for the caller number Use undo posa statistics caller id to remove the specified caller number statistical item Syntax posa statistics caller id caller number undo posa statistics caller id calle...

Страница 23: ...cimal notation ip mask Specifies a mask in dotted decimal notation Usage guidelines This feature only applies to POS terminals template using TCP Source IP segment can overlap each other or be the sam...

Страница 24: ...de and specify 3000 as its listening port number Sysname system view Sysname posa terminal 1 type tcp listen port 3000 Related commands posa bind terminal posa terminal description Use posa terminal t...

Страница 25: ...ctions between the router and POS terminal devices destination ip ip addr2 Specifies a destination IP address destination port port number Specifies a destination port number in the range of 1 to 6553...

Страница 26: ...osa statistics Related commands display posa statistics app display posa statistics terminal snmp agent trap enable posa Use snmp agent trap enable posa to enable SNMP notifications for POS terminal a...

Страница 27: ...fault No source address for TCP connection is specified Views POS application template view Predefined user roles network admin Parameters ip address Specifies a source IP address for a TCP connection...

Страница 28: ...te 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 P...

Страница 29: ...he timeout timer expires the router tears down the TCP connection Examples Configure TCP based POS application template 1 Configure the keepalive interval as 100 seconds and the keepalive number as 4...

Страница 30: ...he interval for a POS application template to send handshaking packets Use undo timer hello to restore the default Syntax timer hello interval undo timer hello Default A POS application template sends...

Страница 31: ...the router places the FEP to blocked state and starts the quiet timer The configuration takes effect immediately and the quiet timer restarts at 0 Examples Set the quiet timer for POS application tem...

Страница 32: ...address in the TPDU field Determine the TPDU address change policy according to the requirements of FEPs In nontransparent mode modifying the TPDU address change policy also removes all permanent TCP...

Страница 33: ...al 7 H hello enable 8 I ip 9 M mode 10 P posa app 1 1 posa bind app 12 posa bind terminal 13 posa map 14 posa server enable 15 posa statistics caller id 16 posa statistics caller ip 17 posa terminal 1...

Отзывы: