PPPoA configuration example

Network requirements

As shown in Figure 69, two hosts dial into the ATM network each through an ADSL Router, and communicate with Router C through DSLAM. The requirements are as follows:

Figure 69: Network diagram

Configuration procedure


[CAUTION: ]

CAUTION:

If the client cancels the IP address it has received through address negotiation, or the client is configured with a fixed IP address, the communication between the server and the client will fail. You must shut down the ATM interface first by using the shutdown command, and delete the IP address pool on the server.


  1. Configure Router C (PPPoA Server):

    # Create users for PPP authentication, and establish a local IP address pool.

    <RouterC> system-view
    [RouterC] local-user user1
    [RouterC-luser-user1] service-type ppp
    [RouterC-luser-user1] password simple pwd1
    [RouterC-luser-user1] quit
    [RouterC] local-user user2
    [RouterC-luser-user2] service-type ppp
    [RouterC-luser-user2] password simple pwd2
    [RouterC-luser-user2] quit
    [RouterC] domain system
    [RouterC-isp-system] authentication ppp local
    [RouterC-isp-system] ip pool 1 202.38.162.1 202.38.162.100
    [RouterC-isp-system] quit
    

    # Create a VT interface, configure PAP authentication and an IP address, and allocate an IP address for the remote end from the IP address pool.

    [RouterC] interface virtual-template 10
    [RouterC-Virtual-Template10] ip address 202.38.160.1 255.255.255.0
    [RouterC-Virtual-Template10] ppp authentication-mode pap
    [RouterC-Virtual-Template10] remote address pool 1
    [RouterC-Virtual-Template10] quit
    [RouterC] interface virtual-template 11
    [RouterC-Virtual-Template11] ip address 202.38.161.1 255.255.255.0
    [RouterC-Virtual-Template11] ppp authentication-mode pap
    [RouterC-Virtual-Template11] remote address pool 1
    [RouterC-Virtual-Template11] quit
    

    # Create a PVC, and specify it to carry PPP.

    [RouterC] interface atm 1/0.1
    [RouterC-Atm1/0.1] pvc to_adsl_a 0/60
    [RouterC-atm-pvc-Atm1/0.1-0/60-to_adsl_a] map ppp virtual-template 10
    [RouterC-atm-pvc-Atm1/0.1-0/60-to_adsl_a] quit
    [RouterC-Atm1/0.1] pvc to_adsl_b 0/61
    [RouterC-atm-pvc-Atm1/0.1-0/61-to_adsl_b] map ppp virtual-template 11
    
  2. Configure ADSL Router A (PPPoA Client):

    # Create a VT interface, and configure PAP authentication and IP address negotiation.

    <RouterA> system-view
    [RouterA] interface virtual-template 0
    [RouterA-Virtual-Template0] ppp pap local-user user1 password simple pwd1
    [RouterA-Virtual-Template0] ip address ppp-negotiate
    [RouterA-Virtual-Template0] quit
    

    # Create a PVC, and specify it to run PPP.

    [RouterA] interface atm 1/0
    [RouterA-Atm1/0] pvc pppoa 0/37
    [RouterA-atm-pvc-Atm1/0-0/37-pppoa] map ppp virtual-template 0
    

    Configure ADSL Router B in the same way Router A is configured.