HCIP 实验作业(ppp实验)

目录

题目:

步骤:

步骤一:搭建拓扑

步骤二:配置IP地址

步骤四:配置chap验证

R2对R1进行单向chap验证:

R2和R3实行双向chap验证:

步骤五:静态路由配置

步骤六:检测


题目:

HCIP 实验作业(ppp实验)_第1张图片

步骤:

步骤一:搭建拓扑

HCIP 实验作业(ppp实验)_第2张图片

步骤二:配置IP地址

R1与R2之间直接配置IP地址

R1:

        [Huawei]SY R1
        [R1]int s 3/0/0
        [R1-Serial3/0/0]ip a 192.168.1.1 24

R2:       

        [Huawei]SY R2
        [R2]int s 3/0/0
        [R2-Serial3/0/0]ip a 192.168.1.2 24

        根据题意R2 R3实行ppp链路捆绑则

执行以下写操作:

        R2:

        创建虚拟接口组;

                [R2]interface Mp-group 0/0/0        

        将实际接口加入虚拟接口组;
                [R2-Mp-group0/0/0]int s 4/0/0      
                [R2-Serial4/0/0]ppp mp Mp-group 0/0/0
                [R2-Serial4/0/0]int s 4/0/1
                [R2-Serial4/0/1]ppp mp Mp-group 0/0/0

        R3:

        创建虚拟接口组;

                [R3]int Mp-group 0/0/0

        将实际接口加入虚拟接口组;
                [R3-Mp-group0/0/0]int s 4/0/0
                [R3-Serial4/0/0]ppp mp Mp-group 0/0/0
                [R3-Serial4/0/0]int s 4/0/1 
                [R3-Serial4/0/1]ppp mp Mp-group 0/0/0

直接给Mp-group配置IP

        [R2]int Mp-group  0/0/0 
        [R2-Mp-group0/0/0]ip a 192.168.2.1 24

        [R3]int Mp-group 0/0/0
        [R3-Mp-group0/0/0]ip a 192.168.2.2 24

查看IP地址以及接口是否开启:

HCIP 实验作业(ppp实验)_第3张图片

步骤四:配置chap验证

R2对R1进行单向chap验证:

        主验证方:配置用户列表及验证方式

        [R1]aaa
        [R1-aaa]local-user zhangsan password cipher zs12345
        [R1-aaa]local-user zhangsan service-type ppp
        [R1-aaa]int s 3/0/0
        [R1-Serial3/0/0]ppp authentication-mode chap 
        [R1-Serial3/0/0]link-protocol ppp

        被验证方:配置验证用户名

        [R2]int s 3/0/0
        [R2-Serial3/0/0]ppp chap user zhangsan 
        [R2-Serial3/0/0]ppp chap password cipher zx12345

检测是否成功:

HCIP 实验作业(ppp实验)_第4张图片

R2和R3实行双向chap验证:

主验证方位R2:

        主验证方:配置用户列表及验证方式                

        [R2]aaa  
        [R2-aaa]local-user lisi password cipher ls123456
        [R2-aaa]local-user lisi service-type ppp
        [R2-aaa]int s 4/0/0
        [R2-Serial4/0/0]ppp authentication-mode chap
        [R2-Serial4/0/0]link-protocol ppp
        [R2-Serial4/0/0]int s4/0/1
        [R2-Serial4/0/1]ppp authentication-mode chap 
        [R2-Serial4/0/1]link-protocol ppp 

        被验证方:配置验证用户名

        [R3]int s 4/0/0
        [R3-Serial4/0/0]ppp chap user lisi
        [R3-Serial4/0/0]ppp chap password cipher ls123456
        [R3-Serial4/0/0]int s 4/0/1 
        [R3-Serial4/0/1]ppp chap user lisi 
        [R3-Serial4/0/1]ppp chap password cipher ls123456

检测是否成功:

HCIP 实验作业(ppp实验)_第5张图片

主验证方位R3:

        主验证方:配置用户列表及验证方式     

        [R3]aaa
        [R3-aaa]local-user wangwu password cipher ww123456
        [R3-aaa]local-user wangwu service-type ppp
        [R3-aaa]int s4/0/0
        [R3-Serial4/0/0]ppp authentication-mode chap 
        [R3-Serial4/0/0]link-protocol ppp
        [R3-Serial4/0/0]int s 4/0/1
        [R3-Serial4/0/1]ppp authentication-mode chap 
        [R3-Serial4/0/1]link-protocol pp
p

        被验证方:配置验证用户名 
        [R2-Serial4/0/1]ppp chap user wangwu
        [R2-Serial4/0/1]ppp chap password cipher ww123456
        [R2-Serial4/0/1]int s 4/0/0
        [R2-Serial4/0/0]ppp chap user wangwu 
        [R2-Serial4/0/0]ppp chap password cipher ww123456

检测是否成功:

HCIP 实验作业(ppp实验)_第6张图片

步骤五:静态路由配置

        [R1]ip route-static 192.168.2.2 24 192.168.1.2

        [R3]ip route-static 192.168.1.1 24 192.168.2.1

步骤六:检测

HCIP 实验作业(ppp实验)_第7张图片

 至此实验成功;

HCIP 实验作业(ppp实验)_第8张图片

你可能感兴趣的:(网络)