第2章实验

首先进入R1,R2,R3端口配置IP地址:

[R1]int s3/0/0
[R1-Serial3/0/0]ip add 192.168.1.1 24

[R2]int s3/0/0

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

R2进入逻辑口配置ip:

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

[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp mp mp    
[R2-Serial3/0/1]ppp mp Mp-group 0/0/0

Mar 29 2024 18:20:05-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 on the interface Serial3/0/1 has entered the DOWN state. 

[R2-Serial3/0/1]int s4/0/0
[R2-Serial4/0/0]ppp mp mp    
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0
Mar 29 2024 18:23:55-08:00 R2 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 

R3进入逻辑口配置ip:

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

[R3-Mp-group0/0/0]int s3/0/0
[R3-Serial3/0/0]ppp mp mp    
[R3-Serial3/0/0]ppp mp Mp-group 0/0/0

Mar 29 2024 18:21:54-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 on the interface Serial3/0/0 has entered the DOWN state. 

[R3-Serial3/0/0]int s3/0/1
[R3-Serial3/0/1]ppp mp mp    
[R3-Serial3/0/1]ppp mp Mp-group 0/0/0
[R3-Serial3/0/1]
Mar 29 2024 18:24:42-08:00 R3 %%01IFNET/4/LINK_STATE(l)[7]:The line protocol PPP
 on the interface Serial3/0/1 has entered the DOWN state.

进入R2与R3的逻辑口配置ip:

[R2]int Mp-group 0/0/0
[R2-Mp-group0/0/0]ip add 192.168.2.2 24

[R3]int mp    
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]ip add 192.168.2.3 24

R2对R1进行ppp单向认证:

在R2(主验证方)配置ppp服务

[R2]aaa
[R2-aaa]loca    
[R2-aaa]local-user lidaye pa    
[R2-aaa]local-user lidaye password c    
[R2-aaa]local-user lidaye password cipher ldy123
Info: Add a new user.
[R2-aaa]lo    
[R2-aaa]local-user lidaye se    
[R2-aaa]local-user lidaye service-type ppp

[R2]int s3/0/0
[R2-Serial3/0/0]ppp au    
[R2-Serial3/0/0]ppp authentication-mode ch    
[R2-Serial3/0/0]ppp authentication-mode chap 

在R1(被验证方)进行配置

[R1]int s3/0/0

[R1-Serial3/0/0]ppp chap password cipher ldy123

验证

R2和R3进行ppp双向认证:

以R2当主验证方

[R2]aaa
[R2-aaa]io    
[R2-aaa]lo    
[R2-aaa]local-user wangdaye pa    
[R2-aaa]local-user wangdaye password c    
[R2-aaa]local-user wangdaye password cipher wdy123
Info: Add a new user.
[R2-aaa]lo    
[R2-aaa]local-user wangdaye s    
[R2-aaa]local-user wangdaye service-type ppp
[R2-aaa]int s3/0/1
[R2-Serial3/0/1]ppp au    
[R2-Serial3/0/1]ppp authentication-mode chap

[R2]int s4/0/0
[R2-Serial4/0/0]ppp au    
[R2-Serial4/0/0]ppp authentication-mode chap

以R3当被验证方

[R3]int s3/0/0
[R3-Serial3/0/0]ppp chap user wangdaye
[R3-Serial3/0/0]ppp chap password cipher wdy123

[R3]int s3/0/1
[R3-Serial3/0/1]ppp chap u    
[R3-Serial3/0/1]ppp chap user wangdaye
[R3-Serial3/0/1]ppp schap pa    
[R3-Serial3/0/1]ppp chap pa    
[R3-Serial3/0/1]ppp chap password c    
[R3-Serial3/0/1]ppp chap password cipher wdy123
[R3-Serial3/0/1]

以R3当主验证方(可以创建与R2一样的用户名,我创建不一样的用户名)

[R3]int s3/0/1
[R3-Serial3/0/1]ppp chap u    
[R3-Serial3/0/1]ppp chap user wangdaye
[R3-Serial3/0/1]ppp schap pa    
[R3-Serial3/0/1]ppp chap pa    
[R3-Serial3/0/1]ppp chap password c    
[R3-Serial3/0/1]ppp chap password cipher wdy123
[R3-Serial3/0/1]q
[R3]aaa
[R3-aaa]lo    
[R3-aaa]local-user baodaye pa    
[R3-aaa]local-user baodaye password c    
[R3-aaa]local-user baodaye password cipher bdy123
Info: Add a new user.
[R3-aaa]lo    
[R3-aaa]local-user baodaye se    
[R3-aaa]local-user baodaye service-type ppp
[R3-aaa]q
[R3]int s3/0/0
[R3-Serial3/0/0]ppp au    
[R3-Serial3/0/0]ppp au    
[R3-Serial3/0/0]ppp authentication-mode chap
[R3-Serial3/0/0]q
[R3]int s3/0/1
[R3-Serial3/0/1]ppp au    
[R3-Serial3/0/1]ppp authentication-mode chap

以R2当被验证方

[R2]int s3/0/1
[R2-Serial3/0/1]ppp ch    
[R2-Serial3/0/1]ppp chap u    
[R2-Serial3/0/1]ppp chap user baodaye
[R2-Serial3/0/1]ppp cha    
[R2-Serial3/0/1]ppp chap pa    
[R2-Serial3/0/1]ppp chap password c    
[R2-Serial3/0/1]ppp chap password cipher bdy123
[R2-Serial3/0/1]q
[R2]int s4/0/0
[R2-Serial4/0/0]ppp chap u    
[R2-Serial4/0/0]ppp chap user baodaye
[R2-Serial4/0/0]ppp cha    
[R2-Serial4/0/0]ppp chap u    
[R2-Serial4/0/0]ppp chap pass    
[R2-Serial4/0/0]ppp chap password c    
[R2-Serial4/0/0]ppp chap password cipher 
[R2-Serial4/0/0]ppp chap password cipher bdy123

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值