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

2020-06-13 社会 79阅读
vpdn enable
vpdn-group 1
request-dialin
protocol pppoe、l2tp协议也行
1.配置一个出口
interface E0/1
no ip address
pppoe enable
pppoe-client dial-pool-number 1
2.定义一个虚拟拨号口
interface dialer0
ip address negotiated
en ppp
dial pool 1
dial-group 1(随意要不要加)
ip mtu 1492
ppp authentication pap callin
ppp pap sent-username test password test
ppp chap hostname test
ppp chap password test
3.配置PAT
interface e0/0
ip nat inside
int dialer0
ip nat outside
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat inside source list 1 interface dialer0 overload
4.配置DHCP(可选)
ip dhcp pool ADSL
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
5.配置静态路由
ip route 0.0.0.0 0.0.0.0 dialer0
检查一下拨号配置是否成功:
R0#show int dialer 1 //查看虚拟拨号口1的状态
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com