双链路捆绑和ppp进行单双chap验证实验

一、实验要求 
1、R1和R2使用ppp链路直连,R2和R3把两条ppp链路捆绑为pppMP直连
2、按照图示配置IP地址
3、R2对R1的ppp进行单向chap验证
4、R2和R3的ppp进行双向chap验证

二、划分两个广播域
1、192.168.1.0/24

2、192.168.2.0/24

三、改名和接口配置IP
1.进入视图并改名为R1并配置接口IP

<Huawei>system-view    # 进入[Huawei]视图
[Huawei]sysname R1     # 改名为R1
[R1]interface Serial 3/0/0    # 进入Serial 3/0/0接口
[R1-Serial3/0/0]ip address 192.168.1.1 24    # 配置Serial 3/0/0接口IP
[R1]display ip interface brief    # 查看Serial 3/0/0接口IP是否配置成功

 2. 进入Serial 3/0/0接口配置ppp

[R1]interface Serial 3/0/0    # 进入Serial 3/0/0接口
[R1-Serial3/0/0]ppp chap user wangdaye     # 创建ppp用户名为wangdaye
[R1-Serial3/0/0]ppp chap password cipher wdy12345    #设置ppp用户wandaye的密码为wdy12345

3.进入视图并改名为R2并配置接口IP

<Huawei>system-view    # 进入[Huawei]视图
[Huawei]sysname R2     # 改名为R2
[R2]interface Serial 3/0/0    # 进入Serial 3/0/0接口
[R2-Serial3/0/0]ip address 192.168.1.2 24    # 配置Serial 3/0/0接口IP
[R2]display ip interface brief    # 查看Serial 3/0/0接口IP是否配置成功

 4.配置R2

[R2]interface Mp-group 0/0/0    # 创建捆绑接口Mp-group0/0/0
[R2-Mp-group0/0/0]q
[R2]int Serial 4/0/0 # 进入Serial 4/0/0接口
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0    # 将Serial 4/0/0接口加入捆绑接口Mp-group0/0/0
[R2-Serial4/0/0]
[R2-Serial4/0/0]quit    # 退出接口
[R2]interface Mp-group 0/0/0    # 进入捆绑接口
[R2-Mp-group0/0/0]ip address 192.168.2.2 24    # 配置捆绑接口IP
[R2-Mp-group0/0/0]quit    # 退出接口
[R2]
[R2]aaa    # 进入aaa视图
[R2-aaa]local-user wangdaye password cipher wdy12345    # 
Info: Add a new user.
[R2-aaa]local-user wangdaye service-type ppp
[R2-aaa]q
[R2]int Serial 3/0/0
[R2-Serial3/0/0]ppp authentication-mode chap    #设置验证类型为chap
[R2-Serial3/0/0]quit
[R2]
[R2]aaa
[R2-aaa]local-user wangdaye password cipher wdy12345
[R2-aaa]local-user wangdaye service-type ppp
[R2-aaa]q
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp authentication-mode chap     # 设置接口报文的封装模式
[R2-Serial3/0/1]q
[R2]
[R2]int Serial 4/0/0
[R2-Serial4/0/0]ppp authentication-mode chap    # 设置接口报文的封装模式
[R2-Serial4/0/0]q
[R2]
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp chap user wangdaye
[R2-Serial3/0/1]ppp chap password cipher wdy12345
[R2-Serial3/0/1]q
 

5.配置R3

<R3>sys
[R3]
[R3]int Mp-group 0/0/0    # 创建捆绑接口Mp-group 0/0/0
[R3-Mp-group0/0/0]q
[R3]
[R3]int Serial 3/0/0
[R3-Serial3/0/0]ppp mp Mp-group 0/0/0    # 将Serial 3/0/0接口加进入捆绑接口Mp-group 0/0/0
[R3-Serial3/0/0]
[R3-Serial3/0/0]q
[R3]
[R3]int Serial 3/0/1
[R3-Serial3/0/1]ppp mp Mp-group 0/0/0     # 将Serial 3/0/1接口加进入捆绑接口Mp-group 0/0/0
[R3-Serial3/0/1]
[R3-Serial3/0/1]q
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]ip address 192.168.2.3 24    # 配置捆绑接口将Serial 3/0/0接口加进入捆绑接口Mp-group 0/0/0 IP地址
 
[R3-Mp-group0/0/0]q
[R3]display ip interface brief     # 查看捆绑接口是否配置成功,双up则配置成功
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 9
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 9
 
Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              unassigned           down       down      
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
Mp-group0/0/0                     192.168.2.3/24       up         up        
NULL0                             unassigned           up         up(s)     
Serial1/0/0                       unassigned           down       down      
Serial1/0/1                       unassigned           down       down      
Serial2/0/0                       unassigned           down       down      
Serial2/0/1                       unassigned           down       down      
Serial4/0/0                       unassigned           down       down      
Serial4/0/1                       unassigned           down       down      
[R3]
 
[R3]aaa    # 进入aaa视图
[R3-aaa]local-user wangdaye password cipher wdy12345    # 
Info: Add a new user.
[R3-aaa]local-user wangdaye service-type ppp
[R3-aaa]q
[R3]int Serial 3/0/0
[R3-Serial3/0/0]ppp authentication-mode chap    #设置验证类型为chap
[R3-Serial3/0/0]quit
[R3]
[R3]aaa
[R3-aaa]local-user wangdaye password cipher wdy12345
[R3-aaa]local-user wangdaye service-type ppp
[R3-aaa]q
[R3]int Serial 3/0/1
[R3-Serial3/0/1]ppp authentication-mode chap     # 设置接口报文的封装模式
[R3-Serial3/0/1]q
[R3]
[R3]int Serial 3/0/0
[R3-Serial3/0/0]ppp authentication-mode chap    # 设置接口报文的封装模式
[R3-Serial3/0/0]q
[R3]
[R3]int Serial 3/0/1
[R3-Serial3/0/1]ppp chap user wangdaye
[R3-Serial3/0/1]ppp chap password cipher wdy12345
[R3-Serial3/0/1]q
 

四、思维导图

  • 6
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值