CCNP学习笔记13-交换部分---EthernetChannel

            etherchannel 配置链路聚合


- 提高骨干链路带宽

- 提供骨干链路冗余

- 负载均衡:(区别于路由中的负载均衡)

        基于源IP或源mac

        基于目标IP,或目标IP



产生链路聚合 2种方法 

    1,静态配置

    2,动态协商:

            动态协商协议 dynamic trunk negotiation protocols

            PAgP:cisco私有

            LACP:IEEE 802.3ad标准


    静态配置: 

       SW1  s0/5-6 ================================== s-/5-6 SW2

        int range f0/5 -6                                int range f0/5 -6       

            no shut                                            no shut         

            channel-group 1 mode on                            channel-group 1 mode on

        两端 channel-group 编号本地有效,无需一致

        show etherchannel summary

                

    PAgP  

        模式 -1, desirable 主动协商

             -2, auto 被动协商

        配置:

        SW1:int range f0/5 -6                        SW2:int range f0/5 -6

        模式1:   channel-group 1 mode desirable                chann-group 1 mode des

            sho ether summ

        模式2:   chann 1 mode auto                             chann mode auto

            sho ether summ 

        模式3;    chann 1 mode on                               channe mode des

            sho ether summ 正常                            sho ether summ 就不正常


    捆绑access口 

        inter port-channel 1

            swithcport mode access

        sho int port-channel 1 swi

    捆绑 3 层口 

        int rnag f0/5 -6

            chann 1 mode on

            no shu

        int port-channel 1 

            ip add 12.1.1.1 255.255.255.0

捆绑总结:

        1,设备接口支持捆绑

        2,速率 双工 一致

        3,捆绑后,无法抓包

        4,捆绑3层口,配置IP时,必须配在port口上

        5,捆绑access口,必须属于相同vlan

        6,捆绑trunk口,允许通过的vlan必须相同

        7,接口配置STP,cost值只对stp协议生效,cost值不一致不影响portchannel的建立

        8,portchannel配置,会直接影响其下的物理口。反过来不影响

            捆绑之前,port会继承物理口的配置


ethernet channel 负载均衡  

 - 默认 基于源MAC的负载均衡

    配置 全局下:

    port-channel load-banlance src-mac

 - 查看

    sho ethernetchannel load-banlance








你可能感兴趣的:(channel,ethernet)