Routers providing POS access connected in cascade mode configuration example

Network requirements

As shown in Figure 25, POS1 is connected to Router A through dial-up, and POS2 is connected to Router A through a serial port. Router A, POS3, and POS4 are connected to Router B through Ethernet.

Configure temporary connection mode for POS applications between Router A and Router B so Router A can create an independent TCP connection for each POS terminal. Router B is connected to the FEP (Server) through Ethernet. The POS access service has been enabled on the FEP. The listening port number is 2000.

Configure POS access on the routers so the POS terminals can access the FEP.

Figure 24: Network diagram

Configuration procedure

  1. Configure Router A:

    # Enable the POS access server.

    <RouterA> system-view
    [RouterA] posa server enable
    

    # Configure interface Ethernet 1/0.

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

    # Create POS 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 for POS application 1 as 10.1.1.2 and 3200.

    [RouterA-posa-app1] ip 10.1.1.2 port 3200
    

    # Configure temporary connection mode for POS application 1.

    [RouterA-posa-app1] mode temporary
    [RouterA-posa-app1] quit
    

    # Bind FCM 1/0 to POS terminal 1.

    [RouterA] interface fcm 1/0
    [RouterA–FCM1/0] posa bind terminal 1
    [RouterA–FCM1/0] quit
    

    # Bind Async 1/0 to POS terminal 2.

    [RouterA] interface async 1/0
    [RouterA–Async1/0] posa bind terminal 2
    [RouterA–Async1/0] quit
    
  2. Configure Router B:

    # Enable the POS access server.

    <RouterB> system-view
    [RouterB] posa server enable
    

    # Configure interface Ethernet 1/1.

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

    # Configure interface Ethernet 1/2.

    [RouterB] interface ethernet 1/2
    [RouterB-Ethernet1/2] ip address 10.1.2.1 255.255.255.0
    [RouterB-Ethernet1/2] quit
    

    # Configure interface Ethernet 1/3.

    [RouterB] interface ethernet 1/3
    [RouterB-Ethernet1/3] ip address 10.1.3.1 255.255.255.0
    [RouterB-Ethernet1/3] quit
    

    # Configure interface Ethernet 1/4.

    [RouterB] interface ethernet 1/4
    [RouterB-Ethernet1/4] ip address 10.1.4.1 255.255.255.0
    [RouterB-Ethernet1/4] quit
    

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

    [RouterB] posa app 1 type tcp
    

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

    [RouterB-posa-app1] map default
    

    # Specify the IP address and port number of the corresponding FEP as 10.1.1.1 and 2000.

    [RouterB-posa-app1] ip 10.1.1.1 port 2000
    [RouterB-posa-app1] quit
    

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

    [RouterB] posa terminal 1 type tcp listen-port 3100
    

    # Create POS terminal 2 in TCP mode, and configure its listening port number as 3200.

    [RouterB] posa terminal 2 type tcp listen-port 3200
    

    # Create POS terminal 3 in TCP mode, and configure its listening port number as 3300.

    [RouterB] posa terminal 3 type tcp listen-port 3300