- 实验要求
- 实验思路
1.配置ip
2.接口组合
3.ppp认证服务
- 实验步骤
- 配置接口ip
[r1]int s4/0/0
[r1-Serial4/0/0]ip ad 192.168.1.1 24
[r2]int s4/0/0
[r2-Serial4/0/0]ip ad 192.168.1.2 24
- 接口组合并配置接口ip
[r2]int Mp-group 0/0/0
[r2-Mp-group0/0/0]ip ad 192.168.2.2 24
[r3]int Mp-group 0/0/0
[r3-Mp-group0/0/0]ip ad 192.168.2.3 24
- 接口组合
[r1-Serial4/0/1]int s4/0/1
[r1-Serial4/0/1]ppp mp Mp-group 0/0/0
[r1-Serial4/0/1]int s3/0/0
[r1-Serial3/0/0]ppp mp Mp-group 0/0/0
- r2为主r1为被(单向)
- r2配置
[r2]aaa
[r2-aaa]local-user nanmu password cipher 123456
Info: Add a new user.
[r2-aaa]local-user nanmu service-type ppp
[r2-aaa]int s4/0/0
[r2-Serial4/0/0]ppp authentication-mode chap
- r1配置
[r1]int s4/0/0
[r1-Serial4/0/0]ppp chap user nanmu
[r1-Serial4/0/0]ppp chap password cipher 123456
- r3与r2双向
- r2为主
[r2]aaa
[r2-aaa]local-user nanmu password cipher 123456
Info: Add a new user.
[r2-aaa]local-user nanmu service-type ppp
[r2]int s3/0/0
[r2-Serial3/0/0]ppp authentication-mode chap
[r2-Serial3/0/0]int s4/0/1
[r2-Serial4/0/1]ppp authentication-mode chap
[r3]int s4/0/0
[r3-Serial4/0/0]ppp chap user nanmu
[r3-Serial4/0/0]ppp chap password cipher 123456
[r3-Serial4/0/0]int s4/0/1
[r3-Serial4/0/1]ppp chap user nanmu
[r3-Serial4/0/1]ppp chap password cipher 123456
- r3为主
[r3]aaa
[r3-aaa]local-user nsnmu password cipher 123456
Info: Add a new user.
[r3-aaa]local-user nsnmu service-type ppp
[r3]int s4/0/0
[r3-Serial4/0/0]ppp authentication-mode chap
[r3-Serial4/0/0]int s4/0/1
[r3-Serial4/0/1]ppp authentication-mode chap
[r2]int s4/0/1
[r2-Serial4/0/1]ppp chap user namu
[r2-Serial4/0/1]ppp chap password cipher 123456
[r2-Serial4/0/1]int s3/0/0
[r2-Serial3/0/0]ppp chap password cipher 123456
[r2-Serial3/0/0]ppp chap user nanmu
- 最终配置