Currently Empty: 0.00 €
SONiC hands-on training - Module 4 - Lab 1 - MCLAG Configuration
You are a network engineer tasked with configuring MCLAG. You have a SERVER switch, which must be connected to two switches SW1 and SW2.
 SW1 and SW2 must be in MCLAG. The interfaces Ethernet1 on SW1 and SW2 should be in LAG and in the trunk mode.
The SERVER Ethernet 1 and Ethernet 2 interfaces should also be in LAG and in the trunk mode.Â
tep 1: Create PortChannels on SW1 and SW2 SwitchesÂ
- Log in to the switches (SW1, SW2, SERVER) using the default credentials, use the Klish CLI. Create a new PortChannels – PortChannel99 for Ethernet 8 and Ethernet 4 on SW1 and SW2 Switches. Assign the proper IP Address on both switches to that PortChannel which should be a trunk. Check if the PortChannels are up on both switches by “show portchannel summary” command.Â
- Step 2: Configure MCLAG on SW1 and SW2 SwitchesÂ
Configure MCLAG of both switches (SW1, SW2). Assign the proper PortChannel to the MCLAG domain. Assign correct source-ip, peer-ip, peer-link, mclag-system-mac on both switches. After that, check if the connection is up. Â
- Step 3: Configure PortChannel 1 on Ethernet0 on SW1 and SW2 Switches and make them trunk portsÂ
Configure PortChannel 1 on Ethernet0 on SW1 and SW2 Switches. Assign this PortChannel to proper MCLAG domain. Remember, these PortChannel must be in trunk mode that allows all VLANs.Â
- Step 4: Configure PortChannel on SERVER Switch.Â
Create a PortChannel on SERVER Switch. Make them also the trunk ports. After that, check the configuration by command “show portchannel summary”. After that, check on all switches if the PortChannel 1 is UP.Â
- Step 5: Check if the MLAG Interface is UP on SW1 and SW2Â
After you done all of the configuration of all switches, check if the PortChannel1 is UP on MCLAG switches.Â

- Default credentials: admin / YourPaSsWoRdÂ
- Remember to allow all VLANs to be sent through trunk portÂ
- Remember to turn enabled the interfaces that are in PortChannel. PortChannels must be enabled also.Â
- Created MCLAG on both switches must be in the same domain – for example 1Â
- Source-ip is the ip of the current link on current switch, so for this topology for SW1 will be 10.10.10.1/30, and for SW2 10.10.10.2/30Â
- Peer-ip is the ip of the neighbor switch that we want to be in MCLAG.Â
- The names of the virtual computers are different in remote access to those shown on the topology. Virtual computers and their counterparts in remote access are motioned below:
- SW1 – mod4lab2-sw1
- SW2 – mod4lab2-sw2
- SERVER – mod4lab2-sw3
The purpose of the laboratory is to practice creating MCLAGs and PortChannels and how to use them in real environment.Â
Step 1: Create PortChannels on SW1 and SW2 SwitchesÂ
SW1Â
 1. sonic(config)# interface PortChannel 99Â
 2. sonic(config–if–po99)# ip address 10.10.10.1/30Â
 3. sonic(config–if–po99)# no shutdownÂ
 4. sonic(config–if–po99)# exitÂ
 5. sonic(config)# interface range Ethernet 4,8Â
 6. %Info: Configuring only existing interfaces in rangeÂ
 7. sonic(config–if–range–eth**)# channel–group 99Â
 8. sonic(config–if–range–eth**)# no shutdownÂ
 9. sonic(config–if–range–eth**)# exitÂ
SW2Â
 1. sonic(config)# interface PortChannel 99Â
 2. sonic(config–if–po99)# ip address 10.10.10.2/30Â
 3. sonic(config–if–po99)# no shutdownÂ
 4. sonic(config–if–po99)# exitÂ
 5. sonic(config)# interface range Ethernet 4,8Â
 6. %Info: Configuring only existing interfaces in rangeÂ
 7. sonic(config–if–range–eth**)# channel–group 99Â
 8. sonic(config–if–range–eth**)# no shutdownÂ
 9. sonic(config–if–range–eth**)# exitÂ
