Blog
MyRouter Soluções e Treinamentos - MikroTik Training Academy > Blog > Artigos > MLAG em Switches CRS3xx – MikroTik – RouterOSv7
MLAG em Switches CRS3xx – MikroTik – RouterOSv7
- 23 de maio de 2024
- Publicado por: Edielson Pantoja Santana
- Categoria: Artigos
Nenhum comentário
Multi-Chassis Link Aggregation Group ou MLAG é uma ideia que já existe há algum tempo. Ele permite a capacidade de formar canais LACP em vários switches físicos.
As implementações são proprietárias, mas a ideia de MLAG foi mencionada pela primeira vez em 802.1AX-2008 em 2008.
Começou a se tornar popular em rede de data centers no final dos anos 2000
O que torna a adição de MLAG ao conjunto de recursos RouterOS da MikroTik notável é que ele reduz a barreira de entrada para este recurso específico.
Para testar a nova funcionalidade do MLAG, decidimos configurar um laboratório com switches CRS326-24S + 2Q e roteadores CCR2004-1G-12S + 2XS.
CONFIGURAÇÕES:
RTR-01
/interface bridge add name=Lo0 /interface bonding add mode=802.3ad name=Po1 slaves=sfp-sfpplus3,sfp-sfpplus4 transmit-hash-policy=layer-2-and-3 /interface vlan add interface=Po1 name=vlan3000 vlan-id=3000 /routing table add fib name="" /ip address add address=100.126.0.1/29 interface=vlan3000 network=100.126.0.0 add address=100.127.0.1 interface=Lo0 network=100.127.0.1 /ipv6 address add address=200:100:126::1 interface=vlan3000 add address=200:100:127::1/128 advertise=no interface=Lo0 /system identity set name=RTR-01
RTR-02
/interface bridge add name=Lo0 /interface bonding add mode=802.3ad name=Po1 slaves=sfp-sfpplus3,sfp-sfpplus4 transmit-hash-policy=layer-2-and-3 /interface vlan add interface=Po1 name=vlan3000 vlan-id=3000 /routing table add fib name="" /ip address add address=100.126.0.2/29 interface=vlan3000 network=100.126.0.0 add address=100.127.0.2 interface=Lo0 network=100.127.0.2 /ipv6 address add address=200:100:126::2 interface=vlan3000 add address=200:100:127::2/128 advertise=no interface=Lo0 /system identity set name=RTR-02
SW-01
/interface bridge add name=Bridge-MLAG vlan-filtering=yes /interface bonding add mlag-id=100 mode=802.3ad name=Po1 slaves=sfp-sfpplus1 add mlag-id=101 mode=802.3ad name=Po2 slaves=sfp-sfpplus2 /interface bridge mlag set bridge=Bridge-MLAG peer-port=qsfpplus1-1 /interface bridge port add bridge=Bridge-MLAG interface=Po1 add bridge=Bridge-MLAG interface=qsfpplus1-1 pvid=777 add bridge=Bridge-MLAG interface=Po2 /interface bridge vlan add bridge=Bridge-MLAG tagged=Po1,Po2 vlan-ids=3000 /system identity set name=CSW-01
SW-02
/interface bridge add name=Bridge-MLAG vlan-filtering=yes /interface bonding add mlag-id=100 mode=802.3ad name=Po1 slaves=sfp-sfpplus1 add mlag-id=101 mode=802.3ad name=Po2 slaves=sfp-sfpplus2 /interface bridge mlag set bridge=Bridge-MLAG peer-port=qsfpplus1-1 /interface bridge port add bridge=Bridge-MLAG interface=Po1 add bridge=Bridge-MLAG interface=qsfpplus1-1 pvid=777 add bridge=Bridge-MLAG interface=Po2 /interface bridge vlan add bridge=Bridge-MLAG tagged=Po1,Po2 vlan-ids=3000 /system identity set name=CSW-02
Status do MLAG
######## MLAG Switches - 2 x CRS326 ############ [admin@CSW-01] > interface/bridge/mlag/monitor status: connected system-id: 48:8F:5A:3A:44:BA active-role: primary [admin@CSW-02] > interface/bridge/mlag/monitor status: connected system-id: 48:8F:5A:3A:44:BA active-role: secondary ######## RTP-01 LACP Router ############ [admin@RTR-01] > /interface bonding monitor Po1 mode: 802.3ad active-ports: sfp-sfpplus3,sfp-sfpplus4 inactive-ports: lacp-system-id: 48:8F:5A:00:4F:80 lacp-system-priority: 65535 lacp-partner-system-id: 48:8F:5A:3A:44:BA