码迷,mamicode.com
首页 > 其他好文 > 详细

链路聚合LACP模式配置

时间:2020-06-13 00:11:44      阅读:362      评论:0      收藏:0      [点我收藏+]

标签:ima   eth-trunk   type   png   pre   ber   允许   batch   priority   

链路聚合LACP模式配置

1 问题
交换机之间的链路如何通过自动方式实现链路的捆绑?
配置思路:
1.终端pc设置
2.交换机设置
-建立vlan 10 20
-pc与交换机接口设置acc加入对应vlan
-创建eth-trunk1
-设置手工分担模式
[SW1-Eth-Trunk1]mode lacp-static /设置自动工作模式
-添加成员进入trunkport g0/0/1
-在int eth-trunk 1 接口设置trunk 允许vlan all
-[SW2]lacp priority 100 /设置优先级100
-[SW2-Eth-Trunk2]max active-linknumber 2 /设置链路最大连接数
-[SW2-Eth-Trunk2]lacp preempt enable /设置抢占功能 要求两个交换机都要设置
技术图片

[SW1]int g0/0/4 

[SW1-GigabitEthernet0/0/4]port link-type acces
[SW1]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int g0/0/4
[SW1-GigabitEthernet0/0/4]port default vlan 10
[SW1]int g0/0/5
[SW1-GigabitEthernet0/0/5]port link-type acces
[SW1-GigabitEthernet0/0/5]port default vlan 20
[SW1-GigabitEthernet0/0/5]q
[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]mode lacp-static
[SW1-Eth-Trunk1]trunkport g0/0/1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk1]trunkport g0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk1]trunkport g0/0/3
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk1]lacp preempt enable
[SW1]dis eth-trunk 1
[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]port link-type trunk
[SW1-Eth-Trunk1]port trunk allow-pas vlan all
[SW1-Eth-Trunk1]q
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]shutdown
[SW1-GigabitEthernet0/0/1]q
[SW1]dis eth-trunk 1
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]undo shutdown

[SW2]lacp priority 100 /设置优先级100
[SW2]int Eth-Trunk 2
[SW2-Eth-Trunk2]max active-linknumber 2 /设置链路最大连接数
[SW2-Eth-Trunk2]q
[SW2]dis eth-trunk 2
[SW2-Eth-Trunk2]lacp preempt enable /设置抢占功能

链路聚合LACP模式配置

标签:ima   eth-trunk   type   png   pre   ber   允许   batch   priority   

原文地址:https://blog.51cto.com/14806008/2504131

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!