SlideShare a Scribd company logo
®
®
MLAG: Invisible Layer 2 Redundancy
Scott Emery
Cumulus Networks
May 20, 2015
®
Agenda
u  What is MLAG?
u  How does MLAG work?
u  How to set up an MLAG
u  Tools for MLAG analysis and debugging
®
MLAG Introduction
You need to set up a rack of servers for a new
application
u  Add some extra servers for redundancy
u  Uplink to redundant core switches
u  Redundant Internet connections
u  Backup power with batteries and generators
u  Over-provisioned cooling
You receive a midnight call that everything is
down
®
MLAG Introduction
MLAG – A LAG across more than one node
u  Multi-homing for redundancy
u  Active-active to utilize all links which otherwise
may get blocked by Spanning Tree
u  No modification of LAG partner
®
MLAG Terminology
S1 S2
H1 H2 H3 H4 H5
Secondary Role
ISL – Inter-Switch Link
Dually Connected
Primary Role
Singly Connected
®
MLAG Partner View
S1 S2
H1 H2 H3 H4 H5
Switch
®
The Fundamental Job of MLAG
S1 S2
S1 S2
Make this:
Look like this:
Switch
®
MLAG and LACP
u  Both ends must run LACP
u  Normally, when connected
to two different systems,
only one link is used
•  Common system ID is used on
each switch
u  Identification of which ports
on each system are dual-
connected pairs
S1 S2
H1 H2 H3 H4 H5
®
Eliminating Duplicate Packets
u  BUM1 packets are flooded and result in:
§  Duplicate packets at dual-connected hosts
§  A dual-connected host receives packets which
it transmitted
1 BUM packets are: Broadcast, Unknown unicast, and Multicast
®
Eliminating Duplicate Packets
S1 S2
H1 H2 H3 H4 H5
H2 sends a BUM packet which goes up the link to S1
®
Eliminating Duplicate Packets
S1 sends the packet out all interfaces in the bridge, except the
interface on which the packet arrived
S1 S2
H1 H2 H3 H4 H5
®
Eliminating Duplicate Packets
S2 sends the packet out all interfaces in the bridge, except the
interface on which the packet arrived
S1 S2
H1 H2 H3 H4 H5
®
Eliminating Duplicate Packets
u  Dual-connected hosts receive duplicate
copies of the packet
u  Dual-connected hosts which send BUM
packets receive the packet they sent
u  To fix this: Packets received on the ISL are
not forwarded to dual-connected ports
®
Eliminating Duplicate Packets
S2 only sends packet out singly-connected interfaces
S1 S2
H1 H2 H3 H4 H5
®
MAC Address Learning
u  To act as a single logical switch, both switches
must synchronize their MAC address tables
§  Addresses learned on dual-connected ports are
added to the corresponding port on the other
switch
§  Addresses learned on singly-connected ports are
added to the ISL on the other switch
§  Address learning is disabled on the ISL
®
MAC Address Learning
H2 sends a BUM packet, S1 learns the port to H2
S1 S2
H1 H2 H3 H4 H5
H2
®
MAC Address Learning
S1 sends the packet out all interfaces in the bridge, except the
interface on which the packet arrived
S1 S2
H1 H2 H3 H4 H5
H2
®
MAC Address Learning
S2 would ordinarily learn H2 on the ISL and forward the
packet out all singly-connected ports
S1 S2
H1 H2 H3 H4 H5
H2
H2
®
MAC Address Learning
But, learning is disabled on the ISL. Instead, S1 sends a MAC
sync message to S2 which adds H2 to the dual connected port
S1 S2
H1 H2 H3 H4 H5
H2 H2
®
MAC Address Learning
For singly-connected hosts, the MAC sync message causes the
address to be added to the ISL
S1 S2
H1 H2 H3 H4 H5
H1
H1
®
MAC Address Learning
Final MAC address tables may look like this. Red: Address
originally learned on switch. Blue: Address added by MAC sync
S1 S2
H1 H2 H3 H4 H5
H2 H5H1 H4H3
H5
H2
H1
H4H3
®
Switch-Switch MLAG
u  Just like a host can be connected to two
switches, a pair of MLAG'd switches can be
connected to another pair of MLAG'd
switches
§  Used to create larger redundant L2 networks
§  Each pair of MLAG'd switches views the other
switches as a single logical switch
®
Switch-Switch MLAG
S3 S4
S1 S2
®
Switch-Switch MLAG
S3 S4Switch
S1 S2Switch
®
Spanning Tree
u  One switch is set as the primary,
the other is secondary
u  Both switches use the same
bridge ID, dual connected ports
have the same port ID
u  Only primary sends BPDUs on
dual-connected ports
u  BPDUs received on dual
connected ports are sent to the
peer unmodified
u  BPDUs received on the root port
are sent to the peer unmodified
u  Source MACs of BPDUs received
on peer link are checked
u  Peer link never blocks
S1 S2
M1
R1
®
Split Brain
u  If one switch sees that
the ISL is down it
cannot distinguish
between the link going
down (split brain) and
the peer switch going
down (solo)
u  A backup link is used to
make this distinction
S1 S2
H1 H2 H3 H4 H5
S1 S2
H1 H2 H3 H4 H5
??? Which One ???
®
Split Brain
u  When the ISL goes
down, the backup
link can determine
if the peer switch is
still alive
S1 S2
H1 H2 H3 H4 H5
®
Configuring MLAG
In /etc/network/interfaces put all dual-connected ports
in an 802.3ad bond and assign them a clag-id
auto bond1
iface bond1 inet static
bond-slaves 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
clag-id 1
auto bond11
iface bond11 inet static
bond-slaves swp4
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
clag-id 1
Switch S1 Switch S2
®
Configuring MLAG
In /etc/network/interfaces assign clagd
parameters on a VLAN sub-interface of the ISL link
auto peer6.4000
iface peer6.4000 inet static
address 169.254.0.1
netmask 255.255.255.0
clagd-peer-ip 169.254.0.2
clagd-sys-mac 44:38:39:ff:bb:01
clagd-backup-ip 192.168.1.101
auto peer16.4000
iface peer16.4000 inet static
address 169.254.0.2
netmask 255.255.255.0
clagd-peer-ip 169.254.0.1
clagd-sys-mac 44:38:39:ff:bb:01
clagd-backup-ip 192.168.1.100
Switch S1 Switch S2
®
MLAG Tools
clagctl can be used to get the current state of
the MLAG
# clagctl
The peer is alive
Peer Priority, ID, and Role: 32768 00:02:00:00:00:17 primary
Our Priority, ID, and Role: 32768 70:72:cf:e9:f0:76 secondary
Peer Interface and IP: peer6.4000 169.254.0.2
Backup IP: 192.168.1.101 (active)
System MAC: 44:38:39:ff:bb:01
Dual Attached Ports
Our Interface Peer Interface CLAG Id
---------------- ---------------- -------
bond4 bond14 4
bond5 bond15 5
bond1 bond11 1
bond2 bond12 2
bond3 bond13 3
$ clagctl
The peer is alive
Our Priority, ID, and Role: 32768 00:02:00:00:00:17 primary
Peer Priority, ID, and Role: 32768 70:72:cf:e9:f0:76 secondary
Peer Interface and IP: peer16.4000 169.254.0.1
Backup IP: 192.168.1.100 (active)
System MAC: 44:38:39:ff:bb:01
Dual Attached Ports
Our Interface Peer Interface CLAG Id
---------------- ---------------- -------
bond14 bond4 4
bond15 bond5 5
bond12 bond2 2
bond13 bond3 3
bond11 bond1 1
Switch S1 Switch S2
®
MLAG Tools
/var/log/syslog contains MLAG status changes
# grep clagd /var/log/syslog
May 19 16:25:31 act-5712-08 clagd[7253]: Beginning execution of clagd version 1.1.0
May 19 16:25:31 act-5712-08 clagd[7253]: Invoked with: /usr/sbin/clagd --daemon 169.254.0.2
peer6.4000 44:38:39:ff:bb:01
May 19 16:25:31 act-5712-08 clagd[7258]: Role is now secondary
May 19 16:25:32 act-5712-08 clagd[7258]: Initial config loaded
May 19 16:25:33 act-5712-08 clagd[7258]: The peer switch is active.
May 19 16:25:33 act-5712-08 clagd[7258]: Initial data sync from peer done.
May 19 16:25:33 act-5712-08 clagd[7258]: Initial handshake done.
May 19 16:25:33 act-5712-08 clagd[7258]: Initial data sync to peer done.
May 19 16:25:37 act-5712-08 clagd[7258]: bond2 is now dual connected.
May 19 16:25:37 act-5712-08 clagd[7258]: bond3 is now dual connected.
May 19 16:25:37 act-5712-08 clagd[7258]: bond1 is now dual connected.
May 19 16:25:37 act-5712-08 clagd[7258]: bond5 is now dual connected.
May 19 16:25:37 act-5712-08 clagd[7258]: bond4 is now dual connected.
®
© 2014 Cumulus Networks. Cumulus Networks, the Cumulus Networks Logo, and Cumulus Linux are trademarks or registered trademarks of Cumulus Networks, Inc.
or its affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners. The registered trademark Linux® is used pursuant to a
sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.
§ Thank You!
®
cumulusnetworks.com 32

