AR3
[Huawei]sy AR3
[AR3]aaa
[AR3-aaa]local-user huawei password cipher 123
[AR3-aaa]local-user huawei service-type ppp
[AR3-aaa]ip pool bosai
[AR3-ip-pool-bosai]gateway-list 10.1.1.1
[AR3-ip-pool-bosai]net 10.1.1.0 mask 24
[AR3-ip-pool-bosai]q
[AR3]interface Virtual-Template 1
[AR3-Virtual-Template1]ppp authentication-mode chap
[AR3-Virtual-Template1]remote address pool bosai
[AR3-Virtual-Template1]ip address unnumbered interface g0/0/0
[AR3-Virtual-Template1]int g0/0/0
[AR3-GigabitEthernet0/0/0]pppoe-server bind virtual-template 1
[AR3-GigabitEthernet0/0/0]ip add 10.1.1.1 24
AR4
[Huawei]sy AR4
[AR4]interface Dialer 1
[AR4-Dialer1]link-protocol ppp
[AR4-Dialer1]ppp ipcp default-route
[AR4-Dialer1]ppp chap user huawei
[AR4-Dialer1]ppp chap password cipher 123
[AR4-Dialer1]mtu 1492
[AR4-Dialer1]ip address ppp-negotiate
[AR4-Dialer1]dialer user huawei
[AR4-Dialer1]dialer bundle 1
[AR4-Dialer1]int g0/0/0
[AR4-GigabitEthernet0/0/0]pppoe-client dial-bundle-number 1