POS TCP terminal and TCP application configuration example

Network requirements

As shown in Figure 24, a POS terminal is connected to Router A through an Ethernet interface. Router B is connected to the FEP (Server) through an Ethernet interface. The POS access service has been enabled on the FEP. The listening port number is 2000.

Configure POS access on Router A so the POS terminal can access the FEP.

Figure 23: Network diagram

Configuration procedure

  1. Enable POS access service:

    # Enable the POS access server.

    <RouterA> system-view
    [RouterA] posa server enable
    
  2. Configure the POS application:

    # Configure interface Ethernet 1/0.

    [RouterA] interface ethernet 1/0
    [RouterA-Ethernet1/0] ip address 10.1.1.2 255.255.255.0
    [RouterA-Ethernet1/0] quit
    

    # Configure interface Ethernet 1/1.

    [RouterA] interface ethernet 1/1
    [RouterA-Ethernet1/1] ip address 10.1.2.3 255.255.255.0
    [RouterA-Ethernet1/1] quit
    

    # Create application 1 in TCP mode and enter its view.

    [RouterA] posa app 1 type tcp
    

    # Configure a POS multi-application entry that uses POS application 1 as the default POS application.

    [RouterA-posa-app1] map default
    

    # Specify the IP address and port number as 2.2.2.1 and 2000.

    [RouterA-posa-app1] ip 2.2.2.1 port 2000
    [RouterA-posa-app1] quit
    
  3. Configure the POS terminal:

    # Create POS terminal 1 in TCP access mode, and configure its listening port number as 3000.

    [RouterA] posa terminal 1 type tcp listen-port 3000