Different MLAG peerlink setup find

  • 1
  • Question
  • Updated 1 year ago
Hello,

When studying MLAG connection from

https://docs.cumulusnetworks.com/display/DOCS/Multi-Chassis+Link+Aggregation+-+MLAG

https://cumulusnetworks.com/learn/web-scale-networking-resources/validated-design-guides/Cumulus-Lin...

There are some different between peerlink setup.

Version 1

----
auto peerlink
iface peerlink
    bond-slaves swp31 swp32
 
auto peerlink.4090
iface peerlink.4090
    address 169.254.255.1/30
    clagd-backup-ip 192.168.0.22
    clagd-enable yes
    clagd-peer-ip 169.254.255.2
    clagd-sys-mac 44:39:39:FF:40:90
------

Version 2

-----------------
auto peerlink
iface peerlink
bond-slaves swp47 swp48
bond-mode 802.3ad
bond-miimon 100
bond-use-carrier 1
bond-lacp-rate 1
bond-min-links 1
bond-xmit-hash-policy layer3+4

auto peerlink.4094
iface peerlink.4094
address 169.254.1.1/30
clagd-enable yes
clagd-peer-ip 169.254.1.2
clagd-backup-ip 192.168.0.91/24
clagd-sys-mac 44:38:39:ff:40:94
---------------------

Q. Which one should be correct?  or they are apply to 
different case?  I assume it apply with current latest version 3.2.1

Thanks!
Photo of machiasiaweb

machiasiaweb

  • 930 Points 500 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Nipul Shah

Nipul Shah, Employee

  • 390 Points 250 badge 2x thumb
Hi,

Both configs are correct.
version1 above is the minimum required bond config. version2 shows the complete config, which you can configure, or you could just rely on defaults.
With newer versions of cumulus, you only need to define "bond-slaves" under the bond "peerlink". The rest of the bond parameters are default values. You only need to configure them if you would like to change a default value. 

Here is an example from a switch running 3.2.1. The first output shows what I actually configured, while the second output shows the running config for that interface. The "-r" option will show all the default config applied as well.

root@sw31:~# ifquery peerlink
auto peerlink
iface peerlink
bond-slaves swp1 swp2
root@sw31:~# ifquery -r peerlink
auto peerlink
iface peerlink
bond-lacp-bypass-allow 0
bond-slaves swp2 swp1
bond-mode 802.3ad
bond-use-carrier 1
bond-lacp-rate 1
bond-min-links 1
bond-ad-actor-system 2c:60:0c:59:a0:06
bond-miimon 100
bond-xmit-hash-policy layer3+4
bridge-vids 1-2 25