This post refers to the process of how Cisco 2911 can configure PPPOE to Internet. Please see below the commands:
interface FastEthernet0/1 //public interface
pppoe enable
pppoe-client dial-pool-number 1
no cdp enable //
R3(config)#vpdn enable
R3(config)#vpdn-group 1
R3(config-vpdn)#request-dialin
R3(config-vpdn-req-in)#protocol pppoe
interface Dialer1 //create a dialer interface
mtu 1492
ip address negotiated
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication pap chap callin
ppp chap hostname ad66548494
ppp chap password 0 123456
ppp pap sent-username ad66548494 password 0 123456
R3(config)#interface fastethernet 1/0
R3(config-if)#ip nat inside
R3(config-if)#exit
R3(config)#interface dialer 1
R3(config-if)#ip nat outside
R3(config-if)#exit
R3(config)#access-list 1 permit any
R3(config)#ip nat inside source list 1 interface dialer 1 overload
R3(config)#ip route 0.0.0.0 0.0.0.0 dialer 1 configure the default route
R3(config)#ip dhcp pool local_net
R3(dhcp-config)#network 192.168.1.0 /24
R3(dhcp-config)#default-router 192.168.1.1
R3(dhcp-config)#import all // 导入从上级DHCP获得的IP配置
R3(dhcp-config)#exit
R3(config)#interface fastethernet 1/0
R3(config-if)#ip address 192.168.1.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
