[router2] ppp mp user h3c0 bind Virtual-Template 1
[router2-Virtual-Template1]dis this
# interface Virtual-Template1
ppp mp binding-mode authentication
ip address 1.1.1.1 255.255.255.252
[router2-Serial1/0]dis this
# interface Serial1/0
ppp authentication-mode chap
ppp mp #
[router2]local-user h3c0 class network
[router2-luser-network-h3c0]service-type ppp
[router2-luser-network-h3c0]password simple 123
[router3]int s1/0
[router3-Serial1/0]ppp authentication-mode chap
[router3-Serial1/0]ppp authentication-mode chap
router3-Serial1/0]ppp chap user h3c0
[router3-Serial1/0]ppp chap password simple 123
[router3-Serial1/0]ppp mp Virtual-Template 1
router2和router3上的S1/0和S2/0接口配置相同。配置完后
%Aug 12 10:42:22:382 2019 router3 IFNET/3/PHY_UPDOWN: Physical state on the interface Serial1/0 changed to down. %Aug 12 10:42:22:389 2019 router3 IFNET/3/PHY_UPDOWN: Physical state on the interface Serial1/0 changed to up.
然后接口一直处于DOWN状态
(0)
最佳答案
我这边没问题,再检查一下配置吧
[R1]
#
ppp mp user 123 bind Virtual-Template 1
#
interface Serial1/0
ppp authentication-mode chap
ppp chap password cipher $c$3$+ZICLa4m9Dc0KhE/CSCEJpTVa5M2Zg==
ppp chap user 123
ppp mp Virtual-Template1
#
interface Virtual-Template1
ppp authentication-mode chap
ip address 1.1.1.1 255.255.255.0
#
local-user 123 class network
password simple 123
service-type ppp
authorization-attribute user-role network-operator
[R2]
#
ppp mp user 123 bind Virtual-Template 1
#
interface Serial1/0
ppp authentication-mode chap
ppp chap password cipher $c$3$PUx0vFnVMwlJjQsz7gMJK4dsqgqA0g==
ppp chap user 123
ppp mp Virtual-Template1
#
interface Serial2/0
ppp mp Virtual-Template1
#
interface Virtual-Template1
ppp authentication-mode chap
ip address 1.1.1.2 255.255.255.0
#
#
local-user 123 class network
password simple 123
service-type ppp
authorization-attribute user-role network-operator
#
[H3C-Serial1/0]dis ip in b
*down: administratively down
(s): spoofing (l): loopback
Interface Physical Protocol IP Address Description
Ser1/0 up up -- --
deb ppp chap all可以看到认证成功
*Aug 12 18:53:28:736 2019 H3C PPP/7/CHAP_PACKET_0:
PPP Packet:
Ser1/0(4) Output CHAP(c223) Pkt, Len 23
State ServerSuccess, code SUCCESS(03), id 1, Len 19
Message: Welcome to 123.
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论