PPP实验
一.实验思路
1.对接口进行配置IP 2.将R2上面的两个serial接口与R3的两个接口进行链路聚合,然后配置IP 3.在R2(验证方)上配置PPP chap协议 4.在R1上配置验证用户名 5.要使R3和R2能进行双向chap验证,要在R3上配置ppp chap协议 6.在R2上配置验证用户名 7.每一项chap完成后进行ping测试,看是否成功!
二.实验步骤
1.给R1接口配置IP [R1]int s 3/0/0 [R1-Serial3/0/0]ip address 192.168.1.1 24 2.给R2的一个接口配置IP [R2]int s 3/0/0 [R2-Serial3/0/0]ip address 192.168.1.2 24 3.链路聚合 R2: [R2]int Mp-group 0/0/0 ---- 创建mp-group接口 [R2]int Serial 3/0/1 ---- 进入3/0/1物理接口,将该接口划分到聚合接口中 [R2-Serial3/0/1]ppp mp Mp-group 0/0/0 [R2]int s 4/0/0 ---- 进入4/0/0物理接口,将该接口划分到聚合接接口 [R2-Serial4/0/0]ppp mp Mp-group 0/0/0 R3: [R3]int Mp-group 0/0/0 [R3]int s 3/0/0 [R3-Serial3/0/0]ppp mp Mp-group 0/0/0 [R3]int s 3/0/1 [R3-Serial3/0/1]ppp mp Mp-group 0/0/0 4.聚合之后,给两个聚合接口配置IP [R2]int Mp-group 0/0/0 [R2-Mp-group0/0/0]ip address 192.168.2.1 24 [R3]int Mp-group 0/0/0 [R3-Mp-group0/0/0]ip address 192.168.2.2 24 5.给R2配置ppp chap协议 [R2]aaa [R2-aaa]local-user xjf password cipher xjf123456 Info: Add a new user. [R2-aaa]local-user xjf service-type ppp [R2-aaa]q [R2]int serial 3/0/0 [R2-Serial3/0/0]ppp authentication-mode chap 被验证方: [R1]int s 3/0/0 [R1-Serial3/0/0]ppp chap user xjf [R1-Serial3/0/0]ppp chap password cipher xjf123456 进行测试一下:
6.让R2与R3进行双向chap验证! A.先让R2是验证方,R3是被验证方: [R2]aaa [R2-aaa]local-user zhangsan password cipher zs123456 --- 创建张三用户和密码 Info: Add a new user. [R2-aaa]local-user zhangsan service-type ppp ---- 设置服务类型 [R2]int Serial 3/0/1 [R2-Serial3/0/1]ppp authentication-mode chap --- 给物理接口设置验证方式 [R2-Serial3/0/1]q [R2]int s 4/0/0 [R2-Serial4/0/0]ppp authentication-mode chap --- 给物理接口设置验证方式 被验证方: [R3-Serial3/0/0]ppp chap user zhangsan [R3-Serial3/0/0]ppp chap password cipher zs123456 [R3-Serial3/0/0]q [R3]int s 3/0/1 [R3-Serial3/0/1]ppp chap user zhangsan [R3-Serial3/0/1]ppp chap password cipher zs123456 B.让R3是验证方,R2是被验证方: [R3]aaa [R3-aaa]local-user lisi password cipher ls123456 --- 创建李四用户和密码 [R3-aaa]local-user lisi service-type ppp ---- 设置服务类型 [R3-aaa]q [R3]int s 3/0/0 [R3-Serial3/0/0]ppp authentication-mode chap --- 给物理接口设置验证方式 [R3-Serial3/0/0]q [R3]int s 3/0/1 [R3-Serial3/0/1]ppp authentication-mode chap --- 给物理接口设置验证方式 被验证方: [R2]int s 3/0/1 [R2-Serial3/0/1]ppp chap user lisi [R2-Serial3/0/1]ppp chap password cipher ls123456 [R2-Serial3/0/1]q [R2]int s 4/0/0 [R2-Serial4/0/0]ppp chap user lisi [R2-Serial4/0/0]ppp chap password cipher ls123456 进行测试一下:
实验完成!!