使用ensp进行ppp协议综合实验
实验拓扑
实验划分
AR1的Serial3/0/0接口:192.168.1.1/24;
AR2的Serial3/0/0接口:192.168.1.2/24;
AR2的Serial3/0/1和4/0/0的聚合接口:192.168.2.2/24;
AR3的Serial3/0/0和3/0/1的聚合接口:192.168.2.3/24;
实验需求
1、R1和R2使用PPP链路直连,R2和R3把2条PPP链路捆绑为PPP MP直连
2、按照图示配置IP地址
3、R2对R1的PPP进行单向chap验证
4、R2和R3的PPP进行双向chap验证
实验结果
(1)、增加接口
设置里面下滑找到2SA添加接口
注意链接的线也需要使用Serial
(2)、配置接口IP并MP聚合R2和R3之间的链路
R1:
[R1]int s3/0/0
[R1-Serial3/0/0]ip address 192.168.1.1 24
R2:
[R2]int s 3/0/0
[R2-Serial3/0/0]ip address 192.168.1.2 24
[R2]inter Mp-group 0/0/0
[R2-Mp-group0/0/0]ip ad 192.168.2.2 24
[R2-Mp-group0/0/0]q
[R2]inter ser3/0/1
[R2-Serial3/0/1]ppp mp Mp-group 0/0/0
[R2-Serial3/0/1]inter s4/0/0
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0
R3:
[R3]inter Mp-group 0/0/0
[R3-Mp-group0/0/0]ip address 192.168.2.3 24
[R3]inter s3/0/0
[R3-Serial3/0/0]ppp mp Mp-group 0/0/0
[R3-Serial3/0/0]inter s3/0/1
[R3-Serial3/0/1]ppp mp Mp-group 0/0/0
(3)、单向chap验证
R2做主验证方,R1做被验证方
R2:
[R2]aaa
[R2-aaa]local-user dumj password cipher 123456
[R2-aaa]local-user dumj service-type ppp
[R2]inter s3/0/0
[R2-Serial3/0/0]ppp authentication-mode chap
R1:
[R1]int s3/0/0
[R1-Serial3/0/0]ppp chap user dumj
[R1-Serial3/0/0]ppp chap password cipher 123456
验证:可以ping通,且接口双up
(4)、双向chap验证
R2做主验证方,R3做被验证方
R2:
[R2]aaa
[R2-aaa]local-user dumj password cipher 123456
[R2-aaa]local-user dumj service-type ppp
[R2]inter s3/0/1
[R2-Serial3/0/1]ppp authentication-mode chap
[R2-Serial3/0/1]int s4/0/0
[R2-Serial4/0/0]ppp authentication-mode chap
R3:
[R3]int s3/0/0
[R3-Serial3/0/0]ppp chap user dumj
[R3-Serial3/0/0]ppp chap password cipher 123456
[R3-Serial3/0/0]int s3/0/1
[R3-Serial3/0/1]ppp chap user dumj
[R3-Serial3/0/1]ppp chap password cipher 123456
R3做主验证方,R2做被验证方
R3:
[R3]aaa
[R3-aaa]local-user dumj password cipher 123456
[R3-aaa]local-user dumj service-type ppp
[R3]int s3/0/0
[R3-Serial3/0/0]ppp authentication-mode chap
[R3-Serial3/0/0]int s3/0/1
[R3-Serial3/0/1]ppp authentication-mode chap
R2:
[R2]int s3/0/1
[R2-Serial3/0/1]ppp chap user dumj
[R2-Serial3/0/1]ppp chap password cipher 123456
[R2-Serial3/0/1]inter s4/0/0
[R2-Serial4/0/0]ppp chap user dumj
[R2-Serial4/0/0]ppp chap password cipher 123456