HowTo Configure MLAG on Mellanox switches using MLAG Wizard

Version 22
    This post shows how to use the MLAG wizard to configure basic MLAG on Mellanox switches (with no MAGP).
    Before executing the wizard, make sure that you are familiar with manual MLAG configuration on Mellanox switches.

    References:

     

    Basic Setup Example:

    11.png

    Installation

    Download the package to one of the servers in your network (CentoOS/RHEL  6.x):

    # wget http://www.mellanox.com/downloads/solutions/vms/mlag-wizard-1.0.6-1.el6.tar.gz

    # tar -xf mlag-wizard-1.0.6-1.el6.tar.gz

    # ./mlag-wizard/mlag_install.sh

    # cd /opt/vms/src/mlag_edge_configuration_planner

    Prerequisites

    • Make sure that the MLAG switches have MLNX-OS software version of 3.3.5006 or later. Refer to HowTo Upgrade MLNX-OS Software on Mellanox switches for basic upgrade procedure.
    • It is recommended to have the MLAG switches clean from any networking configuration.

    Configuration

    # wget http://www.mellanox.com/downloads/solutions/vms/mlag_template.json /root/mlag.json

    Here is an example of the Json input file:

    {

    "switches": {

           

            "hosts": [                       # list containing 2 switches:

                "sx01",                      # Master switch and slave switch hostname/IP

                "sx02"

            ],

            "netmask": "255.255.252.0",      # management subnet

            "vip": "10.209.50.100",          # management virtual IP

            "switches_csv": "/root/switches.csv"   # full path to switches.csv file contains all the switches  credentials

        },

        "ipl": {

           

            "min_port": "35",                # IPL minimum port

            "max_port": "36",                # IPL maximum port

            "vlan": "5",                     # IPL VLAN ID

            "network": "192.168.10.0/30"     # IPL Network

        },

        "mlag": {

           

            "min_port": "1",                 # MLAG minimum port

            "max_port": "2",                 # Mlag maximum port

            "mlag_group": "mlag-group-1"     # MLAG group cluster

        },

    }

     

    Here is an example of the switches.csv file (the hostname can be either IP or hostname):

    Role,Hostname,Username,Password,Community

    tor_0,sx01,admin,admin,public

    tor_1,sx02,admin,admin,public

    Step 3: Execute the MLAG wizard

    # ./mlag_edge_configuration_planner.py –i /root/mlag.json -d /root/swithces

    Step 4: Repeat steps 1 to 3 for each pair of switches.

    Step 5: Execute the CLI Player to configure all the switches.

    # cd /opt/vms/src/cli_player

    # ./vms_cli_player.py -c /root/switches.csv -d /root/swithces


    For additional documentation and advance options refer to the manual located here: