!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
ip subnet-zero
!
!
ip cef
!
!
!
username cisco privilege 15 password 0 cisco
!
!
!
interface FastEthernet0/0
ip address 192.168.0.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 10 dial-on-demand
!
interface Serial0/2/0
no ip address
encapsulation frame-relay IETF
shutdown
frame-relay lmi-type ansi
!
interface Dialer1
ip address negotiated
ip nat outside
encapsulation ppp
dialer pool 10
dialer idle-timeout 300
dialer-group 1
ppp pap sent-username mdkt888 password 0 35142700
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
!
ip http server
ip http authentication local
ip nat inside source list 1 interface Dialer1 overload
!
access-list 1 permit any
dialer-list 1 protocol ip permit
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
login local
transport input all
line vty 5 15
login local
transport input all
!
scheduler allocate 20000 1000
!
end
#enable
#config
#ppp ?
#
对了要先做个用户认证的!
我也懒得来写太麻烦了,借助文库里面的东西
http://wenku.baidu.com/view/35a96e01bed5b9f3f90f1cb1.html
这里面有详细的介绍,楼主自己看吧