148
# Create VT interfaces and configure IP addresses for them. Assign IP addresses to the remote
ends.
<RouterC> system-view
[RouterC] interface virtual-template 10
[RouterC-Virtual-Template10] ip address 202.38.160.1 255.255.255.0
[RouterC-Virtual-Template10] remote address 202.38.162.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] remote address 202.38.162.2
[RouterC-Virtual-Template11] quit
# Create PVCs, and enable them to carry PPP.
[RouterC] interface atm 2/4/0.1
[RouterC-ATM2/4/0.1] pvc to_adsl_a 0/60
[RouterC-ATM2/4/0.1-pvc-to_adsl_a-0/60] map ppp virtual-template 10
[RouterC-ATM2/4/0.1-pvc-to_adsl_a-0/60] quit
[RouterC-ATM2/4/0.1] pvc to_adsl_b 0/61
[RouterC-ATM2/4/0.1-pvc-to_adsl_b-0/61] map ppp virtual-template 11
2. Configure ADSL Router A (PPPoA client):
# Create a VT interface, and enable IP address negotiation.
<RouterA> system-view
[RouterA] interface virtual-template 0
[RouterA-Virtual-Template0] ip address ppp-negotiate
[RouterA-Virtual-Template0] quit
# Create a PVC, and enable it to carry PPP.
[RouterA] interface atm 2/4/0
[RouterA-ATM2/4/0] pvc pppoa 0/60
[RouterA-ATM2/4/0-pvc-pppoa-0/60] map ppp virtual-template 0
[RouterA-ATM2/4/0-pvc-pppoa-0/60] quit
[RouterA-ATM2/4/0] quit
3. Configure ADSL Router B in the same way ADSL Router A is configured.
Verifying the configuration
Both ADSL Router A and ADSL Router B can ping Router C successfully.
PPPoEoA configuration example
Network requirements
As shown in Figure 49, the hosts in the two Ethernets are connected to the ATM network through ADSL
Router A and ADSL Router B. They communicate with Router C through DSLAM.
The IP addresses of the VT interfaces of Router C are 202.38.160.1 and 202.38.161.1.
The VPI/VCI values 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 ADSL routers use PPPoEoA. PPP
authentication is not performed. The IP addresses of the two ADSL routers are assigned by Router C.