PPP-C#conf t PPP-C(config)#vpdn enable //启用路由器的虚拟专用拨号网络---vpnd 由于ADSL 的PPPoE 应用是通过虚拟拨号来实现的所以在路由器中需要使用VPDN 的功能 PPP-C(config)#int e1/0 // 路由器内网接口 PPP-C(config-if)#no shut PPP-C(config-if)#ip add 192
0 PPP-C(config-if)#ip nat inside PPP-C(config)#int f0/0 //与ADSL model 连接的端口 PPP-C(config-if)#no ip add PPP-C(config-if)#no shut PPP-C(config-if)#pppoe enable PPP-C(config-if)#pppoe-client dial-pool-number 100 // 将以太接口的pppoe 拨号客户端加入拨号池 100 虚拟拨号接口 PPP-C(config)#int dialer 0 //配置虚拟拨号接口 0 ,类似于xp 中建立的拨号连接 PPP-C(config-if)#ip address negotiated //协商获得ip 地址 PPP-C(config-if)#ip mtu 1492 //适用于ADSL 线路,原始大小是1500 ,1492=1500-pppoe header PPP-C(config-if)#no shut PPP-C(config-if)#encapsulation ppp //协议类型为ppp PPP-C(config-if)#ppp authentication chap pap callin //验证方式采用chap 和pap,方式取决于服务器方,二者前