More Related Content

PPTX
Kubernetes PPT.pptx
PDF
Provider ethernet vlan cross connect
PPTX
Introduction to the Container Network Interface (CNI)
PDF
Containers: The What, Why, and How
PPTX
virtualization and hypervisors
PDF
Scale Kubernetes to support 50000 services
PDF
Qemu device prototyping
PPTX
Maxscale 소개 1.1.1
Kubernetes PPT.pptx
Provider ethernet vlan cross connect
Introduction to the Container Network Interface (CNI)
Containers: The What, Why, and How
virtualization and hypervisors
Scale Kubernetes to support 50000 services
Qemu device prototyping
Maxscale 소개 1.1.1

What's hot (20)

ODP
Monitoring IO performance with iostat and pt-diskstats
PPTX
Postgres MVCC - A Developer Centric View of Multi Version Concurrency Control
PDF
Ansible
PPTX
OpenvSwitch Deep Dive
PPTX
Nginx Deep Dive Kubernetes Ingress
PDF
User Management and Privileges - pfSense Hangout February 2015
PPTX
A brief study on Kubernetes and its components
PDF
OpenSSL Basic Function Call Flow
PDF
Understanding Open vSwitch
PDF
Ansible Automation Platform.pdf
PDF
Block I/O Layer Tracing: blktrace
PPTX
PDF
Maxscale_메뉴얼
PDF
Replication Troubleshooting in Classic VS GTID
PPTX
Meetup 23 - 02 - OVN - The future of networking in OpenStack
PDF
How to Manage Scale-Out Environments with MariaDB MaxScale
PDF
Memory Mapping Implementation (mmap) in Linux Kernel
PDF
[2018] 오픈스택 5년 운영의 경험
PDF
Launch the First Process in Linux System
PDF
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region
Monitoring IO performance with iostat and pt-diskstats
Postgres MVCC - A Developer Centric View of Multi Version Concurrency Control
Ansible
OpenvSwitch Deep Dive
Nginx Deep Dive Kubernetes Ingress
User Management and Privileges - pfSense Hangout February 2015
A brief study on Kubernetes and its components
OpenSSL Basic Function Call Flow
Understanding Open vSwitch
Ansible Automation Platform.pdf
Block I/O Layer Tracing: blktrace
Maxscale_메뉴얼
Replication Troubleshooting in Classic VS GTID
Meetup 23 - 02 - OVN - The future of networking in OpenStack
How to Manage Scale-Out Environments with MariaDB MaxScale
Memory Mapping Implementation (mmap) in Linux Kernel
[2018] 오픈스택 5년 운영의 경험
Launch the First Process in Linux System
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region
Ad

