Difference between revisions of "MIKROTIK - MLAG By CLI"

From wiki.1001solutions.net
(Created page with "Category:Post-It == Configuring MLAG via CLI == To configure MLAG via CLI on a Mikrotik router, follow these steps: 1. Connect to the Mikrotik router via the CLI. 2....")
 
Line 11: Line 11:
 
2. Create a new bridge by using the command:
 
2. Create a new bridge by using the command:
  
  <nowiki>
+
<nowiki>
  /interface bridge add name=bridge1
+
/interface bridge add name=bridge1</nowiki>
  </nowiki>
 
  
 
3. Add the ports that you want to aggregate to the bridge by using the command:
 
3. Add the ports that you want to aggregate to the bridge by using the command:
  
  <nowiki>
+
<nowiki>
  /interface bridge port add bridge=bridge1 interface=ether1
+
/interface bridge port add bridge=bridge1 interface=ether1
  /interface bridge port add bridge=bridge1 interface=ether2
+
/interface bridge port add bridge=bridge1 interface=ether2</nowiki>
  </nowiki>
 
  
 
4. Configure the ports as a LACP (Link Aggregation Control Protocol) port by using the command:
 
4. Configure the ports as a LACP (Link Aggregation Control Protocol) port by using the command:
  
  <nowiki>
+
<nowiki>
  /interface lacp set [find where bridge=bridge1] lacp-enabled=yes
+
/interface lacp set [find where bridge=bridge1] lacp-enabled=yes</nowiki>
  </nowiki>
 
  
 
5. Verify the configuration by using the command:
 
5. Verify the configuration by using the command:
  
  <nowiki>
+
<nowiki>
  /interface bridge port print
+
/interface bridge port print</nowiki>
  </nowiki>
 
 
 
</nowiki>
 

Revision as of 15:22, 21 January 2023



Configuring MLAG via CLI

To configure MLAG via CLI on a Mikrotik router, follow these steps:

1. Connect to the Mikrotik router via the CLI.

2. Create a new bridge by using the command:

/interface bridge add name=bridge1

3. Add the ports that you want to aggregate to the bridge by using the command:

/interface bridge port add bridge=bridge1 interface=ether1 /interface bridge port add bridge=bridge1 interface=ether2

4. Configure the ports as a LACP (Link Aggregation Control Protocol) port by using the command:

/interface lacp set [find where bridge=bridge1] lacp-enabled=yes

5. Verify the configuration by using the command:

/interface bridge port print