侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

MultiLink PPP也叫MP原理和配置

2023-03-28 星期二 / 0 评论 / 0 点赞 / 76 阅读 / 7720 字

MultiLink PPP也叫MP原理和配置了解MP的作用增加设备之间的互联带宽增加设备之间的链路可靠性提高数据转发的效率实现方式有:虚拟接口模板方式 MP-group 方式mp的工作过程mp链路协

.

MultiLink PPP也叫MP原理和配置

了解MP的作用
增加设备之间的互联带宽
增加设备之间的链路可靠性
提高数据转发的效率
实现方式有:虚拟接口模板方式 MP-group 方式
mp的工作过程
mp链路协商与建立
1.dead阶段,与ppp相同
2.Established 阶段,需要额外协商工作方式,是sp还是mp
3.Authentication 阶段,认证只能配置在“物理接口”上
4.Network 阶段,进行ipcp的协商,确定ip地址参数
5.Terminate 阶段,与ppp相同

案例
如图配置接口IP地址
为了增加R1和R2之间的互联带宽,进行MP绑定
R1和R2之间采用CHAP双向认证,确保通信安全
用户名为Huawei,密码为 HCIE

配置思路:
1.配置终端设备
2.配置网络设备
-R1 认证端@设置mp-group,并且设置ip地址
br/>@设置mp-group,并且设置ip地址
@两个接口加入mp-group组@aaa认证设置本地用户和密码,设置服务类型ppp
br/>@aaa认证设置本地用户和密码,设置服务类型ppp
@两个接口上配置ppp的chap认证模式
-R2 被认证端@设置mp-group,并且设置ip地址
br/>@设置mp-group,并且设置ip地址
@两个接口加入mp-group组
@两个接口配置chap用户名 用户密码
双向认证就是反过来
-R1 被认证端 设置两个接口ppp chap用户和密码
-R2 认证端 aaa认证设置用户和密码 并且两个接口启用chap认证服务
3.验证与测试


[Huawei]sysname R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.254 24
[R1-GigabitEthernet0/0/0]q
[R1]int
[R1]interface mp
[R1]interface Mp-group 0/0/12
[R1-Mp-group0/0/12]ip add 192.168.12.1 24
[R1-Mp-group0/0/12]q
[R1]int s
[R1]int Serial 4/0/0
[R1-Serial4/0/0]ppp mp ?
Mp-group Mp-group interface
endpoint Mp endpoint
virtual-template Virtual template
<cr> Please press ENTER to execute command
[R1-Serial4/0/0]ppp mp mp
[R1-Serial4/0/0]ppp mp Mp-group 0/0/12
[R1-Serial4/0/0]int s4/0/1
[R1-Serial4/0/1]ppp mp mp
[R1-Serial4/0/1]ppp mp Mp-group 0/0/12
[R1-Serial4/0/1]q

[r1]int Mp-group 0/0/12
[r1-Mp-group0/0/12]ip add 192.168.12.1 24
[r1-Serial4/0/0]ppp mp Mp-group 0/0/12
[r1-Serial4/0/1]ppp mp Mp-group 0/0/12
[r1]aaa
[r1-aaa]local-user Huawei password cipher HCIE
Info: Add a new user.
[r1-aaa]local-user Huawei service-type ppp
[r1-aaa]q
[r1]int s4/0/0
[r1-Serial4/0/0]ppp authentication-mode chap
[r1-Serial4/0/0]q
[r1]int s4/0/1
[r1-Serial4/0/1]ppp authentication-mode chap
[r1-Serial4/0/1]q

[R2]interface Mp-group 0/0/12
[R2-Mp-group0/0/12]ip add 192.168.12.2 24
[R2-Serial4/0/0]ppp mp Mp-group 0/0/12
[R2-Serial4/0/1]ppp mp Mp-group 0/0/12
[R2]int s4/0/0
[R2-Serial4/0/0]ppp chap user Huawei
[R2-Serial4/0/0]ppp chap password cipher HCIE
[R2-Serial4/0/0]int s4/0/1
[R2-Serial4/0/1]ppp chap user Huawei
[R2-Serial4/0/1]ppp chap password cipher HCIE
[R2-Serial4/0/1]q

5 案例5:配置 MultiLink PPP
5.1 问题
如图配置接口IP地址
为了增加R1和R2之间的互联带宽,进行MP绑定
R1和R2之间采用CHAP双向认证,确保通信安全
用户名为Huawei,密码为 HCIE
5.2 方案
搭建实验环境,如图-5所示。

图-5

5.3 步骤
实现此案例需要按照如下步骤进行。

1)配置内网设备 – 终端

