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

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. 生成元(JAVA语言)

    package 第三章; import java.util.Scanner; public class 生成元 { public static void main(String[] args) { / ...

  2. 【小白学算法】5.链表(linked list)、链表的添加

    链表其实也就是 线性表的链式存储结构,与之前讲到的顺序存储结构不同. 我们知道顺序存储结构中的元素地址都是连续的,那么这就有一个最大的缺点:当做插入跟删除操作的时候,大量的元素需要移动. 如图所示,元 ...

  3. LamPiao靶机work_through

    前言 oscp靶机系列的第二篇.只追求做出来的话,这靶机蛮简单的.但是为了提升难度,尽量避免使用msf--毕竟考试只准用一次嘛,自己写了个exp. 正文 主机发现 nmap -sP 192.168.2 ...

  4. 2020牛客NOIP赛前集训营-普及组(第二场)A-面试

    面 试 面试 面试 题目描述 牛牛内推了好多人去牛客网参加面试,面试总共分四轮,每轮的面试官都会对面试者的发挥进行评分.评分有 A B C D 四种.如果面试者在四轮中有一次发挥被评为 D,或者两次发 ...

  5. [hash-bfs]USACO 3.2 Magic Squares 魔板

    魔 板 魔板 魔板 题目描述 在成功地发明了魔方之后,拉比克先生发明了它的二维版本,称作魔板.这是一张有8个大小相同的格子的魔板: 1 2 3 4 8 7 6 5 我们知道魔板的每一个方格都有一种颜色 ...

  6. [面试仓库]HTML面试题汇总

      HTML这一块呢,说简单也简单,说难也不是那么容易.但我们在各个面试要求中,大部分都把HTML这一条摆在了第一位,重要性可想而知.这个位置算是有关HTML的一个汇总点了,亦会在这里及时补充. 1, ...

  7. 浅谈Android中的事件分发机制

    View事件分发机制的本质就是就是MotionEvent事件的分发过程,即MotionEvent产生后是怎样在View之间传递及处理的. 首先介绍一下什么是MotionEvent.所谓MotionEv ...

  8. 翻译:《实用的Python编程》09_02_Third_party

    目录 | 上一节 (9.1 包) | 下一节 (9.3 版本分发) 9.2 第三方模块 Python 拥有一个包含各种内置模块的大型库(自带电池(batteries included))(译注:&qu ...

  9. qsort 快排函数(C语言)

    qsort 快排函数(C语言) 函数原型 void qsort(void *base, size_t nitems, size_t size, int (*compar)(const void *, ...

  10. Typora配置PicGo时,提示Failed to fetch【Bug集中营】

    Typora配置PicGo时,提示Failed to fetch 两者配置的端口不一致造成的 打开Typora,选择文件-偏好设置-图像-验证图片上传选项,点击验证图片上传选项 会提示错误:Faile ...