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 /設置搶佔功能 要求兩個交換機都要設置ide
[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 code
[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 /設置搶佔功能blog