按照配置指导配置PPPOE,将认证模式修改chap
chap认证按照chap认证配置,R2作为客户端一直无法拨号成功
R1和R2互联地址段为10.12.1.0,R1为 .1,R2为 .2,R2的地址通过R1 remote address 10.12.1.2分配。
R1的配置
#
version 7.1.075, ESS 8305
#
sysname R1
#
system-working-mode standard
xbar load-single
password-recovery enable
lpu-type f-series
#
vlan 1
#
interface Serial0/0/3
#
interface Serial0/0/4
#
interface Serial0/0/5
#
interface Serial0/0/6
#
interface Virtual-Template1
ppp authentication-mode chap domain pppoe-dm1
ppp chap user user
ip address 10.12.1.1 255.255.255.0
remote address 10.12.1.2
#
interface NULL0
#
interface GigabitEthernet0/0/0
port link-mode route
combo enable copper
pppoe-server bind virtual-template 1
#
interface GigabitEthernet0/0/1
port link-mode route
combo enable copper
#
interface GigabitEthernet0/0/2
port link-mode route
combo enable copper
#
interface GigabitEthernet0/0/7
port link-mode route
combo enable copper
#
interface GigabitEthernet0/0/8
port link-mode route
combo enable copper
#
interface GigabitEthernet0/0/9
port link-mode route
combo enable copper
#
interface GigabitEthernet0/0/10
port link-mode route
combo enable copper
#
scheduler logfile size 16
#
line class aux
user-role network-operator
#
line class console
user-role network-admin
#
line class tty
user-role network-operator
#
line class vty
user-role network-operator
#
line aux 0
user-role network-operator
#
line con 0
user-role network-admin
#
line vty 0 63
user-role network-operator
#
domain name pppoe-dm1
authentication ppp local
authorization ppp local
accounting ppp local
#
domain name system
#
domain default enable system
#
role name level-0
description Predefined level-0 role
#
role name level-1
description Predefined level-1 role
#
role name level-10
description Predefined level-10 role
#
role name level-11
description Predefined level-11 role
#
role name level-12
description Predefined level-12 role
#
role name level-13
description Predefined level-13 role
#
role name level-14
description Predefined level-14 role
#
role name level-2
description Predefined level-2 role
#
role name level-3
description Predefined level-3 role
#
role name level-4
description Predefined level-4 role
#
role name level-5
description Predefined level-5 role
#
role name level-6
description Predefined level-6 role
#
role name level-7
description Predefined level-7 role
#
role name level-8
description Predefined level-8 role
#
role name level-9
description Predefined level-9 role
#
user-group system
#
local-user user class network
password cipher $c$3$7Q5sq6+9OHyBHMTPcftPQ8n/1waisZ2sCXZj/VT0hA==
service-type ppp
#
return
R2的配置
#
version 7.1.075, ESS 8305
#
sysname R2
#
system-working-mode standard
xbar load-single
password-recovery enable
lpu-type f-series
#
vlan 1
#
interface Dialer1
ppp chap password cipher $c$3$s1MZoyWPBqIwKlO90aY4PKdPaNDZXpqEl8Q+hasaGg==
ppp chap user user
dialer bundle enable
dialer timer idle 0
dialer timer autodial 10
ip address ppp-negotiate
#
interface Serial0/0/3
#
interface Serial0/0/4
#
interface Serial0/0/5
#
interface Serial0/0/6
#
interface NULL0
#
interface GigabitEthernet0/0/0
port link-mode route
combo enable copper
pppoe-client dial-bundle-number 1
#
interface GigabitEthernet0/0/1
port link-mode route
combo enable copper
#
interface GigabitEthernet0/0/2
port link-mode route
combo enable copper
#
interface GigabitEthernet0/0/7
port link-mode route
combo enable copper
#
interface GigabitEthernet0/0/8
port link-mode route
combo enable copper
#
interface GigabitEthernet0/0/9
port link-mode route
combo enable copper
#
interface GigabitEthernet0/0/10
port link-mode route
combo enable copper
#
scheduler logfile size 16
#
line class aux
user-role network-operator
#
line class console
user-role network-admin
#
line class tty
user-role network-operator
#
line class vty
user-role network-operator
#
line aux 0
user-role network-operator
#
line con 0
user-role network-admin
#
line vty 0 63
user-role network-operator
#
domain name system
#
domain default enable system
#
role name level-0
description Predefined level-0 role
#
role name level-1
description Predefined level-1 role
#
role name level-10
description Predefined level-10 role
#
role name level-11
description Predefined level-11 role
#
role name level-12
description Predefined level-12 role
#
role name level-13
description Predefined level-13 role
#
role name level-14
description Predefined level-14 role
#
role name level-2
description Predefined level-2 role
#
role name level-3
description Predefined level-3 role
#
role name level-4
description Predefined level-4 role
#
role name level-5
description Predefined level-5 role
#
role name level-6
description Predefined level-6 role
#
role name level-7
description Predefined level-7 role
#
role name level-8
description Predefined level-8 role
#
role name level-9
description Predefined level-9 role
#
user-group system
#
return
(0)
客户端改下配置
<H3C>system-view //进入系统视图
[H3C] dialer-group 1 rule ip permit //设置拨号访问组1,对IP协议报文进行DDR拨号
[H3C] interface dialer 1 //创建拨号口1
[H3C-Dialer1] dialer bundle enable //在接口Dialer1上使能共享DDR
[H3C-Dialer1] dialer-group 1 //创建拨号组1
[H3C-Dialer1] ip address ppp-negotiate //ip地址为自动协商
[H3C-Dialer1] dialer timer idle 0 //允许链路空闲时间位0,即永久在线
[H3C-Dialer1] ppp chap user abc //配置拨号的用户名
[H3C-Dialer1] ppp chap password simple 123456 //配置拨号的密码
[H3C-Dialer1] ppp pap local-user abc password simple 123456 //将用户密码和密码一起输入
[H3C-Dialer1] ppp ipcp dns admit-any //设备不发送DNS请求,也能接收对端设备分配的DNS服务器的IP地址。
[H3C-Dialer1] ppp ipcp dns request //配置设备可以主动向对端请求DNS服务器地址
[H3C-Dialer1] quit //退出当前视图
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论