其他分享
首页 > 其他分享> > 链路聚合笔记

链路聚合笔记

作者:互联网

链路聚合笔记
链路聚合
在ARG3系列路由器和X7系列交换机上默认最多8条。
负载均衡

    手工分摊
    静态LACP(支持链路备份)

[LSW1]interface Eth-Trunk 1
[LSW1-Eth-Trunk1]mode manual load-balance 

[LSW1]interface GigabitEthernet 0/0/2  
[LSW1-GigabitEthernet0/0/2]eth-trunk 1
[LSW1]interface GigabitEthernet 0/0/3
[LSW1-GigabitEthernet0/0/3]eth-trunk 1

[LSW1]display eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: NORMAL         Hash arithmetic: According to SIP-XOR-DIP         
Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 8              
Operate status: up          Number Of Up Port In Trunk: 2                     
--------------------------------------------------------------------------------
PortName                      Status      Weight 
GigabitEthernet0/0/2          Up          1      
GigabitEthernet0/0/3          Up          1      

[LSW2]interface Eth-Trunk 1
[LSW2-Eth-Trunk1]mode manual load-balance 

[LSW2]interface GigabitEthernet 0/0/2
[LSW2-GigabitEthernet0/0/2]eth-trunk 1
[LSW2]interface GigabitEthernet 0/0/3
[LSW2-GigabitEthernet0/0/3]eth-trunk 1
[LSW2]display eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: NORMAL         Hash arithmetic: According to SIP-XOR-DIP         
Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 8              
Operate status: up          Number Of Up Port In Trunk: 2                     
--------------------------------------------------------------------------------
PortName                      Status      Weight 
GigabitEthernet0/0/2          Up          1      
GigabitEthernet0/0/3          Up          1      

[LSW1]interface Eth-Trunk 1
[LSW1-Eth-Trunk1]port link-type trunk 

[LSW1-Eth-Trunk1]port trunk allow-pass vlan all 
[LSW2]interface Eth-Trunk 1

[LSW2-Eth-Trunk1]port link-type trunk 
[LSW2-Eth-Trunk1]port trunk allow-pass vlan all

[LSW1]display interface Eth-Trunk 1
Eth-Trunk1 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW:
 2G, Current BW: 2G, The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc55-5c26
Current system time: 2020-08-24 20:58:39-08:00
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
-----------------------------------------------------
PortName                      Status      Weight
-----------------------------------------------------
GigabitEthernet0/0/2          UP          1
GigabitEthernet0/0/3          UP          1
-----------------------------------------------------
The Number of Ports in Trunk : 2
The Number of UP Ports in Trunk : 2

链路聚合笔记
LACP静态
[LSW3]interface Eth-Trunk 1
[LSW3-Eth-Trunk1]mode lacp-static

interface GigabitEthernet 0/0/2
eth-trunk 1
interface GigabitEthernet 0/0/3
eth-trunk 1
interface GigabitEthernet 0/0/4
eth-trunk 1

[LSW4]interface Eth-Trunk 1
[LSW4-Eth-Trunk1]mode lacp-static

interface GigabitEthernet 0/0/2
eth-trunk 1
interface GigabitEthernet 0/0/3
eth-trunk 1
interface GigabitEthernet 0/0/4
eth-trunk 1

[LSW3]display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC                               
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 32768      System ID: 4c1f-cce9-4dc2                         
Least Active-linknumber: 1  Max Active-linknumber: 8                          
Operate status: up          Number Of Up Port In Trunk: 3                     
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/2   Selected 1GE      32768   3      305     10111100  1     
GigabitEthernet0/0/3   Selected 1GE      32768   4      305     10111100  1     
GigabitEthernet0/0/4   Selected 1GE      32768   5      305     10111100  1     

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/2   32768    4c1f-cc57-54b2  32768   3      305     10111100
GigabitEthernet0/0/3   32768    4c1f-cc57-54b2  32768   4      305     10111100
GigabitEthernet0/0/4   32768    4c1f-cc57-54b2  32768   5      305     10111100

系统优先级默认32768
    值越小优先级越高,使用优先级选择活动端口
端口状态默认都是活动(selected)状态

[LSW3]lacp priority 100
[LSW3]display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC                               
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 100        System ID: 4c1f-cce9-4dc2                         
Least Active-linknumber: 1  Max Active-linknumber: 8                          
Operate status: up          Number Of Up Port In Trunk: 3                     
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/2   Selected 1GE      32768   3      305     10111100  1     
GigabitEthernet0/0/3   Selected 1GE      32768   4      305     10111100  1     
GigabitEthernet0/0/4   Selected 1GE      32768   5      305     10111100  1     

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/2   32768    4c1f-cc57-54b2  32768   3      305     10111100
GigabitEthernet0/0/3   32768    4c1f-cc57-54b2  32768   4      305     10111100
GigabitEthernet0/0/4   32768    4c1f-cc57-54b2  32768   5      305     10111100

调整链路最大条数
[LSW3]interface Eth-Trunk 1
[LSW3-Eth-Trunk1]max active-linknumber 2

[LSW3-Eth-Trunk1]display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC                               
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 100        System ID: 4c1f-cce9-4dc2                         
Least Active-linknumber: 1  Max Active-linknumber: 2                          
Operate status: up          Number Of Up Port In Trunk: 2                     
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/2   Selected 1GE      32768   3      305     10111100  1     
GigabitEthernet0/0/3   Selected 1GE      32768   4      305     10111100  1     
GigabitEthernet0/0/4   Unselect 1GE      32768   5      305     10100000  1     (超过2条)

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/2   32768    4c1f-cc57-54b2  32768   3      305     10111100
GigabitEthernet0/0/3   32768    4c1f-cc57-54b2  32768   4      305     10111100
GigabitEthernet0/0/4   32768    4c1f-cc57-54b2  32768   5      305     10110000

[LSW3]interface GigabitEthernet 0/0/2
[LSW3-GigabitEthernet0/0/2]lacp priority 100

[LSW3]interface GigabitEthernet 0/0/3
[LSW3-GigabitEthernet0/0/3]lacp priority 65535
[LSW3-GigabitEthernet0/0/3]

标签:32768,聚合,trunk,GigabitEthernet0,305,笔记,链路,interface,Eth
来源: https://blog.51cto.com/14015577/2523707