# Copyright (C) 2016-2017 Cumulus Networks, inc.
#
# All Rights reserved.
#
# This software is subject to the Cumulus Networks End User License Agreement available
# at the following locations:.
#
# Internet: https://cumulusnetworks.com/downloads/eula/latest/view/
#
# Cumulus Linux systems: /usr/share/cumulus/EULA.txt

Scenario
========


            ---------------                   ---------------
           |               | swp3       swp3 |               |
           |    switch1    |=================|    switch2    |
           | mgmt=10.0.0.1 | swp4       swp4 | mgmt=10.0.0.2 |
            ---------------                   ---------------
                   | swp1                            | swp1
                   |            ---------            |
                   |           |         |           |
                    -----------| host-11 |-----------
                               |         |
                                ---------

We want to create an MLAG peering relationship between switch1 and switch2 on
their swp3 and swp4 interfaces, create vlans 100-200, and dual connect host-11 to
swp1 on both switch1 and switch2.

You will need to configure switch1 and switch2, the steps for both are
very similar.

- create the peering; select one switch to be primary and the other secondary
  - backup-ip is an optional (recommened) IP address that is separately reachable

- create VLANs 100-200

- configure a host facing interface for clag
  - switch1 and switch2 MUST use the same clag-id for host-11

- connect the clag to host-11 to vlan 100 untagged

- review and commit

net commands
============

switch1# net add clag peer sys-mac 44:38:39:FF:01:01 interface swp3-4 primary backup-ip 10.0.0.2
switch1# net add vlan 100-200
switch1# net add clag port bond bond-to-host-11 interface swp1 clag-id 1
switch1# net add bond bond-to-host-11 bridge access 100
switch1# net pending
switch1# net commit

switch2# net add clag peer sys-mac 44:38:39:FF:01:01 interface swp3-4 secondary backup-ip 10.0.0.1
switch2# net add vlan 100-200
switch2# net add clag port bond bond-to-host-11 interface swp1 clag-id 1
switch2# net add bond bond-to-host-11 bridge access 100
switch2# net pending
switch2# net commit

Verification
============
switch1# net show interface
switch1# net show clag
