eth-trunk
------------恢复内容开始------------
1.eth-trunk 是什么
*链路 聚合技术
2.做什么用的
*作为一种链路捆绑技术,可以把多个独立物理接口绑定在一起,作为一个大带宽的逻辑接口使用
3.有什么优点
*增加设备之间的互联带宽
*增加设备之间的可靠性
*对流量负载均衡,提高链路利用率
4.配置方式
*静态手动配置
*动态LACP配置 【老机器可能没有这功能,只能静态配置】
5.静态配置案例
要求增加一条物理链路,增加互联带宽

*创建VLAN 10 20,配置基础命令将 交换机连接pc的线路配置为access ,并加入对应VLAN 【前面介绍VLAN的随笔里有详细操作流程】
*创建链路捆绑,静态手动配置
s1]interface Eth-Trunk 1 创建链路 1
[s1-Eth-Trunk1]mode manual load-balance 链路·捆绑· 负载均衡
[s1-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 加入捆绑链路。。。。
Info: This operation may take a few seconds. Please wait for a moment...done.
[s1-Eth-Trunk1]trunkport GigabitEthernet 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[s1-Eth-Trunk1]port link-type trunk
[s1-Eth-Trunk1]port trunk allow-pass vlan all
[s2]interface Eth-Trunk 2
[s2-Eth-Trunk2]mode manual load-balance
[s2-Eth-Trunk2]trunkport GigabitEthernet 0/0/1
Info: This operation may take a few seconds. Please wait for a moment...done.
[s2-Eth-Trunk2]trunkport GigabitEthernet 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[s2-Eth-Trunk2]port link-type trunk
[s2-Eth-Trunk2]port trunk allow-pass vlan all
6.动态配置案例
要求两条链路带宽正常运作, 并能在其中一端口 无法联通正常运作时,第三条链路作为他的备份

*创建VLAN 10 20,配置基础命令将 交换机连接pc的线路配置为access ,并加入对应VLAN 【前面介绍VLAN的随笔里有详细操作流程】
*创建捆绑链路,并动态LACP配置
s1]interface Eth-Trunk 1 创建捆绑链路
[s1-Eth-Trunk1]mode lacp-static LACP模式
[s1-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 捆绑加入.......
Info: This operation may take a few seconds. Please wait for a moment...done.
[s1-Eth-Trunk1]trunkport GigabitEthernet 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[s1-Eth-Trunk1]trunkport GigabitEthernet 0/0/3
Info: This operation may take a few seconds. Please wait for a moment...done.
s2]interface Eth-Trunk 1
[s2-Eth-Trunk1]mode lacp-static
[s2-Eth-Trunk1]trunkport GigabitEthernet 0/0/1
Info: This operation may take a few seconds. Please wait for a moment...done.
[s2-Eth-Trunk1]trunkport GigabitEthernet 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[s2-Eth-Trunk1]trunkport GigabitEthernet 0/0/3
Info: This operation may take a few seconds. Please wait for a moment...done.
*要决定哪两根链路启动,哪一根做备份,必需有一方能决定,例如 设置主动端是s2
【s2】lacp priority 100 LACP 优先级为100
*只有两条链路能连通,一条做备份
*[s2-Eth-Trunk1]max active-linknumber 2
允许连通链路2根【默认8根】
*确保其中一端口 无法联通正常运作时,第三条链路作为他的备份
[s2-Eth-Trunk1]lacp preempt enable 在主动端开启链路抢占 30s
[s2-Eth-Trunk1]port trunk allow-pass vlan all
*验证命令
display eth-trunk 1
如何查看
Eth-Trunk1's state information is:
Local:本地
LAG ID: 1 WorkingMode: STATIC
Preempt Delay Time: 30抢占延迟 Hash arithmetic: According to SIP-XOR-DIP
System Priority: 100 System ID: 4c1f-ccef-28df
Least Active-linknumber: 1 Max Active-linknumber: 2 允许端口数2 【默认8 】
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/1 Selected 1GE 32768 2 305 10111100 1
GigabitEthernet0/0/2 Selected 1GE 32768 3 305 10111100 1
GigabitEthernet0/0/3 Unselect 1GE 32768 4 305 10100000 1
Partner: 对方
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/1 32768 4c1f-cc07-0ecb 32768 4 305 10111100
GigabitEthernet0/0/2 32768 4c1f-cc07-0ecb 32768 2 305 10111100
GigabitEthernet0/0/3 32768 4c1f-cc07-0ecb 32768 3 305 10110000
------------恢复内容结束------------
eth-trunk的更多相关文章
- 实验五:配置Eth-Trunk链路聚合(手工负载分担模式)
1.配置图 2.配置命令 LSW1的eth trunk 1配置如下: 配置命令如下: [S1]Eth-Trunk1 创建Eth-Trunk1端口 [S1-Eth-Trunk1]mode lacp-st ...
- 配置trunk和access
配置trunk和access 拓扑图 PC地址设置 PC1 :192.168.1.1 vlan10 PC2 :192.168.1.2 vlan10 交换机配置 LSW3配置 <Huawei> ...
- 【原】iOS:手把手教你发布代码到CocoaPods(Trunk方式)
Change Log: 2015.08.20 - 添加podspec文件更新方法 2015.08.19 - 首次发布 概述 关于CocoaPods的介绍不在本文的主题范围内,如果你是iOS开发者却不知 ...
- SVN中trunk、branches、tag的使用
我相信初学开发在SVN作为版本管理时,都估计没可能考虑到如何灵活的运用SVN来管理开发代码的版本,下面我就摘录一篇文章来简单说明SVN里的trunk,branched,tags这个三个文件目录的用法 ...
- trunk 的坑
三层交换机A和三层交换机B之间原本配置有trunk口,如再用trunk连二层交换机会导致环路,网络不通.将L3 A和L3-B之间断开正常.
- 发布自己的pods到CocoaPods trunk 及问题记录
这两天准备把之前写的一些小玩意添加到pods库中去,参考了一些资料后进行操作,实际中也遇到了一些问题,记录下来,问题及解决方式在后面. 参考内容转载如下: 首先更新了用trunk之后,CocoaPod ...
- Access、Hybrid和Trunk
以太网端口有三种链路类型:Access.Hybrid和Trunk.Access类型的端口只能属于1个VLAN,一般用于连接计算机的端口:Trunk类型的端口可以属于多个VLAN,可以接收和发送多个VL ...
- TRUNK的作用功能.什么是TRUNK
TRUNK的作用功能.什么是TRUNK(转) [复制链接] 发表于 2011-11-24 11:01 | 来自 51CTO网页 在技术领域中把TRUNK翻译为中文是“主干.干线.中继线.长途线 ...
- svn三大目录trunk、branch和tag
SVN中Branch和tag的比较在SVN中Branch和tag在一个功能选项中,在使用中也往往产生混淆.在实现上,branch和tag,对于svn都是使用copy实现的,所以他们在默认的权限上和一般 ...
- TCP/IP协议学习(三) STM32中ETH驱动配置注意事项
1.MII/RMII/SMI接口连接和配置 SMI又称站点管理接口,用于cpu与外置PHY芯片通讯,配置相关参数,包含MDC和MDIO两个管脚(CPU上有对应引脚,当然用普通GPIO口模拟SMI管理也 ...
随机推荐
- c/c++ switch case内括号
如果在case语句中有定义变量,则必须要加{},否则会报错.
- EfficientNet & EfficientDet 论文解读
概述 总体而言,这两篇论文都在追求一件事,那就是它们名字中都有的 efficient.只是两篇文章的侧重点不一样,EfficientNet 主要时研究如何平衡模型的深度 (depth).宽度 (wid ...
- bootstrap期末考试习题整理
1.Which is true about Bootstrap? A. Bootstrap is the most popular and powerful front-end (HTML, CSS, ...
- 更改当前目录--cd
pwd 显示当前所在的目录路径 cd ../ 回到上一层目录 cd ../../ 回到上上层目录 cd / 回到根目录 cd ~ 回到当前用户的根目录 c ...
- 翻译:《实用的Python编程》08_03_Debugging
目录 | 上一节 (8.2 日志) | 下一节 (9 包) 8.3 调试 调试建议 假设程序崩溃了: bash % python3 blah.py Traceback (most recent cal ...
- Recoil 中多级数据联动及数据重置的合理做法
前情回顾 书接上回,前面引出了在数据存在级联的情况下,各下拉框之间的默认值及值变化的处理.简单回顾一下: 场景是: 地域下拉决定可选的可用区 默认选中第一个地域,通过设置 atom 的 default ...
- 【CTF】XCTF 我们的秘密是绿色的 writeup
题目来源:SSCTF-2017 题目链接:https://adworld.xctf.org.cn/task/answer?type=misc&number=1&grade=1& ...
- JavaScript中的new,bind,call,apply的简易实现
Function原型链中的 apply,call 和 bind 方法是 JavaScript 中相当重要的概念,与 this 关键字密切相关,相当一部分人对它们的理解还是比较浅显,所谓js基础扎实,绕 ...
- Flutter 状态管理- 使用 MobX
文 / Paul Halliday, developer.school 创始人 众所周知,状态管理是每个软件项目都需要持续迭代更新的方向.它并不是一个「一次性」的工作, 而需要不断确保你遵循的最佳实践 ...
- Proxy.newProxyInstance源码探究
JDK动态代理案例实现:实现 InvocationHandler 接口重写 invoke 方法,其中包含一个对象变量和提供一个包含对象的构造方法: public class MyInvocationH ...