链路聚合LACP模式配置

链路聚合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 /设置抢占功能 要求两个交换机都要设置
链路聚合LACP模式配置_第1张图片

[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模式配置)