------------恢复内容开始------------

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

*验证命令:[s1]display eth-trunk   1 

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

*将捆绑端口配置trunk,并通过所有VLAN
[s2-Eth-Trunk1]port link-type trunk     
[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的更多相关文章

  1. 实验五:配置Eth-Trunk链路聚合(手工负载分担模式)

    1.配置图 2.配置命令 LSW1的eth trunk 1配置如下: 配置命令如下: [S1]Eth-Trunk1 创建Eth-Trunk1端口 [S1-Eth-Trunk1]mode lacp-st ...

  2. 配置trunk和access

    配置trunk和access 拓扑图 PC地址设置 PC1 :192.168.1.1 vlan10 PC2 :192.168.1.2 vlan10 交换机配置 LSW3配置 <Huawei> ...

  3. 【原】iOS:手把手教你发布代码到CocoaPods(Trunk方式)

    Change Log: 2015.08.20 - 添加podspec文件更新方法 2015.08.19 - 首次发布 概述 关于CocoaPods的介绍不在本文的主题范围内,如果你是iOS开发者却不知 ...

  4. SVN中trunk、branches、tag的使用

     我相信初学开发在SVN作为版本管理时,都估计没可能考虑到如何灵活的运用SVN来管理开发代码的版本,下面我就摘录一篇文章来简单说明SVN里的trunk,branched,tags这个三个文件目录的用法 ...

  5. trunk 的坑

    三层交换机A和三层交换机B之间原本配置有trunk口,如再用trunk连二层交换机会导致环路,网络不通.将L3 A和L3-B之间断开正常.

  6. 发布自己的pods到CocoaPods trunk 及问题记录

    这两天准备把之前写的一些小玩意添加到pods库中去,参考了一些资料后进行操作,实际中也遇到了一些问题,记录下来,问题及解决方式在后面. 参考内容转载如下: 首先更新了用trunk之后,CocoaPod ...

  7. Access、Hybrid和Trunk

    以太网端口有三种链路类型:Access.Hybrid和Trunk.Access类型的端口只能属于1个VLAN,一般用于连接计算机的端口:Trunk类型的端口可以属于多个VLAN,可以接收和发送多个VL ...

  8. TRUNK的作用功能.什么是TRUNK

    TRUNK的作用功能.什么是TRUNK(转)  [复制链接]   发表于 2011-11-24 11:01 | 来自  51CTO网页 在技术领域中把TRUNK翻译为中文是“主干.干线.中继线.长途线 ...

  9. svn三大目录trunk、branch和tag

    SVN中Branch和tag的比较在SVN中Branch和tag在一个功能选项中,在使用中也往往产生混淆.在实现上,branch和tag,对于svn都是使用copy实现的,所以他们在默认的权限上和一般 ...

  10. TCP/IP协议学习(三) STM32中ETH驱动配置注意事项

    1.MII/RMII/SMI接口连接和配置 SMI又称站点管理接口,用于cpu与外置PHY芯片通讯,配置相关参数,包含MDC和MDIO两个管脚(CPU上有对应引脚,当然用普通GPIO口模拟SMI管理也 ...

随机推荐

  1. 在 .NET Core 5 中集成 Create React app

    翻译自 Camilo Reyes 2021年2月22日的文章 <Integrate Create React app with .NET Core 5> [1] Camilo Reyes ...

  2. SDK音频测试流程

    概述 在上篇文章中,给小伙伴们讲述了sdk模板在渲染中的流程,我们简单来回顾一下,主要讲述了数据创建.素材替换.音频.文字等四部分,在上次讲述中也因为时间于原因没有特别仔细的去讲述他们.上次我们说到最 ...

  3. WPF3D立方体图形展开动画思路

    WPF3D立方体图形展开动画 效果图: 规定: 立方体中心为(000),棱长为2,则(111)(-1-1-1)等1,-1三维组合的八个点为其顶点 坐标系: 补充: WPF 3D 分为中心对称旋转(Ro ...

  4. 解决跨域问题chrome浏览器插件

    https://www.crx4chrome.com/crx/53489/ 解决chrome浏览器跨域的问题

  5. [SIGIR2020] Sequential Recommendation with Self-Attentive Multi-Adversarial Network

    这篇论文主要提出了一个网络,成为Multi-Factor Generative Adversarial Network,直接翻译过来的话就是多因子生成对抗网络.主要是期望能够探究影响推荐的其他因子(因 ...

  6. 01-MySQL Linux安装

    一.检查当前系统是否安装过mysql rpm -qa|grep mysql 或 ps -ef|grep mysql 二.安装mysql服务端 rpm -ivh MySQL-server-5.5.48- ...

  7. day-9 xctf-int_overflow

    xctf-int_overflow 题目传送门:https://adworld.xctf.org.cn/task/answer?type=pwn&number=2&grade=0&am ...

  8. Day07_36_Iterator迭代器

    Iterator Iterator Iterator iterator(); 获取集合所依赖的迭代对象 通过迭代器iterator()中的方法完成集合的迭代(遍历),这种方式是所有集合通用的遍历方法. ...

  9. 2.1.4- css 样式规则

    CSS初识 CSS(Cascading Style Sheets) CSS通常称为CSS样式表或层叠样式表(级联样式表),主要用于设置HTML页面中的文本内容(字体.大小.对齐方式等).图片的外形(宽 ...

  10. postman传入cookie的三种方式

    1.直接在环境变量里面设置 2.在登录接口的tests,把返回值的cookie设置为全局变量 3.直接在cookie里面传入