PC1:
192.168.1.1
255.255.255.0
192.168.1.254
PC2:
192.168.2.2
255.255.255.0
192.168.2.254
2)配置R1 PPP 链路捆绑

<Huawei>undo terminal monitor
<Huawei>system-view
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.254 24
[R1-GigabitEthernet0/0/0]quit
[R1]interface Mp-group 0/0/12
[R1-Mp-group0/0/12]ip add 192.168.12.1 24
[R1-Mp-group0/0/12]quit
[R1]interface Serial 4/0/0
[R1-Serial4/0/0]ppp mp Mp-group 0/0/12
[R1-Serial4/0/0]quit
[R1]interface Serial 4/0/1
[R1-Serial4/0/1]ppp mp Mp-group 0/0/12
[R1-Serial4/0/1]quit
3)配置R2 PPP 链路捆绑

<Huawei>undo terminal monitor
<Huawei>system-view
[Huawei]sysname R2
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.2.254 24
[R2-GigabitEthernet0/0/0]quit
[R2]interface Mp-group 0/0/12
[R2-Mp-group0/0/12]ip add 192.168.12.2 24
[R2-Mp-group0/0/12]quit
[R2]interface Serial 4/0/0
[R2-Serial4/0/0]ppp mp Mp-group 0/0/12
[R2-Serial4/0/0]quit

[R2]interface Serial 4/0/1
[R2-Serial4/0/1]ppp mp Mp-group 0/0/12
[R2-Serial4/0/1]quit
4)配置CHAP认证 – R1认证端、R2为被认证端

[R1]aaa
[R1-aaa]local-user Huawei password cipher HCIE
[R1-aaa]local-user Huawei service-type ppp
[R1-aaa]quit
[R1]interface Serial 4/0/0
[R1-Serial4/0/0]ppp authentication-mode chap
[R1-Serial4/0/0]quit
[R1]interface Serial 4/0/1
[R1-Serial4/0/1]ppp authentication-mode chap
[R1-Serial4/0/1]quit
[R2]interface Serial 4/0/0
[R2-Serial4/0/0]ppp chap user Huawei
[R2-Serial4/0/0]ppp chap password cipher HCIE
[R2-Serial4/0/0]quit
[R2]interface Serial 4/0/1
[R2-Serial4/0/1]ppp chap user Huawei
[R2-Serial4/0/1]ppp chap password cipher HCIE
[R2-Serial4/0/1]quit
5)配置CHAP认证 – R2认证端、R1为被认证端

[R2]aaa
[R2-aaa]local-user Huawei password cipher HCIE
[R2-aaa]local-user Huawei service-type PPP
[R2-aaa]quit
[R2]interface Serial 4/0/0
[R2-Serial4/0/0]ppp authentication-mode chap
[R2-Serial4/0/0]quit
[R2]interface Serial 4/0/1
[R2-Serial4/0/1]ppp authentication-mode chap
[R2-Serial4/0/1]quit
[R1]interface Serial 4/0/0
[R1-Serial4/0/0]ppp chap user Huawei
[R1-Serial4/0/0]ppp chap password cipher HCIE
[R1-Serial4/0/0]quit
[R1]interface Serial 4/0/1
[R1-Serial4/0/1]ppp chap user Huawei
[R1-Serial4/0/1]ppp chap password cipher HCIE
[R1-Serial4/0/1]quit
6)配置静态路由

[R1]ip route-static 192.168.2.0 24 192.168.12.2
[R2]ip route-static 192.168.1.0 24 192.168.12.1
7)测试 PC-1 与 PC-2 之间的连通性

PC-1>ping 192.168.2.1
Ping 192.168.2.1: 32 data bytes, Press Ctrl_C to break
From 192.168.2.1: bytes=32 seq=1 ttl=126 time=31 ms
From 192.168.2.1: bytes=32 seq=2 ttl=126 time=16 ms
From 192.168.2.1: bytes=32 seq=3 ttl=126 time=31 ms
From 192.168.2.1: bytes=32 seq=4 ttl=126 time=32 ms
From 192.168.2.1: bytes=32 seq=5 ttl=126 time=15 ms
--- 192.168.2.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 15/25/32 ms
PC-2>ping 192.168.1.1
Ping 192.168.1.1: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.1.1: bytes=32 seq=2 ttl=126 time=15 ms
From 192.168.1.1: bytes=32 seq=3 ttl=126 time=16 ms
From 192.168.1.1: bytes=32 seq=4 ttl=126 time=31 ms
From 192.168.1.1: bytes=32 seq=5 ttl=126 time=16 ms
--- 192.168.1.1 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 0/19/31 ms

.

广告 广告

评论区