Server
- vpdn enable
- !
- username pppoe password 0 pppoe
- !
- bba-group pppoe R1
- virtual-template 1
- !
- interface FastEthernet1/0
- ip address 172.16.1.1 255.255.255.0
- pppoe enable group R1
- !
- interface Virtual-Template1
- ip unnumbered FastEthernet1/0
- ip mtu 1492
- peer default ip address pool pppoe
- ppp authentication pap
- !
- ip local pool pppoe 172.16.1.10 172.16.1.20
Client
- vpdn enable
- vpdn-group 1
- request-dialin
- protocol pppoe
- !
- #bba-group pppoe global
- !
- interface FastEthernet0/0
- ip address dhcp
- duplex full
- pppoe enable group global
- pppoe-client dial-pool-number 1
- !
- interface Dialer1
- ip address negotiated
- ip mtu 1492
- ip nat outside
- encapsulation ppp
- dialer pool 1
- ppp pap sent-username pppoe password 0 pppoe
- !
- ip route 0.0.0.0 0.0.0.0 Dialer1
验证
编辑