QCNA学习笔记-以太链路聚合

链路聚合的作用

增加链路带宽

提供链路可靠性

在一定位置上消除STP

链路聚合的概念

链路聚合(Link Aggregation)是将一组物理接口捆绑在一起作为一个逻辑接口来增加带宽的一种方法,又称为多接口负载均衡组(Load Sharing Group)或链路聚合组

通过在两台设备之间建立链路聚合组,可以提供更高的通讯带宽和更高的可靠性。链路聚合不仅为设备间通信提供了冗余保护,而且不需要对硬件进行升级。

静态聚合

双方系统间不使用聚合协议来协商链路信息

动态聚合

双方系统间使用聚合协议来协商链路信息

LACP(链路聚合控制协议)是一种基于IEEE802.3ad标准的、能够实现链路动态聚合的协议

链路捆绑的条件

成员接口必须是同一类型(相同的G口、相同的快速以太网口等)

物理接口的数量、速率、双工方式、流配置必须一致

VLAN端口模式必须相同,本征VLAN允许和VLAN在trunk上需求相同

如果是接入接口,需要相同的接入VLAN

华为设备必须为缺省的hybird类型接口

通常最多包含8个成员接口

不能嵌套,成员接口不能是Eth-trunk

以太链路聚合的基本配置(华为)

[SW1]int Eth-Trunk 0
[SW1-Eth-Trunk0]trunkport g0/0/5
[SW1-Eth-Trunk0]trunkport g0/0/6
!
[SW2]int Eth-Trunk 0
[SW2-Eth-Trunk0]trunkport GigabitEthernet 0/0/5 to 0/0/6
验证:
[SW1]dis eth-trunk 0
Eth-Trunk0'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/5          Up          1      
GigabitEthernet0/0/6          Up          1  
[SW1]display interface Eth-Trunk 0
Eth-Trunk0 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-ccb7-3b11
Current system time: 2019-11-18 21:00:32-08:00
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
-----------------------------------------------------
PortName                      Status      Weight
-----------------------------------------------------
GigabitEthernet0/0/5          UP          1
GigabitEthernet0/0/6          UP          1
-----------------------------------------------------
The Number of Ports in Trunk : 2
The Number of UP Ports in Trunk : 2
[SW2]dis stp brief 
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE
   0    Eth-Trunk0                  ROOT  FORWARDING      NONE

思科以太聚合

SW1(config)#interface range e1/2 - 3
SW1(config-if-range)#shutdown //至关重要的命令
SW1(config-if-range)#channel-group 10 mode on 
Creating a port-channel interface Port-channel 10
SW1(config-if-range)#no shutdown 
验证:
SW2#show etherchannel summary 
Flags:  D - down        P - bundled in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      N - not in use, no aggregation
        f - failed to allocate aggregator

        M - not in use, minimum links not met
        m - not in use, port not aggregated due to minimum links not met
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port

        A - formed by Auto LAG


Number of channel-groups in use: 1
Number of aggregators:           1

Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
10     Po10(SU)         -        Et1/2(P)    Et1/3(P)  

建议:删掉链路聚合
SW2(config-if-range)#no channel-group
删掉逻辑链路聚合接口
SW2(config)#no interface port-channel 10

思科注意:先shutdown、再配置、最后两端快速开启

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值