1. 组网需求
Router A
Router B之间通过各自的Ethernet1/1接口相连,要求Router APAP/CHAP方式验证Router B

1.jpg

配置步骤

方案一:PAP认证
(1)
配置Router A作为PPPoE Server
增加一个PPPoE用户。
<RouterA> system-view
[RouterA] local-user user2 
[RouterA-luser-user2] password simple hello
[RouterA-luser-user2] service-type ppp
[RouterA-luser-user2] quit
配置虚拟模板参数。
[RouterA] interface virtual-template 1
[RouterA-Virtual-Template1] ppp authentication-mode pap
[RouterA-Virtual-Template1] ip address 1.1.1.1 255.0.0.0
[RouterA-Virtual-Template1] remote address 1.1.1.2
[RouterA-Virtual-Template1] quit
配置PPPoE Server

[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] pppoe-server bind virtual-template 1
(2)
配置Router B作为PPPoE Client
<RouterB> system-view
[RouterB] dialer-rule 1 ip permit
[RouterB] interface dialer 1
[RouterB-Dialer1] dialer user user2
[RouterB-Dialer1] dialer-group 1
[RouterB-Dialer1] dialer bundle 1
[RouterB-Dialer1] ip address ppp-negotiate
[RouterB-Dialer1] ppp pap local-user user2 password simple hello
[RouterB-Dialer1] quit
配置PPPoE会话。
[RouterB] interface ethernet 1/1
[RouterB-Ethernet1/1] pppoe-client dial-bundle-number 1
方案二:CHAP认证
(1)
配置Router A作为PPPoE Server
增加一个PPPoE用户。
<RouterA> system-view
[RouterA] local-user user2 
[RouterA-luser-user2] password simple hello
[RouterA-luser-user2] service-type ppp
[RouterA-luser-user2] quit
配置虚拟模板参数。
[RouterA] interface virtual-template 1
[RouterA-Virtual-Template1] ppp authentication-mode chap
[RouterA-Virtual-Template1] ppp chap user user1
[RouterA-Virtual-Template1] ip address 1.1.1.1 255.0.0.0
[RouterA-Virtual-Template1] remote address 1.1.1.2 
[RouterA-Virtual-Template1] quit
配置PPPoE Server
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] pppoe-server bind virtual-template 1
(2)
配置Router B作为PPPoE Client
<RouterB> system-view
[RouterB] dialer-rule 1 ip permit
[RouterB] interface dialer 1
[RouterB-Dialer1] dialer user user2
[RouterB-Dialer1] dialer-group 1
[RouterB-Dialer1] dialer bundle 1
[RouterB-Dialer1] ip address ppp-negotiate
[RouterB-Dialer1] ppp chap user user2
[RouterB-Dialer1] quit
[RouterB] local-user user1
[RouterB-luser-user1] password simple hello
[RouterB-luser-user1] quit
配置PPPoE会话。
[RouterB] interface ethernet 1/1
[RouterB-Ethernet1/1] pppoe-client dial-bundle-number 1


 

设为首页 | 加入收藏 | 邮箱登陆    南京咚吆网络科技有限公司版权所有 Copyright © 2008-2014  ICP备案号:苏ICP备15018674号

地址: 江苏省南京市珠江路435号华海大厦709室   邮编: 210018   电话: 0771-2029366   传真: (86)25-83156290   邮箱: master@junovation.com