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:
To create VT for multiuser on Router C, and configure PPP mapping on VT.
The VPI/VCI value of two PVCs connecting Router C and DSLAM are 0/60 and 0/61, pointing to ADSL Router A and ADSL Router B, respectively.
Both the WAN port of Router C and the DSL interfaces of the two ADSL routers adopt PPPoA. The authentication mode of ADSL Router is PAP. The IP addresses of the two ADSL Routers are assigned by Router C.
Figure 69: Network diagram
![](images/image65.png)
Configuration procedure
![]() | 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. | |
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
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.