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

链路聚合的作用与实例

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档

文章目录

  • 一、链路聚合
    • 1,链路聚合的绑定实现条件:
    • 2,链路聚合的优势
    • 二层聚合
    • 三层链路聚合



提示:以下是本篇文章正文内容,下面案例可供参考

一、链路聚合

链路聚合技术的含义:链路聚合是将一组物理接口捆绑在一起作为一个逻辑接口来增加带宽的一种方法,又称多接口负载均衡组成链路聚合组,通过在两台设备之间建立链路聚合组,可以提供更高的通讯带宽和更高的可靠性。链路聚合不仅为设备通信提供了冗余保护,而且不需要对硬件进行升级。

1,链路聚合的绑定实现条件:

1,每个Eth-Trunk接口下最多可以包含8个成员接口
2,成员接口不可配置任何业务和静态MAC地址
3,成员接口加入Eth-Trunk时,必须为缺省的hybrid类型接口
4,Eth-Trunk接口不能嵌套,即成员接口不能是Eth-Trunk
5,一个以太网接口只能加入一个Eth-Trunk接口,如果要加入其它Eth-Trunk接口,必须退出原来的Eth-Trunk接口
6,一个Eth-Trunk接口中的成员接口类型必须是同一类型,例如:FE口和GE口不能加入同一个Eth-Trunk接口
7,可以将不能接口板上的以太网接口加入到同一个Eth-Trunk
8,如果本地设备使用Eth-Trunk,与成员接口直连的对端接口必须捆绑在Eth-Trunk接口,两端才能正常通信,
9,当成员接口速率不一致时,实际使用中速率小的接口可能会出现拥塞,导致丢包
10,当成员接口加入Eth-Trunk后,学习MAC地址时是按照Eth-Trunk来学习的,而不是按照成员接口来学习

2,链路聚合的优势

增加带宽
提高可靠性
负载分担

二层聚合

代码如下(示例):在这里插入图片描述
[Huawei]vlan 2
[Huawei-vlan2]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 2
[Huawei-Ethernet0/0/1]q
[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]port link-type trunk
[Huawei-Eth-Trunk1]port trunk allow-pass vlan all
[Huawei-Eth-Trunk1]int e0/0/2
[Huawei-Ethernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment…done.
[Huawei-Ethernet0/0/2]int e0/0/3
[Huawei-Ethernet0/0/3]eth-trunk 1

LSW2:
[Huawei]vlan 2
[Huawei-vlan2]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 2
[Huawei-Ethernet0/0/1]q
[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]port link-type trunk
[Huawei-Eth-Trunk1]port trunk allow-pass vlan all
[Huawei-Eth-Trunk1]q
[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment…done.
[Huawei-Ethernet0/0/2]int e0/0/3
[Huawei-Ethernet0/0/3]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment…done.

三层链路聚合

在这里插入图片描述
CE1:
[~HUAWEI]interface Eth-Trunk 1
[*HUAWEI-Eth-Trunk1]undo portswitch
[*HUAWEI-Eth-Trunk1]ip add 10.1.1.1 24
[*HUAWEI-Eth-Trunk1]q
[*HUAWEI]int g1/0/0
[*HUAWEI-GE1/0/0]undo shutdown
[*HUAWEI-GE1/0/0]eth-trunk 1
[*HUAWEI-GE1/0/0]int g1/0/1
[*HUAWEI-GE1/0/1]undo shutdown
[*HUAWEI-GE1/0/1]eth-trunk 1
[*HUAWEI-GE1/0/1]q
[*HUAWEI]interface LoopBack 0
[*HUAWEI-LoopBack0]ip address 192.168.1.100 32
[*HUAWEI-LoopBack0]q
[*HUAWEI]ip route-static 192.168.2.100 32 10.1.1.2
[*HUAWEI]q
Warning: Uncommitted configurations found. Are you sure to commit them before ex
iting? [Y(yes)/N(no)/C(cancel)]:Y

CE2:
[~HUAWEI]int Eth-Trunk 1
[*HUAWEI-Eth-Trunk1]undo portswitch
[*HUAWEI-Eth-Trunk1]ip add 10.1.1.2 24
[*HUAWEI-Eth-Trunk1]q
[*HUAWEI]int g1/0/0
[*HUAWEI-GE1/0/0]undo shutdown
[*HUAWEI-GE1/0/0]eth-trunk 1
[*HUAWEI-GE1/0/0]int g1/0/1
[*HUAWEI-GE1/0/1]undo shutdown
[*HUAWEI-GE1/0/1]eth-trunk 1
[*HUAWEI-GE1/0/1]q
[*HUAWEI]interface LoopBack 0
[*HUAWEI-LoopBack0]ip add 192.168.2.100 32
[*HUAWEI-LoopBack0]q
[*HUAWEI]ip route-static 192.168.1.100 32 10.1.1.1
[*HUAWEI]q
Warning: Uncommitted configurations found. Are you sure to commit them before ex
iting? [Y(yes)/N(no)/C(cancel)]:Y


http://www.taodudu.cc/news/show-6309743.html

相关文章:

  • 【physx/wasm】在physx中添加自定义接口并重新编译wasm
  • excel---常用操作
  • Lora训练Windows[笔记]
  • linux基础指令讲解(ls、pwd、cd、touch、mkdir)
  • InnoDB 事务处理机制
  • 启明云端ESP32 C3 模组WT32C3通过 MQTT 连接 AWS
  • 链路聚合原理及配置过程
  • 链路聚合(eth-trunk)
  • 链路聚合的定义、链路聚合的概念和基本术语、链路聚合的特点
  • 基于vue编写的2048小游戏
  • 用Qt开发小游戏《愤怒的小鸟》
  • [效率提升]webstorm配置Prettier:代码自动格式,格式化时清除空行,修改使用代码模板
  • WebStorm+Vue-cli 配置alias 点击跳转无效问题
  • JavaScript葵花宝典(基础)
  • js Console 对象 - Kaiqisan
  • JS_01_变量_数据类型
  • vanilla_使用Vanilla JavaScript构建Cookie库
  • 笔记 - JavaScript - 超哥视频
  • JS知识点总结(全)
  • Vue.js + Vuex + TypeScript 实战项目开发与项目优化
  • node.js 从基础到操作数据库
  • vscode css智能补全_在 Webstorm 伤透我的心后,我决定尝试 VS Code
  • Js定时器倒计时及堆叠问题解析(附源码)
  • Webstorm干货(开发效率快到飞起!!!)
  • webstorm配置和使用
  • webstorm 风扇一直响_在 Webstorm 伤透我的心后,我决定尝试 VS Code
  • 如何使用 Javascript 截断/切片/修剪字符串中的最后一个字符?
  • 宝塔安装Jdk1.8
  • curl php 宝塔 开启_宝塔安装php失败
  • 安装宝塔后手动安装php,宝塔 安装 php扩展步骤
  • 测试工具和测试自动化
  • Linux下自动化工具
  • 自动化测试概述/自动化工具
  • 自动化测试工具简介
  • 【选型】常用的自动化测试工具
  • 如何选择合适的网络自动化工具