网络分类简述与数据链路层协议(PPP)

时间:2024-03-24 20:38:07
  • 实验拓扑

  • 实验要求

1、R1和R2使用PPP链路直连,R2和R3把2条PPP链路捆绑为PPP MP直连按照图示配置IP地址

2、R2对R1的PPP进行单向chap验证

3、R2和R3的PPP进行双向chap验证

  • 实验思路
  1. 给R1、R2的S3/0/0接口配置IP地址,已给出网段192.168.1.0/24
  2. R2作为主验证方,R1作为被验证方配置PPP协议。R2开启PPP协议,设置用户wangdaye,密码wdy12345,进入S3/0/0接口开启PPP协议,R1接口S3/0/0也配置上PPP协议
  3. R2、R3链路聚合,创建MP-Group组并配置IP地址,把接口加入MP-Group组
  4. R2作为主认证方,R3作为被认证方配置PPP协议
  5. R2作为被认证方,R3作为主认证方配置PPP协议

  • 实验步骤
    1. 配置IP地址

[r1]int s3/0/0

[r1-Serial3/0/0]ip ad   

[r1-Serial3/0/0]ip address 192.168.1.1 24

[r1-Serial3/0/0]

[r2]int s3/0/0

[r2-Serial3/0/0]ip ad   

[r2-Serial3/0/0]ip address 192.168.1.2 24

[r2-Serial3/0/0]q

    1. 配置R2对R1的PPP

R2:

[r2]aaa

[r2-aaa]l   

[r2-aaa]local-user wangday pas   

[r2-aaa]local-user wangday password ci

[r2-aaa]local-user wangday password cipher wdy12345

Info: Add a new user.

[r2-aaa]l   

[r2-aaa]local-user wangday s 

[r2-aaa]local-user wangday service-type p 

[r2-aaa]local-user wangday service-type ppp

[r2]int s3/0/0

[r2-Serial3/0/0]ppp a

[r2-Serial3/0/0]ppp authentication-mode

[r2-Serial3/0/0]ppp authentication-mode c 

[r2-Serial3/0/0]ppp authentication-mode chap

[r2-Serial3/0/0]lin  

[r2-Serial3/0/0]link-protocol ppp

[r2-Serial3/0/0]q

R1:

[r1]int s3/0/0

[r1-Serial3/0/0]ppp c

[r1-Serial3/0/0]ppp chap u   

[r1-Serial3/0/0]ppp chap user wangday

[r1-Serial3/0/0]ppp c

[r1-Serial3/0/0]ppp chap p   

[r1-Serial3/0/0]ppp chap password c  

[r1-Serial3/0/0]ppp chap password cipher wdy12345

[r1-Serial3/0/0]

测试:

    1. R2和R3链路聚合

R2上,创建MP-Group组,并给MP-Group组配置IP地址:

[r2]int mp  

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

[r2-Mp-group0/0/0]ip ad 

[r2-Mp-group0/0/0]ip address 192.168.2.2 24

[r2-Mp-group0/0/0]

将R2的两个接口加入组中:

R3上创建MP-Group组,并配置IP地址:

[r3]int mp  

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

[r3-Mp-group0/0/0]ip ad 

[r3-Mp-group0/0/0]ip address 192.168.2.3 24

[r3-Mp-group0/0/0]

将R3的两个接口加入组中:

    1. R2作为主验证方,R3作为被验证方

[r2]aaa

[r2-aaa]l

[r2-aaa]local-user wangday p  

[r2-aaa]local-user wangday password c 

[r2-aaa]local-user wangday password cip

[r2-aaa]local-user wangday password cipher wdy12345

[r2-aaa]l

[r2-aaa]local-user wa

[r2-aaa]local-user wangday s  

[r2-aaa]local-user wangday service-type ppp

[r2-aaa]q

进入接口:

R3中,进入接口配置PPP:

[r3]int s3/0/0

[r3-Serial3/0/0]ppp c   

[r3-Serial3/0/0]ppp chap u  

[r3-Serial3/0/0]ppp chap user w  

[r3-Serial3/0/0]ppp chap user wangday

[r3-Serial3/0/0]ppp c   

[r3-Serial3/0/0]ppp chap p  

[r3-Serial3/0/0]ppp chap password c  

[r3-Serial3/0/0]ppp chap password cipher wdy12345

[r3-Serial3/0/0]int s3/0/1  

[r3-Serial3/0/1]ppp chap u  

[r3-Serial3/0/1]ppp chap user wangday

[r3-Serial3/0/1]ppp chap user wangday

[r3-Serial3/0/1]ppp c   

[r3-Serial3/0/1]ppp chap p  

[r3-Serial3/0/1]ppp chap password c  

[r3-Serial3/0/1]ppp chap password cipher wdy12345

[r3-Serial3/0/1]

测试:

    1. R3作为主验证方,R2作为被验证方

[r3]aaa

[r3-aaa]lo   

[r3-aaa]local-user wangday p  

[r3-aaa]local-user wangday password c 

[r3-aaa]local-user wangday password cipher wdy12345

Info: Add a new user.

[r3-aaa]lo   

[r3-aaa]local-user w 

[r3-aaa]local-user wangday s  

[r3-aaa]local-user wangday se 

[r3-aaa]local-user wangday service-type

[r3-aaa]local-user wangday service-type ppp

[r3-aaa]q

进入接口:

R2中进入接口配置:

测试: