eth-trunk

作者: 虽然逆风依然不羁 | 来源:发表于2020-06-25 00:24 被阅读0次

    一、eth-trunk链路聚合分类


    1、手工链路聚合               

    只能实现活动链路流量的负载分担;

    手工完成eth-trunk接口的建立、成员端口的加入、都是活动接口;

    2、静态LACP链路聚合     

    实现活动链路流量的负载分担,同时可实现非活动链路的冗余备份;

    手工完成eth-trunk接口的建立、成员端口的加入,LACP协议负责确定活动接口;

    LACP协议协商失败后,eth-trunk接口down,成员端口都不能转发流量;

    3、动态LACP链路聚合     

    LACP协商失败后,eth-trunk接口down,成员接口继承属性独立转发流量;

    二、LACP工作原理


    1、主动端和被动端

    1、系统LACP优先级数值越小越优先;

    2、系统MAC地址数值越小越优先;

    2、活动接口和非活动接口

    1、接口LACP优先级数值越小越优先;

    2、接口ID数值越小越优先;

    3、负载分担方式

    1、src-ip

    2、dst-ip

    3、src-dst-ip

    4、src-mac

    5、dst-mac

    6、src-dst-mac

    4、最大活动接口数

    成员端口超过最大活动接口数,成员端口按优先级组成M:N冗余备份;

    5、LACP抢占和抢占延迟

    优先级高的接口故障后恢复,等待抢占延迟时间超时后,从备用接口变为活动接口;

    三、静态LACP链路聚合配置


    以SW1为LACP主动端,SW2为LACP被动端,进行静态LACP链路聚合配置:

    SW1:

    #

    lacp priority 100

    #

    interface Eth-Trunk1

    port link-type trunk

    port trunk allow-pass vlan 2 to 4094

    mode lacp-static

    load-balance src-dst-mac

    lacp preempt enable

    max active-linknumber 2

    #

    interface GigabitEthernet0/0/1

    eth-trunk 1

    #

    interface GigabitEthernet0/0/2

    eth-trunk 1

    #

    interface GigabitEthernet0/0/3

    eth-trunk 1

    lacp priority 100

    #

    SW2:

    interface Eth-Trunk1

    port link-type trunk

    port trunk allow-pass vlan 2 to 4094

    mode lacp-static

    load-balance src-dst-mac

    #

    interface GigabitEthernet0/0/1

    eth-trunk 1

    #

    interface GigabitEthernet0/0/2

    eth-trunk 1

    #

    interface GigabitEthernet0/0/3

    eth-trunk 1

    相关文章

      网友评论

          本文标题:eth-trunk

          本文链接:https://www.haomeiwen.com/subject/fzbhfktx.html