Viewers also liked (20)

PPTX
Linux networking is Awesome!
PDF
Cumulus Linux 2.5.5 What's New
PPTX
12.) fabric (your next data center)
PDF
How deep is your buffer – Demystifying buffers and application performance
PDF
Cumulus Linux 2.5.4
PDF
NFD9 - Dinesh Dutt, Data Center Architectures
PDF
Operationalizing BGP in the SDDC
PPTX
Webinar: Network Automation [Tips & Tricks]
PPTX
Network Architecture for Containers
PPTX
Building Scalable Data Center Networks
PPTX
Demystifying Networking: Data Center Networking Trends 2017
PDF
Modern Data Center Network Architecture - The house that Clos built
PDF
Big data, better networks
PDF
Using linux to manage the entire rack
PDF
NFD9 - David Sinn, Real World Examples
PPTX
Big Data, Better Networks
PDF
NFD9 - JR Rivers, Cumulus Networks Overview
PDF
Manage your switches like servers
PDF
Open Hardware for All - Webinar March 25, 2015
PDF
Webinar- Tea for the Tillerman
Linux networking is Awesome!
Cumulus Linux 2.5.5 What's New
12.) fabric (your next data center)
How deep is your buffer – Demystifying buffers and application performance
Cumulus Linux 2.5.4
NFD9 - Dinesh Dutt, Data Center Architectures
Operationalizing BGP in the SDDC
Webinar: Network Automation [Tips & Tricks]
Network Architecture for Containers
Building Scalable Data Center Networks
Demystifying Networking: Data Center Networking Trends 2017
Modern Data Center Network Architecture - The house that Clos built
Big data, better networks
Using linux to manage the entire rack
NFD9 - David Sinn, Real World Examples
Big Data, Better Networks
NFD9 - JR Rivers, Cumulus Networks Overview
Manage your switches like servers
Open Hardware for All - Webinar March 25, 2015
Webinar- Tea for the Tillerman
Ad

Similar to Mlag invisibile layer 2 redundancy (20)

PPS
Switching
PDF
Layer2&arp
PPTX
Part 12 : Local Area Networks
PPT
06 module catalyst 1900 switch operations
PDF
Towards an Open Data Center with an Interoperable Network (ODIN) : Volume 2: ...
PDF
Lec11 on Computer Networks by Tarun Mangla.pdf
PPT
catalyst switch Operation
PPTX
Part11-lan.pptx
PPT
3.Network
PPT
Network Security - Layer 2
PDF
CCNP_qefwqqw3fqwfq2wrffqwf2qwfwqwfS1.pdf
PDF
CCNP_sdbsdbsdbsdbsdbsdbsdbsdbsdbsdbS1.pdf
PDF
netLec2.pdf
PPT
2.Phys & Link
PPTX
Lect2_MS_Networks OSI ,TCP model,ETHERNET.pptx
PDF
Linux Networking Explained
PDF
PPTX
EMEA Airheads- Switch stacking_ ArubaOS Switch
DOCX
Surviving The Stump The Chump Interview Questions
PPTX
LECTURE 02 (b).pptxnnnnnnnnnnnnnnnnnnnnn
Switching
Layer2&arp
Part 12 : Local Area Networks
06 module catalyst 1900 switch operations
Towards an Open Data Center with an Interoperable Network (ODIN) : Volume 2: ...
Lec11 on Computer Networks by Tarun Mangla.pdf
catalyst switch Operation
Part11-lan.pptx
3.Network
Network Security - Layer 2
CCNP_qefwqqw3fqwfq2wrffqwf2qwfwqwfS1.pdf
CCNP_sdbsdbsdbsdbsdbsdbsdbsdbsdbsdbS1.pdf
netLec2.pdf
2.Phys & Link
Lect2_MS_Networks OSI ,TCP model,ETHERNET.pptx
Linux Networking Explained
EMEA Airheads- Switch stacking_ ArubaOS Switch
Surviving The Stump The Chump Interview Questions
LECTURE 02 (b).pptxnnnnnnnnnnnnnnnnnnnnn

