vpdnenable
vpdn-group1
request-dialin
protocolpppoe、l2tp协议也行
1.配置一个出口
interfaceE0/1
noipaddress
pppoeenable
pppoe-clientdial-pool-number1
2.定义一个虚拟拨号口
interfacedialer0
ipaddressnegotiated
enppp
dialpool1
dial-group1(随意要不要加)
ipmtu1492
pppauthenticationpapcallin
ppppapsent-usernametestpasswordtest
pppchaphostnametest
pppchappasswordtest
3.配置PAT
interfacee0/0
ipnatinside
intdialer0
ipnatoutside
access-list1permit192.168.1.00.0.0.255
ipnatinsidesourcelist1interfacedialer0overload
4.配置DHCP(可选)
ipdhcppoolADSL
network192.168.1.0255.255.255.0
default-router192.168.1.1
5.配置静态路由
iproute0.0.0.00.0.0.0dialer0
检查一下拨号配置是否成功:
R0#showintdialer1//查看虚拟拨号口1的状态