! Vpdnenablenovpdnlogging! Vpdn-grouppppoerequest-dialinprotocolpppoe! Interfacefastethernet0ipaddress192.168.0.1255.20.255.0ipnatinside! InterfaceATM0noipaddressnoatmilmi-keepalivebundle-enabledsloperating-mo
! Vpdn enable no vpdn logging! Vpdn-group pppoe request-dialin protocol pppoe! Interface FastEthernet0 ip address 192.168.0.1 255.255.255.0 ip nat inside! Interface ATM0 no ip address no atm ilmi-keepalive bundle-enable dsl operating-mo
!
Vpdn enable
No vpdn logging <= because the PPPoE application of ADSL is implemented through virtual dialing, The VPDN function must be used in the router.
!
Vpdn-group pppoe <= started the vpdn process for PPPoE
Request-dialin
Protocol pppoe <= set the dialing protocol to PPPoE
!
Interface FastEthernet0 <= set the company's internal network address
Ip address 192.168.0.1 255.255.255.0
Ip nat inside <= Enable NAT translation, set the Fast ethernet port to the internal network, and convert the data received from the internal network to the public network address
!
Interface ATM0 <= set the ADSL Port
No ip address <= do not set the address
No atm ilmi-keepalive
Bundle-enable
Dsl operating-mode auto
Hold-queue 224 in
Interface ATM 0.1 point-to-point <= ADSL communication relies on VC, so you must set point-to-point VC
Pvc 8/35 <= set the related PVC parameters, that is, the VCI and VPI values. If you are not clear, please query the local terminal
Pppoe-client dial-pool-number 1 <= PPPoE the dialing process uses a general dialing process. Here dialer-pool 1 is referenced.
!
Interface Dialer1 <= create a virtual dialing port ip address negotiated <= because the local terminal provides a dynamic address, you must set the address to be obtained through negotiation.
Ip mtu 1492 <= Modify mtu value to apply to ADSL Network
Ip nat outside <= Enable NAT translation. Set this port to an external network.
Encapsulation ppp <= use the PPP frame format
Dialer pool 1
Ppp authentication pap callin <= sets the dialing verification method to pap.
Ppp pap sent vip pass vip <= user name and password for sending
Ip nat inside source list 1 interface Dialer1 overload
<= Sets the NAT translation mode and uses the Dynamic Address of port dialer 1.
Ip classless
Ip route 0.0.0.0 0.0.0.0 dialer1
<= Forward all unroutable data packets to the ADSL line and set the default route
No ip http server
!
Access-list 1 permit 10.92.1.0 0.0.255