More from Cumulus Networks (15)

PPTX
Building a Layer 3 network with Cumulus Linux
PDF
Operationalizing EVPN in the Data Center: Part 2
PDF
Demystifying EVPN in the data center: Part 1 in 2 episode series
PPTX
Best practices for network troubleshooting
PDF
NetDevOps 202: Life After Configuration
PPTX
Cumulus Networks: Automating Network Configuration
PPTX
July NYC Open Networking Meeup
PPTX
Demystifying Networking Webinar Series- Routing on the Host
PDF
Ifupdown2: Network Interface Manager
PPTX
Operationalizing VRF in the Data Center
PPTX
Microservices Network Architecture 101
PPTX
Webinar-Linux Networking is Awesome
PDF
Dreamhost deploying dreamcompute at scale
PPTX
Cumulus Linux 2.5.3
PDF
Open Networking for Your OpenStack
Building a Layer 3 network with Cumulus Linux
Operationalizing EVPN in the Data Center: Part 2
Demystifying EVPN in the data center: Part 1 in 2 episode series
Best practices for network troubleshooting
NetDevOps 202: Life After Configuration
Cumulus Networks: Automating Network Configuration
July NYC Open Networking Meeup
Demystifying Networking Webinar Series- Routing on the Host
Ifupdown2: Network Interface Manager
Operationalizing VRF in the Data Center
Microservices Network Architecture 101
Webinar-Linux Networking is Awesome
Dreamhost deploying dreamcompute at scale
Cumulus Linux 2.5.3
Open Networking for Your OpenStack

Recently uploaded (20)

PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPT
Teaching material agriculture food technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
cuic standard and advanced reporting.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Cloud computing and distributed systems.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
The Rise and Fall of 3GPP – Time for a Sabbatical?
Digital-Transformation-Roadmap-for-Companies.pptx
Teaching material agriculture food technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Review of recent advances in non-invasive hemoglobin estimation
Dropbox Q2 2025 Financial Results & Investor Presentation
cuic standard and advanced reporting.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Electronic commerce courselecture one. Pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Big Data Technologies - Introduction.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Cloud computing and distributed systems.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Network Security Unit 5.pdf for BCA BBA.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
“AI and Expert System Decision Support & Business Intelligence Systems”

