思科C2811路由器如何配置拨号上网?

2022-04-15 社会 114阅读
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的状态
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com