Check if the PortChannel is UPÂ
10. sonic(config)# show portchannel summaryÂ
11. Flags(oper–status):Â D – Down U – Up (portchannel) P – Up in portchannel (members)Â
12. —————————————————————————————————————Â
13. Group              PortChannel                  Type               Protocol         Member PortsÂ
14. —————————————————————————————————————Â
15. 99                 PortChannel99 (U)           Eth                LACP             Ethernet4(P)Â
16.                                                                                        Ethernet8(P)Â
Â
Â
Step 2: Configure MCLAG on SW1 and SW2 SwitchesÂ
SW1Â Â
1. sonic(config)# mclag domain 1Â
2. sonic(config–mclag–domain–1)# source–ip 10.10.10.1Â
3. sonic(config–mclag–domain–1)# peer–ip 10.10.10.2Â
4. sonic(config–mclag–domain–1)# peer–link PortChannel 99Â
5. sonic(config–mclag–domain–1)# exitÂ
SW2Â
1. sonic(config)# mclag domain 1Â
2. sonic(config–mclag–domain–1)# source–ip 10.10.10.2Â
3. sonic(config–mclag–domain–1)# peer–ip 10.10.10.1Â
4. sonic(config–mclag–domain–1)# peer–link PortChannel 99Â
5. sonic(config–mclag–domain–1)# exitÂ
Â
Check if the MCLAG is UPÂ
SW1Â
 1. sonic(config)# show mclag briefÂ
 2.  Â
 3. Domain ID           : 1Â
 4. Role                : standbyÂ
 5. Session Status      : up <- this should be up, if there’s a down you need to check again your configurationÂ
 6. Peer Link Status    : up <- this should be up, if there’s a down you need to check again your configurationÂ
 7. Source Address      : 10.10.10.1Â
 8. Peer Address        : 10.10.10.2Â
 9. Peer Link           : PortChannel99Â
10. Keepalive Interval  : 1 secsÂ
11. Session Timeout     : 30 secsÂ
12. Delay Restore       : 300 secsÂ
13. System Mac          : 0c:a8:4c:00:00:0aÂ
14. Mclag System Mac    :Â
15.  Â
16.  Â
17. Number of MLAG Interfaces:0Â
SW2Â
 1. sonic(config)# show mclag briefÂ
 2.  Â
 3. Domain ID           : 1Â
 4. Role                : standbyÂ
 5. Session Status      : up <- this should be up, if there’s a down you need to check again your configurationÂ
 6. Peer Link Status    : up <- this should be up, if there’s a down you need to check again your configurationÂ
 7. Source Address      : 10.10.10.2Â
 8. Peer Address        : 10.10.10.1Â
 9. Peer Link           : PortChannel99Â
10. Keepalive Interval  : 1 secsÂ
11. Session Timeout     : 30 secsÂ
12. Delay Restore       : 300 secsÂ
13. System Mac          : 0c:a8:4c:00:00:0aÂ
14. Mclag System Mac    :Â
15.  Â
16.  Â
17. Number of MLAG Interfaces:0Â
Â
Â
Â
Step 3: Configure PortChannel 1 on Ethernet0 on SW1 and SW2 Switches and make them trunk portsÂ
SW1 and SW2Â
 1. sonic(config)# interface PortChannel 1Â
 2. sonic(config–if–po1)# no shutdownÂ
 3. sonic(config–if–po1)# switchport trunk allowed vlan allÂ
 4. sonic(config–if–po1)# mclag 1Â
 5. sonic(config–if–po1)# exitÂ
 6. sonic(config)# interface Ethernet1Â
 7. sonic(config–if–Ethernet1)# no shutdownÂ
 8. sonic(config–if–Ethernet1)# channel–group 1Â
 9. sonic(config–if–Ethernet1)# exitÂ