Mlag invisibile layer 2 redundancy

  • 1. ® ® MLAG: Invisible Layer 2 Redundancy Scott Emery Cumulus Networks May 20, 2015
  • 2. ® Agenda u  What is MLAG? u  How does MLAG work? u  How to set up an MLAG u  Tools for MLAG analysis and debugging
  • 3. ® MLAG Introduction You need to set up a rack of servers for a new application u  Add some extra servers for redundancy u  Uplink to redundant core switches u  Redundant Internet connections u  Backup power with batteries and generators u  Over-provisioned cooling You receive a midnight call that everything is down
  • 4. ® MLAG Introduction MLAG – A LAG across more than one node u  Multi-homing for redundancy u  Active-active to utilize all links which otherwise may get blocked by Spanning Tree u  No modification of LAG partner
  • 5. ® MLAG Terminology S1 S2 H1 H2 H3 H4 H5 Secondary Role ISL – Inter-Switch Link Dually Connected Primary Role Singly Connected
  • 6. ® MLAG Partner View S1 S2 H1 H2 H3 H4 H5 Switch
  • 7. ® The Fundamental Job of MLAG S1 S2 S1 S2 Make this: Look like this: Switch
  • 8. ® MLAG and LACP u  Both ends must run LACP u  Normally, when connected to two different systems, only one link is used •  Common system ID is used on each switch u  Identification of which ports on each system are dual- connected pairs S1 S2 H1 H2 H3 H4 H5
  • 9. ® Eliminating Duplicate Packets u  BUM1 packets are flooded and result in: §  Duplicate packets at dual-connected hosts §  A dual-connected host receives packets which it transmitted 1 BUM packets are: Broadcast, Unknown unicast, and Multicast
  • 10. ® Eliminating Duplicate Packets S1 S2 H1 H2 H3 H4 H5 H2 sends a BUM packet which goes up the link to S1
  • 11. ® Eliminating Duplicate Packets S1 sends the packet out all interfaces in the bridge, except the interface on which the packet arrived S1 S2 H1 H2 H3 H4 H5
  • 12. ® Eliminating Duplicate Packets S2 sends the packet out all interfaces in the bridge, except the interface on which the packet arrived S1 S2 H1 H2 H3 H4 H5
  • 13. ® Eliminating Duplicate Packets u  Dual-connected hosts receive duplicate copies of the packet u  Dual-connected hosts which send BUM packets receive the packet they sent u  To fix this: Packets received on the ISL are not forwarded to dual-connected ports
  • 14. ® Eliminating Duplicate Packets S2 only sends packet out singly-connected interfaces S1 S2 H1 H2 H3 H4 H5
  • 15. ® MAC Address Learning u  To act as a single logical switch, both switches must synchronize their MAC address tables §  Addresses learned on dual-connected ports are added to the corresponding port on the other switch §  Addresses learned on singly-connected ports are added to the ISL on the other switch §  Address learning is disabled on the ISL
  • 16. ® MAC Address Learning H2 sends a BUM packet, S1 learns the port to H2 S1 S2 H1 H2 H3 H4 H5 H2
  • 17. ® MAC Address Learning S1 sends the packet out all interfaces in the bridge, except the interface on which the packet arrived S1 S2 H1 H2 H3 H4 H5 H2
  • 18. ® MAC Address Learning S2 would ordinarily learn H2 on the ISL and forward the packet out all singly-connected ports S1 S2 H1 H2 H3 H4 H5 H2 H2
  • 19. ® MAC Address Learning But, learning is disabled on the ISL. Instead, S1 sends a MAC sync message to S2 which adds H2 to the dual connected port S1 S2 H1 H2 H3 H4 H5 H2 H2
  • 20. ® MAC Address Learning For singly-connected hosts, the MAC sync message causes the address to be added to the ISL S1 S2 H1 H2 H3 H4 H5 H1 H1
  • 21. ® MAC Address Learning Final MAC address tables may look like this. Red: Address originally learned on switch. Blue: Address added by MAC sync S1 S2 H1 H2 H3 H4 H5 H2 H5H1 H4H3 H5 H2 H1 H4H3
  • 22. ® Switch-Switch MLAG u  Just like a host can be connected to two switches, a pair of MLAG'd switches can be connected to another pair of MLAG'd switches §  Used to create larger redundant L2 networks §  Each pair of MLAG'd switches views the other switches as a single logical switch
  • 25. ® Spanning Tree u  One switch is set as the primary, the other is secondary u  Both switches use the same bridge ID, dual connected ports have the same port ID u  Only primary sends BPDUs on dual-connected ports u  BPDUs received on dual connected ports are sent to the peer unmodified u  BPDUs received on the root port are sent to the peer unmodified u  Source MACs of BPDUs received on peer link are checked u  Peer link never blocks S1 S2 M1 R1
  • 26. ® Split Brain u  If one switch sees that the ISL is down it cannot distinguish between the link going down (split brain) and the peer switch going down (solo) u  A backup link is used to make this distinction S1 S2 H1 H2 H3 H4 H5 S1 S2 H1 H2 H3 H4 H5 ??? Which One ???
  • 27. ® Split Brain u  When the ISL goes down, the backup link can determine if the peer switch is still alive S1 S2 H1 H2 H3 H4 H5
  • 28. ® Configuring MLAG In /etc/network/interfaces put all dual-connected ports in an 802.3ad bond and assign them a clag-id auto bond1 iface bond1 inet static bond-slaves 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 clag-id 1 auto bond11 iface bond11 inet static bond-slaves swp4 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 clag-id 1 Switch S1 Switch S2
  • 29. ® Configuring MLAG In /etc/network/interfaces assign clagd parameters on a VLAN sub-interface of the ISL link auto peer6.4000 iface peer6.4000 inet static address 169.254.0.1 netmask 255.255.255.0 clagd-peer-ip 169.254.0.2 clagd-sys-mac 44:38:39:ff:bb:01 clagd-backup-ip 192.168.1.101 auto peer16.4000 iface peer16.4000 inet static address 169.254.0.2 netmask 255.255.255.0 clagd-peer-ip 169.254.0.1 clagd-sys-mac 44:38:39:ff:bb:01 clagd-backup-ip 192.168.1.100 Switch S1 Switch S2
  • 30. ® MLAG Tools clagctl can be used to get the current state of the MLAG # clagctl The peer is alive Peer Priority, ID, and Role: 32768 00:02:00:00:00:17 primary Our Priority, ID, and Role: 32768 70:72:cf:e9:f0:76 secondary Peer Interface and IP: peer6.4000 169.254.0.2 Backup IP: 192.168.1.101 (active) System MAC: 44:38:39:ff:bb:01 Dual Attached Ports Our Interface Peer Interface CLAG Id ---------------- ---------------- ------- bond4 bond14 4 bond5 bond15 5 bond1 bond11 1 bond2 bond12 2 bond3 bond13 3 $ clagctl The peer is alive Our Priority, ID, and Role: 32768 00:02:00:00:00:17 primary Peer Priority, ID, and Role: 32768 70:72:cf:e9:f0:76 secondary Peer Interface and IP: peer16.4000 169.254.0.1 Backup IP: 192.168.1.100 (active) System MAC: 44:38:39:ff:bb:01 Dual Attached Ports Our Interface Peer Interface CLAG Id ---------------- ---------------- ------- bond14 bond4 4 bond15 bond5 5 bond12 bond2 2 bond13 bond3 3 bond11 bond1 1 Switch S1 Switch S2
  • 31. ® MLAG Tools /var/log/syslog contains MLAG status changes # grep clagd /var/log/syslog May 19 16:25:31 act-5712-08 clagd[7253]: Beginning execution of clagd version 1.1.0 May 19 16:25:31 act-5712-08 clagd[7253]: Invoked with: /usr/sbin/clagd --daemon 169.254.0.2 peer6.4000 44:38:39:ff:bb:01 May 19 16:25:31 act-5712-08 clagd[7258]: Role is now secondary May 19 16:25:32 act-5712-08 clagd[7258]: Initial config loaded May 19 16:25:33 act-5712-08 clagd[7258]: The peer switch is active. May 19 16:25:33 act-5712-08 clagd[7258]: Initial data sync from peer done. May 19 16:25:33 act-5712-08 clagd[7258]: Initial handshake done. May 19 16:25:33 act-5712-08 clagd[7258]: Initial data sync to peer done. May 19 16:25:37 act-5712-08 clagd[7258]: bond2 is now dual connected. May 19 16:25:37 act-5712-08 clagd[7258]: bond3 is now dual connected. May 19 16:25:37 act-5712-08 clagd[7258]: bond1 is now dual connected. May 19 16:25:37 act-5712-08 clagd[7258]: bond5 is now dual connected. May 19 16:25:37 act-5712-08 clagd[7258]: bond4 is now dual connected.
  • 32. ® © 2014 Cumulus Networks. Cumulus Networks, the Cumulus Networks Logo, and Cumulus Linux are trademarks or registered trademarks of Cumulus Networks, Inc. or its affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners. The registered trademark Linux® is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis. § Thank You! ® cumulusnetworks.com 32