HowTo Configure MLAG+MAGP: Running Config Example

Version 7

    This post simply shows the running-config of two switches configured with a basic setup of MLAG+MAGP.

     

    >>Learn how to configure MLAG for free on the Mellanox Academy

     

    References

     

    Setup

    mlag_magp.png

     

     

    Switch Configuration - SX01, SX02

     

    # General

      lacp

      no spanning-tree

      ip routing

      protocol mlag

      dcb priority-flow-control enable force

      protocol magp

     

    # IPL configuration - General

     

      interface port-channel 1

      interface ethernet 1/35 channel-group 1 mode active

      interface ethernet 1/36 channel-group 1 mode active

      interface port-channel 1 dcb priority-flow-control mode on force

      interface port-channel 1 ipl 1

      vlan 4000

      interface vlan 4000

     

    # IPL configuration - IP configuration (for SX01)

      interface vlan 4000 ip address 10.10.10.1 255.255.255.0

      interface vlan 4000 ipl 1 peer-address 10.10.10.2

     

    # IPL configuration - IP configuration (for SX02)

      interface vlan 4000 ip address 10.10.10.2 255.255.255.0

      interface vlan 4000 ipl 1 peer-address 10.10.10.1

     

    # MLAG - general configuration

      mlag-vip my-mlag-vip-domain ip 10.209.28.200 /24 force

      mlag system-mac 00:00:5E:00:01:5D

      no mlag shutdown

     

    # MLAG interface configuration

      interface mlag-port-channel 1

      interface mlag-port-channel 2

      interface ethernet 1/1 mlag-channel-group 1 mode on

      interface ethernet 1/2 mlag-channel-group 2 mode on

      interface mlag-port-channel 1 switchport mode trunk

      interface mlag-port-channel 2 switchport mode trunk

      interface mlag-port-channel 1 no shutdown

      interface mlag-port-channel 2 no shutdown

     

    # VLAN and Interface VLAN configuration

      vlan 10

      vlan 20

      interface vlan 10

      interface vlan 20

     

    # Interface VLAN configuration for SX01

      interface vlan 10 ip address 11.11.10.101 255.255.255.0

      interface vlan 20 ip address 11.11.20.201 255.255.255.0

     

    # Interface VLAN configuration for SX02

      interface vlan 10 ip address 11.11.10.102 255.255.255.0

      interface vlan 20 ip address 11.11.20.202 255.255.255.0

     

    # MAGP Configuration

      interface vlan 10 magp 10

      interface vlan 20 magp 20

      interface vlan 10 magp 10 ip virtual-router address 11.11.10.100

      interface vlan 10 magp 10 ip virtual-router mac-address aa:bb:cc:dd:ee:10

      interface vlan 20 magp 20 ip virtual-router address 11.11.20.200

      interface vlan 20 magp 20 ip virtual-router mac-address aa:bb:cc:dd:ee:20

        

     

    Server Configuration:

    See example here (use bond mode 2)

     

    Linux Network bonding – setup guide | Cloudibee's Notes