client
dialer-rule
dialer-rule 1 ip permit //允许所有用户
interface Dialer0
link-protocol ppp
ppp chap user test
ppp chap password cipher test
ip address ppp-negotiate
dialer user test
dialer bundle 1
ppp ipcp default-route //当拨号成功后,协商一条默认路由
#
interface GigabitEthernet0/0/0
pppoe-client dial-bundle-number 1
ip router 0.0.0.0 0.0.0.0 dialer 0
dis ppoe-client session summary
service
aaa
local-user test password cipher test
local-user test service-type ppp
ip pool pp
net 12.0.0.0 mask 24
gateway-list 12.0.0.2
interface Virtual-Template0
ppp authentication-mode chap
remote address pool ppp
ip address 12.0.0.2 255.255.255.255
#将物理接口与VT虚拟接口进行绑定,实现pppoe协议的封装
interface GigabitEthernet0/0/0
pppoe-server bind Virtual-Template 0
dis pppoe-server session all
注意:
问题在client 配置了
[r5]int Dialer 1
[r5-Dialer1]ppp authentication-mode chap
需要undo ppp authentication-mode
client 命令解析
1、DC虚拟拨号接口dialer的配置
[client]interface Dialer 1 创建DCC的dialer 1 接口
link-protocol ppp 封装ppp协议
ppp chap user pppoe 配置ppp的chap认证
ppp chap password simple pppoe
ip address ppp-negotiate 设置pppoe客户端自动获取ip地址
dialer user pppoe 指定dialer接口拨号所使用的用户,与ppp认证用户一至
dialer bundle 1 指定dialer 1 接口的编号(用于和物理接口绑定)
dialer timer idle 300 设置按需pppoe拨号的空闲时间(300s没有流量就断开)
dialer-group 1 dialer接口加入dialer-group中(每个dialer只能加入一个组)
2、配置拨号规则dialer-rule
[client]dialer-rule 进入dialer-rule视图,用来匹配允许pppoe拨号连接的流量
[client-dialer-rule]dialer-rule 1 ip permit 在条目1中定义允许所有ip报文进行pppoe拨号连接
[client]quit
3、物理接口与dialer接口绑定
[client]interface g0/0/0
pppoe-client dial-bundle-number 1