Â
Step 4: Configure PortChannel on SERVER Switch.Â
SERVERÂ
 1. sonic(config)# interface PortChannel 1Â
 2. sonic(config–if–po1)# no shutdownÂ
 3. sonic(config–if–po1)# switchport trunk allowed vlan allÂ
 4. sonic(config–if–po1)# exitÂ
 5. sonic(config)# interface range Ethernet 1,2Â
 6. %Info: Configuring only existing interfaces in rangeÂ
 7. sonic(config–if–range–eth**)# no shutdownÂ
 8. sonic(config–if–range–eth**)# channel–group 1Â
 9. sonic(config–if–range–eth**)# exitÂ
Â
Check if the PortChannel is UP.Â
SERVERÂ
1. sonic(config)# show portchannel summaryÂ
2. Flags(oper–status):Â D – Down U – Up (portchannel) P – Up in portchannel (members)Â
3. —————————————————————————————————————-Â
4. Group              PortChannel                  Type               Protocol         Member PortsÂ
5. —————————————————————————————————————-Â
6. 1                  PortChannel1  (U)           Eth                LACP             Ethernet1(P)Â
7.                                                                                        Ethernet2(P)Â
Â
SW1 and SW2Â
1. sonic(config)# show portchannel summaryÂ
2. Flags(oper–status):Â D – Down U – Up (portchannel) P – Up in portchannel (members)Â
3. —————————————————————————————————————-Â
4. Group              PortChannel                  Type               Protocol         Member PortsÂ
5. —————————————————————————————————————-Â
6. 1                  PortChannel1  (U)           Eth                LACP             Ethernet1(P)Â
7. 99                 PortChannel99 (U)           Eth                LACP             Ethernet4(P)Â
8.                                                                                        Ethernet8(P) Â
Â
Â
Â
Â
Step 5: Check if the MLAG Interface is UP on SW1 and SW2Â
SW1Â
 1. sonic(config)# show mclag briefÂ
 2.  Â
 3. Domain ID           : 1Â
 4. Role                : activeÂ
 5. Session Status      : upÂ
 6. Peer Link Status    : upÂ
 7. Source Address      : 10.10.10.1Â
 8. Peer Address        : 10.10.10.2Â
 9. Peer Link           : PortChannel99Â
10. Keepalive Interval  : 1 secsÂ
11. Session Timeout     : 30 secsÂ
12. Delay Restore       : 300 secsÂ
13. System Mac          : 0c:a8:4c:00:00:0aÂ
14. Mclag System Mac    :Â
15.  Â
16.  Â
17. Number of MLAG Interfaces:1Â
18. ———————————————————–Â
19. MLAG Interface      Local/Remote StatusÂ
20. ———————————————————–Â
21. PortChannel1Â Â Â Â Â Â Â Â Â Â Â Â up/upÂ
Â
SW2Â
1. sonic(config)# show mclag briefÂ
 2.  Â
 3. Domain ID           : 1Â
 4. Role                : activeÂ
 5. Session Status      : upÂ
 6. Peer Link Status    : upÂ
 7. Source Address      : 10.10.10.2Â
 8. Peer Address        : 10.10.10.1Â
 9. Peer Link           : PortChannel99Â
10. Keepalive Interval  : 1 secsÂ
11. Session Timeout     : 30 secsÂ
12. Delay Restore       : 300 secsÂ
13. System Mac          : 0c:a8:4c:00:00:0aÂ
14. Mclag System Mac    :Â
15.  Â
16.  Â
17. Number of MLAG Interfaces:1Â
18. ———————————————————–Â
19. MLAG Interface      Local/Remote StatusÂ
20. ———————————————————–Â
21. PortChannel1Â Â Â Â Â Â Â Â Â Â Â Â up/upÂ
Â