HowTo Configure LACP on Mellanox Switches

Version 1

    This post explains how to configure LAG with LACP enabled on Mellanox switches.

     

    References

     

    Configuration

    1. Enable LACP on the switch:

    switch (config) # lacp

    2. Create a LAG interface:

    switch (config) # interface port-channel 1

    switch (config interface port-channel 1) # exit

    switch (config) #

    3. Add interfaces to this LAG in either LACP active or LACP passive modes:

    switch (config) # interface ethernet 1/1

    switch (config interface ethernet 1/1) # channel-group 1 mode active

    switch (config) # interface ethernet 1/2

    switch (config interface ethernet 1/2) # channel-group 1 mode passive

     

    Verification

    1. Check the LAG status:

    switch (config) # show interfaces port-channel summary

    Flags: D- Down, U - Up, P - Up in port-channel (members) I - Individual

     

    --------------------------------------------------------------------------------

    Group Port-      Type       Member Ports

    Channel

    --------------------------------------------------------------------------------

    1 Po1(U)         LACP       Eth1/1(U) Eth1/2(U)

    switch (config) #      

     

    2. Check LACP status on a member port:

    switch (config) # show lacp interfaces ethernet 1/1

    Port : 1/1

    -------------

     

     

    Port State = Up

    Channel Group : 1

    Pseudo port-channel = Po1

    LACP port-priority = 32768

    LACP Rate = Slow

    LACP Activity : Active

    LACP Timeout : Short

     

     

    Aggregation State : Aggregation, Defaulted,

     

     

                    LACP Port  Admin    Oper  Port       Port

    Port    State   Priority   Key      Key   Number     State

    -------------------------------------------------------------------

    1/1     Up       32768     13826   13826  0x23       0x1

    switch (config) #                     

    3. Check LACP counters on all ports running LACP:

    switch (config) # show lacp counters

    LACPDUs     Marker     Marker Response      LACPDUs

    Port      Sent Recv      Sent Recv         Sent Recv        Illegal    Unknown

    -----------------------------------------------------------------------------

    Port-channel: 1

    ------------------

    1/1       0   0           0   0             5865 5864            0       0

     

     

    1/2       0   0           0   0             5865 5864            0       0

     

     

    Troubleshooting

    1. You cannot mix static members and LACP members on the same LAG interface. Make sure that all the members on the same LAG have the same channel-group mode type

    • Static = mode on
    • LACP enabled = LACP mode either active or passive