客户端
dialer-ruledialer-rule 1 ip permit#ip route-static 0.0.0.0 0.0.0.0 Dialer1interface Dialer1link-protocol pppppp chap user ppp chap password cipher ip address ppp-negotiatedialer user hciedialer bundle 1dialer-group 1#interface GigabitEthernet0/0/1pppoe-client dial-bundle-number 1 on-demand#
服务器端:
#ip pool pppoepoolgateway-list 10.1.12.254network 10.1.12.0 mask 255.255.255.0#aaalocal-user password cipher local-user hcie service-type ppp##interface Virtual-Template1ppp authentication-mode chapremote address pool pppoepoolip address 10.1.12.2 255.255.255.0#interface GigabitEthernet0/0/0pppoe-server bind Virtual-Template 1#