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

华为配置手工负载分担模式链路聚合实验

目录

组网需求

配置思路

操作步骤

配置文件


组网图形

图1 配置手工负载分担模式链路聚合组网图

  • 组网需求
  • 配置思路
  • 操作步骤
  • 配置文件

组网需求

如图1所示,AC1和AC2通过以太链路分别都连接VLAN10和VLAN20,且AC1和AC2之间有较大的数据流量。

用户希望AC1和AC2之间能够提供较大的链路带宽来使相同VLAN间互相通信。同时用户也希望能够提供一定的冗余度,保证数据传输和链路的可靠性。

配置思路

采用如下的思路配置负载分担链路聚合:

  1. 创建Eth-Trunk接口并加入成员接口,实现增加链路带宽。

    接口缺省都加入了VLAN1,因此加入Eth-Trunk前建议先将接口从VLAN1中退出或将接口Shutdown,避免出现广播风暴。

  2. 创建VLAN并将接口加入VLAN。

  3. 配置负载分担方式,实现流量在Eth-Trunk各成员接口间的负载分担,增加可靠性。

操作步骤
  1. 在AC1创建Eth-Trunk接口并加入成员接口。AC2配置与AC1类似,不再赘述。

    <HUAWEI> system-view
    [HUAWEI] sysname AC1
    [AC1] interface Eth-Trunk1
    [AC1-Eth-Trunk1] trunkport gigabitethernet 0/0/1 to 0/0/3
    [AC1-Eth-Trunk1] quit

  2. 创建VLAN并将接口加入VLAN。AC2配置与AC1类似,不再赘述。

    # 创建VLAN10和VLAN20并分别加入接口。[AC1] vlan batch 10 20
    [AC1] interface gigabitethernet 0/0/4
    [AC1-GigabitEthernet0/0/4] port link-type trunk
    [AC1-GigabitEthernet0/0/4] port trunk allow-pass vlan 10
    [AC1-GigabitEthernet0/0/4] quit
    [AC1] interface gigabitethernet 0/0/5
    [AC1-GigabitEthernet0/0/5] port link-type trunk
    [AC1-GigabitEthernet0/0/5] port trunk allow-pass vlan 20
    [AC1-GigabitEthernet0/0/5] quit# 配置Eth-Trunk1接口允许VLAN10和VLAN20通过。[AC1] interface Eth-Trunk1
    [AC1-Eth-Trunk1] port link-type trunk
    [AC1-Eth-Trunk1] port trunk allow-pass vlan 10 20

  3. 配置Eth-Trunk1的负载分担方式。AC2配置与AC1类似,不再赘述。
    
    [AC1-Eth-Trunk1] load-balance src-dst-mac
    [AC1-Eth-Trunk1] quit

  4. 验证配置结果

    在任意视图下执行display eth-trunk 1命令,检查Eth-Trunk是否创建成功,及成员接口是否正确加入。[AC1] display eth-trunk 1
    Eth-Trunk1's state information is: 
    WorkingMode: NORMAL         Hash arithmetic: According to src-dst-mac            
    Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 8                
    Operate status: up          Number Of Up Port In Trunk: 3
    --------------------------------------------------------------------------------
    PortName                      Status      Weight
    GigabitEthernet0/0/1          Up          1
    GigabitEthernet0/0/2          Up          1
    GigabitEthernet0/0/3          Up          1

    从以上信息看出Eth-Trunk 1中包含3个成员接口GigabitEthernet0/0/1、GigabitEthernet0/0/2和GigabitEthernet0/0/3。成员接口的状态都为Up。

配置文件
  • AC1的配置文件#
    sysname AC1
    #
    vlan batch 10 20
    # 
    interface Eth-Trunk1port link-type trunk port trunk allow-pass vlan 10 20load-balance src-dst-mac 
    # 
    interface GigabitEthernet0/0/1 eth-trunk 1
    # 
    interface GigabitEthernet0/0/2 eth-trunk 1
    # 
    interface GigabitEthernet0/0/3 eth-trunk 1
    #
    interface GigabitEthernet0/0/4 port link-type trunk port trunk allow-pass vlan 10
    #
    interface GigabitEthernet0/0/5 port link-type trunk port trunk allow-pass vlan 20
    #
    return
    AC2的配置文件#
    sysname AC2
    #
    vlan batch 10 20
    # 
    interface Eth-Trunk1port link-type trunk port trunk allow-pass vlan 10 20load-balance src-dst-mac 
    # 
    interface GigabitEthernet0/0/1 eth-trunk 1
    # 
    interface GigabitEthernet0/0/2 eth-trunk 1
    # 
    interface GigabitEthernet0/0/3 eth-trunk 1
    #
    interface GigabitEthernet0/0/4 port link-type trunk port trunk allow-pass vlan 10
    #
    interface GigabitEthernet0/0/5 port link-type trunk port trunk allow-pass vlan 20
    #
    return

http://www.lryc.cn/news/472079.html

相关文章:

  • 【Spring】Cookie与Session
  • chat_gpt回答:qt中,常见格式及格式转换
  • CSS兼容处理
  • 制氮机分子筛的材质选择
  • 使用Virtual Audio Cable捕获系统音频输出并使用Python处理
  • 微信小程序scroll-view吸顶css样式化表格的表头及iOS上下滑动表头的颜色覆盖及性能分析
  • HDU-1695 GCD
  • unity游戏开发之赛车游戏
  • 解决milvus migration 迁移数据到出现数据丢失问题
  • Python Flask 数据库开发
  • 深度学习(七)深度强化学习:融合创新的智能之路(7/10)
  • mac电脑通过 npm 安装 @vue/cli脚手架超时问题;
  • 【52 机器学习 | 基于KNN近邻和随机森林模型对用户转化进行分析与预测】
  • 【Linux】Zookeeper 部署
  • 配置mysql 主主模式 GTID
  • 推荐一款多显示器屏幕亮度调节工具:Twinkle Tray
  • 第十一章 Shiro会话管理和加密
  • DDR4单个DQ仿真实战(一)
  • Android Studio插件版本与Gradle 版本对应关系
  • Uni-App-01
  • Java版本鸿鹄工程项目管理系统源码概述
  • 基于echarts、php、Mysql开发的数据可视化大屏
  • Me-and-My-Girlfriend-1
  • R语言实现GWAS meta分析(1)
  • Kafka-代码示例
  • LLVM - 编译器前端-llvm 基本块、指令、函数 的关系
  • 探索人工智能在自然语言处理中的应用
  • IFC模型文本的含义
  • 构建高效评奖系统:SpringBoot在教育领域的应用
  • 「二叉树进阶题解:构建、遍历与结构转化全解析」