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