huawei--配置链路聚合

项目要求:

	LSW1和LSW2之间配置链路聚合,链路聚合分为手工和lacp两种模式。配置完后查看链路聚合状态。

项目实施:

(vlan10 20 30的创建命令vlan batch 10 20 30)

1、创建链路聚合组

LSW1

[SW1]interface Eth-Trunk 1

LSW2

[SW2]interface Eth-Trunk 1

2、端口加入链路聚合组

LSW1

[SW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/3 to 0/0/5

LSW2

[SW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/3 to 0/0/5

3、配置链路聚合组的传输模式为trunk

LSW1

[SW1-Eth-Trunk1]port link-type trunk

[SW1-Eth-Trunk1]port trunk allow-pass vlan 10 20 30

LSW2

[SW2-Eth-Trunk1]port link-type trunk

[SW2-Eth-Trunk1]port trunk allow-pass vlan 10 20 30

4、配置完后查看链路聚合状态

LSW1

LSW2

5、因为手工聚合没有冗余,修改成静态聚合。(修改前把trunk模式和接口去掉)

LSW1

[SW1]interface Eth-Trunk 1

[SW1-Eth-Trunk1]undo port tr al vlan 10 20 30

[SW1-Eth-Trunk1]undo port link-type

[SW1-Eth-Trunk1]undo trunkport GigabitEthernet 0/0/3 to 0/0/5

[SW1-Eth-Trunk1]mode lacp-static

LSW2

[SW2]interface Eth-Trunk 1

[SW2-Eth-Trunk1]undo port tr al vlan 10 20 30

[SW2-Eth-Trunk1]undo port link-type

[SW2-Eth-Trunk1]undo trunkport GigabitEthernet 0/0/3 to 0/0/5

[SW2-Eth-Trunk1]mode lacp-static

6、接口重新加入链路聚合组,并配置链路聚合组的传输模式为trunk

LSW1

[SW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/3 to 0/0/5

[SW1-Eth-Trunk1]port link-type trunk

[SW1-Eth-Trunk1]port trunk allow-pass vlan 10 20 30

LSW2

[SW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/3 to 0/0/5

[SW2-Eth-Trunk1]port link-type trunk

[SW2-Eth-Trunk1]port trunk allow-pass vlan 10 20 30

7、激活链路,并开启抢占模式

LSW1

[SW1-Eth-Trunk1]max active-linknumber 2

[SW1-Eth-Trunk1]lacp preempt enable

LSW2

[SW2-Eth-Trunk1]max active-linknumber 2

[SW2-Eth-Trunk1]lacp preempt enable

8、配置抢占时间(单位:秒),设置优先级使LSW1变成主设备(优先级默认是:32768,值越小优先级越高。)

LSW1

[SW1-Eth-Trunk1]lacp preempt delay 10

[SW1]lacp priority 32760 (优先级)

LSW2

[SW1-Eth-Trunk1]lacp preempt delay 10

9、配置完后查看链路聚合状态

LSW1

LSW2

最新文章

  1. DoTween 教程
  2. [转]linux之partprobe命令
  3. 【ACM/ICPC2013】树形动态规划专题
  4. xcode 自动添加注释,生成文档
  5. github 提交时候提示 org.eclipse.jgit.errors.ObjectWritingException: Unable to create new object: /usr/local/apache243/ht
  6. (转)div+css 布局经验 - 最简单的 = 最不变形的(原创技巧)
  7. 转:JavaScript函数式编程(三)
  8. CSS中的剪裁和遮罩
  9. Historical节点
  10. 自己动手编写IOC框架(四)
  11. L1-Day4
  12. linux下安装jdk 详细步骤(一条命令即可安装)
  13. GitLab管理之 - Gitlab 用户管理
  14. Oracle 树操作、递归查询(select…start with…connect by…prior)
  15. 路由器安装Openwrt&&***
  16. 使用JavaScript实现表现和数据分离
  17. Google Code Jam 2009 Qualification Round Problem B. Watersheds
  18. VS2008:Failed to return new Code Element
  19. Python itertools.combinations 和 itertools.permutations 等价代码实现
  20. 商品数量编辑按钮3D效果动画

热门文章

  1. ac自动姬
  2. ASP.NET 6.0 Core 迁移 ASP.NET Core 7.0
  3. 洛谷 P2440木材加工 题解
  4. Windows喝水记录工具v2.0
  5. 流程概述与顺序结构-选择结构_单if语句
  6. .NET周报 【2月第1期 2023-02-04】
  7. ThreadLocal 超强图解,这次终于懂了~
  8. 2211-13 flask模板
  9. Ribbon服务调用+负载均衡(入门)
  10. Rpc-实现Client对ZooKeeper的服务监听