华为路由器PPP MP与CHAP验证实验详解

实验拓扑图

华为路由器PPP MP与CHAP验证实验详解_第1张图片

实验目的

  1. R1 和 R2 使用 PPP 链路直连,R2 和 R3 把 2 条 PPP 链路捆绑为 PPP MP 直连
  2. 按照图示配置 IP 地址
  3. R2 对 R1 的 PPP 进行单向 chap 验证
  4. R2 和 R3 的 PPP 进行双向 chap 验证

实验步骤

1.R1 和 R2 使用 PPP 链路直连,R2 和 R3 把 2 条 PPP 链路捆绑为 PPP MP 直连

步骤一在R2上创建MP-GROUP口

[R2]int MP-group 1

步骤二把 S1/0 和 S2/0 加入到上一步创建的 MP-GROUP口

[R2]int s1/0
[R2-Serial1/0]ppp mp MP-group 1
[R2-Serial1/0]int s2/0
[R2-Serial2/0]ppp mp MP-group 1
[R3]int s1/0
[R3-Serial1/0]ppp mp MP-group 1
[R3-Serial1/0]int s2/0
[R3-Serial2/0]ppp mp MP-group 1
2.按照图示配置 IP 地址
[R1]int s1/0
[R1-Serial1/0]ip add 192.168.1.1 24
[R2]interface s3/0
[R2-Serial3/0]ip add 192.168.1.2 24
[R2-Serial3/0]quit
[R2]interface MP-group 1
[R2-MP-group1]ip address 192.168.2.2 24
[R3]interface MP-group 1
[R3-MP-group1]ip address 192.168.2.3 24
3.R2 对 R1 的 PPP 进行单向 chap 验证

R2 对 R1 进行单向验证,表示 R2 是主验证方,R1 是被验证方。所以需要在 R2 上创建用于验证的用户

[R2]local-user stw class network 
New local user added.
[R2-luser-network-stw]password simple 123456
[R2-luser-network-stw]service-type ppp
[R2-luser-network-stw]quit
[R2]int s3/0
[R2-Serial3/0]ppp authentication-mode chap
[R2-Serial3/0]quit
[R1]int s1/0
[R1-Serial1/0]ppp chap user stw
[R1-Serial1/0]ppp chap password simple 123456
[R1-Serial1/0]quit
4.R2 和 R3 的 PPP 进行双向 chap 验证

双向验证意味着 R2 和 R3 双方都需要创建用于验证的用户,且需要在各自接口上配置对端的用户名。另外,虽然R2 和 R3 之间的 PPP 链路配置了 PPP-MP,但是身份验证仍然需要配置在物理接口上,所以 R2 和 R3 相连的所有 PPP 接口上都需要配置验证

步骤一在 R2 和 R3上都创建用户验证

[R2]local-user user1 class network 
New local user added.
[R2-luser-network-user1]password simple 123456
[R2-luser-network-user1]service-type ppp
[R2-luser-network-user1]quit
[R3]local-user user1 class network 
New local user added.
[R3-luser-network-user1]password simple 123456
[R3-luser-network-user1]service-type ppp
[R3-luser-network-user1]quit

步骤二在 R2 和 R3 相连的接口上配置需要进行 PPP 验证,验证方式为 chap,并配置对端验证本端的用户名

[R2]int s1/0
[R2-Serial1/0]ppp authentication-mode chap
[R2-Serial1/0]ppp chap user user1
[R2-Serial1/0]int s2/0
[R2-Serial2/0]ppp authentication-mode chap
[R2-Serial2/0]ppp chap user user1
[R2-Serial2/0]quit
[R3]int s1/0
[R3-Serial1/0]ppp authentication-mode chap
[R3-Serial1/0]ppp chap user user1
[R3-Serial1/0]int s2/0
[R3-Serial2/0]ppp authentication-mode chap
[R3-Serial2/0]ppp chap user user1
[R3-Serial2/0]quit

你可能感兴趣的:(网络,服务器)