Managing switch pairs
Note that this part of the documentation uses the old 6.4 CLI but equivalent 7.0 commands exist. Consult getting started with the CLI for more details.
In order to enable the creation of M-LAG or equivalent multi-chassis link aggregations the admins must mark the switches that form pairs.
Create a switch pair
Section titled “Create a switch pair”Ensure both switches are added to the system and configured using either the UI or the switch create CLI command.
Use the CLI to create the switch pair between switch 10 and 20:
- List the registered switches to get the IDs:
metalcloud-cli switch list+-------+------------+-------------------+-------+-------------+----------+| ID | IDENTIFIER | SITE | DRIVER| PROVISIONER | MGMT IP |+-------+------------+-------------------+-------+-------------+----------+| 4 | sw1-env2 | us12-chi-qts01-dc | os_10 | evpnvxlanl2 | 100.0.1.6 || 5 | sw2-env2 | us12-chi-qts01-dc | os_10 | evpnvxlanl2 | 100.0.1.7 |+-------+------------+-------------------+-------+-------------+----------+Total: 2 Switches- Create the switch pair between the two switches
metalcloud-cli switch-pair create --switch1 4 --switch2 5Listing switch pairs
Section titled “Listing switch pairs”To list the switch pairs to see if the switch pair was created:
metalcloud-cli switch-pair list+-------+---------------+---------------+-------+| ID | Switch1 | Switch2 | TYPE |+-------+---------------+---------------+-------+| 5 | sw1-env2 (#4) | sw2-env2 (#5) | mlag |+-------+---------------+---------------+-------+Total: 1 Switch linksDeleting switch pairs
Section titled “Deleting switch pairs”metalcloud-cli switch-pair delete --switch1 4 --switch2 5