PPP CHAP 认证密码要求

网络工程 思科 路由 格雷 购买力
2021-07-16 21:10:10

PPP 接口的 CHAP 认证有什么要求?我认为两个路由器都必须定义相同的密码,如下所示。

r1> username r2 password demo
r2> username r1 password demo

但是,在数据包跟踪器示例中,指定了以下配置。

!!!! Script for R1 !!!!
username ISP password cisco123
interface s0/0/0
encapsulation ppp
ppp authentication chap
interface tunnel0
tunnel mode gre ip
ip address 192.168.2.1 255.255.255.0
tunnel source s0/0/0
tunnel destination 198.133.219.86


!!!! Script for R2 !!!!
en
conf t
username ISP password 123cisco
interface s0/0/0
encapsulation ppp
ppp authentication chap
interface tunnel0
tunnel mode gre ip
ip address 192.168.2.2 255.255.255.0
tunnel source s0/0/0
tunnel destination 209.165.201.1

每个路由器都可以指定自己的密码吗?

r1> username r2 password demo2
r2> username r1 password demo1
1个回答

路由器 1 发送的用户名和密码不必与从路由器 2 接收的相同。@RickyBeam 感谢您的反馈。

!!!! Script for R1 !!!!
username ISP password cisco123
interface s0/0/0
encapsulation ppp
ppp authentication chap
interface tunnel0
tunnel mode gre ip
ip address 192.168.2.1 255.255.255.0
tunnel source s0/0/0
tunnel destination 198.133.219.86


!!!! Script for R2 !!!!
en
conf t
username ISP password 123cisco
interface s0/0/0
encapsulation ppp
ppp authentication chap
interface tunnel0
tunnel mode gre ip
ip address 192.168.2.2 255.255.255.0
tunnel source s0/0/0
tunnel destination 209.165.201.1