当前位置: 首页 > news >正文

三层链路聚合

  1. 实验目的

① 掌握使用静态LACP模式配置链路聚合的方法

② 掌握控制静态LACP模式下控制活动链路的方法

③ 掌握静态LACP的部分特性的配置

  1. 实验拓扑

                                    图11-17 三层链路聚合

  1. 配置步骤
  1. 创建链聚合组

AR1的配置

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]undo info-center enable

Info: Information center is disabled.

[Huawei]sysname R1

[R1]interface Eth-Trunk 1   //创建eth-trunk编号为1

[R1-Eth-Trunk1]undo portswitch   //开启三层链路聚合

[R1-Eth-Trunk1]ip address 12.1.1.1 24  //配置IP地址

[R1-Eth-Trunk1]quit

AR2的配置

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]undo info-center enable

Info: Information center is disabled.

[Huawei]sysname AR2

[AR2]interface Eth-Trunk 1

[AR2-Eth-Trunk1]undo portswitch

[AR2-Eth-Trunk1]ip address 12.1.1.2 24

[AR2-Eth-Trunk1]quit

  1. 配置模式为静态LACP

AR1的配置

[R1]interface Eth-Trunk 1

[R1-Eth-Trunk1]mode lacp-static

[R1-Eth-Trunk1]quit

AR2的配置

[AR2]interface Eth-Trunk 1

[AR2-Eth-Trunk1]mode lacp-static

[AR2-Eth-Trunk1]quit

  1. 将端口加入链路聚合组

AR1的配置

[R1]interface Eth-Trunk 1

[R1-Eth-Trunk1]trunkport GigabitEthernet 0/0/0 to 0/0/2

[R1-Eth-Trunk1]quit

AR2的配置

[AR2]interface Eth-Trunk 1

[AR2-Eth-Trunk1]trunkport GigabitEthernet 0/0/0 to 0/0/2

[AR2-Eth-Trunk1]quit

  1. 实验调试

(1)查看eth-trunk 1的状态

[R1]display eth-trunk 1

Eth-Trunk1's state information is:

Local:

LAG ID: 1                   WorkingMode: STATIC                              

Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP        

System Priority: 32768      System ID: 00e0-fcd9-60c7                        

Least Active-linknumber: 1  Max Active-linknumber: 8                         

Operate status: up          Number Of Up Port In Trunk: 3                    

--------------------------------------------------------------------------------

ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight

GigabitEthernet0/0/0   Selected 1GE      32768   1      305     10111100  1    

GigabitEthernet0/0/1   Selected 1GE      32768   2      305     10111100  1    

GigabitEthernet0/0/2   Selected 1GE      32768   3      305     10111100  1    

Partner:

--------------------------------------------------------------------------------

ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState

GigabitEthernet0/0/0   32768    00e0-fc59-0459  32768   1      305     10111100

GigabitEthernet0/0/1   32768    00e0-fc59-0459  32768   2      305     10111100

GigabitEthernet0/0/2   32768    00e0-fc59-0459  32768   3      305     10111100

通过以上输出,eth-trunk处于工作状态,g0/0/0、g0/0/1、g0/0/2都处于活动状态。

(2)测试连通性

[R1]ping 12.1.1.2

  PING 12.1.1.2: 56  data bytes, press CTRL_C to break

    Reply from 12.1.1.2: bytes=56 Sequence=1 ttl=255 time=90 ms

    Reply from 12.1.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms

    Reply from 12.1.1.2: bytes=56 Sequence=3 ttl=255 time=30 ms

    Reply from 12.1.1.2: bytes=56 Sequence=4 ttl=255 time=30 ms

    Reply from 12.1.1.2: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 12.1.1.2 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 20/40/90 ms

通过以上输出可以看到AR1和AR2是可以通信的。

 本文出自作者的《HCIA Datacom学习指南》
https://item.jd.com/14032255.html


在文章最后加作者VX:可以免费领取以下资料


http://www.mrgr.cn/news/11253.html

相关文章:

  • 【本社翻译】Unity官方XR开发电子书
  • 收银系统源码助力零售门店数字化升级
  • 【Android】Navigation动态设置Graph和Launch参数
  • 广播语义学许多PyTorch操作支持NumPy的广播语义。python编程 人工智能 神经网络
  • 【Tools】Prompt 的概念介绍
  • 探索商品详情API中的重量与体积信息:解锁精准物流管理与用户购物体验的秘密
  • 在VB.net中,LINQ有什么查询表达式,举例说明
  • 深度学习系列71:表格检测和识别
  • 探索Git:分布式版本控制系统的力量(二)
  • java 使用 aws s3 sdk 通过分段下载来实现 html 页面 video 的断点播放、拖动进度播放
  • nginx的代理服务器
  • docker数据卷及数据卷容器
  • NoSql数据库Redis集群
  • vue2的el-select虚拟下拉
  • 【嵌入式开发之网络编程】Socket套接字及TCP、UDP通信的实现
  • Excel vba listbox 鼠标滚轮滚动
  • Eureka的生命周期管理:服务注册、续约与下线的完整流程解析
  • 【C#】【EXCEL】BumblebeeComponentsAnalysisGH_Ex_Ana_CondBlank.cs
  • 电动汽车电池监测平台系统设计(论文+源码+图纸)
  • Cypress 调用后端能力 task