IEEE 802.3ad link aggregation (also known as port channel) enables you to group Ethernet interfaces to form a single link layer interface, also known as a link aggregation group (LAG), for load-balancing or failover.
All the channelized ports need to be configured with a valid speed setting.
If the LACP fallback feature is enabled, one member port per port channel will be active during the fallback mode. The LACP Fallback Feature allows an active LACP interface to establish a Link Aggregation (LAG) before it receives LACP PDUs from its peer.
The “min-links” parameter sets the minimum number of active links required to bring up the LAG interface.
Notes:
LAG members cannot have individual VLAN and IP addresses prior to LAG establishment.
Check the configuration:
admin@sonic:~$ show vlan brief admin@sonic:~$ show ip interfaces admin@sonic:~$ show interfaces status
Create a PortChannel interface:
sudo config portchannel add PortChannel01
(Optional) LACP fallback = True configuration – by default, LACP fallback = False
Add members to the interface:
admin@sonic:~$ sudo config portchannel member add PortChannel01 Ethernet0 admin@sonic:~$ sudo config portchannel member add PortChannel01 Ethernet12
Save the settings:
admin@sonic:~$ sudo config save -y
Check the port channel status:
admin@sonic:~$ show interfaces portchannel Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available, S - selected, D - deselected, * - not synced No. Team Dev Protocol Ports ----- ------------- ----------- -------------------------- 01 PortChannel01 LACP(A)(Up) Ethernet12(D) Ethernet0(D)
If there is N/A instead of port members – please add members again.
Check the interface status:
admin@sonic:~$ show interfaces status Ethernet0-12,PortChannel01 Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC ------------- --------------- ------- ----- ----- ---------- ------------- ------ ------- --------------- ---------- Ethernet0 121,122,123,124 100G 9100 rs Ethernet0 PortChannel01 up up QSFP28 or later N/A Ethernet4 125,126,127,128 100G 9100 rs Ethernet4 routed down up N/A N/A Ethernet8 113,114,115,116 100G 9100 rs Ethernet8 routed up up N/A N/A Ethernet12 117,118,119,120 100G 9100 rs Ethernet12 PortChannel01 down up QSFP28 or later N/A PortChannel01 N/A 200G 9100 N/A N/A routed up up N/A N/A
Modify the PORTCHANNEL hierarchy statements in the /etc/sonic/config_db.json file.
"PORTCHANNEL": { "PortChannel01": { "admin_status": "up", "mtu": "9100" } }, "PORTCHANNEL_MEMBER": { "PortChannel01|Ethernet0": {}, "PortChannel01|Ethernet12": {} },
One physical link is disconnected.
Expected results:
admin@sonic:~$ sudo config portchannel add PortChannel01 --min-links=2
Add members:
admin@sonic:~$ sudo config portchannel member add PortChannel01 Ethernet0 admin@sonic:~$ sudo config portchannel member add PortChannel01 Ethernet12
Result:
admin@sonic:~$ show interfaces status Ethernet0-12,PortChannel01 Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC ------------- --------------- ------- ----- ----- ---------- ------------- ------ ------- --------------- ---------- Ethernet0 121,122,123,124 100G 9100 rs Ethernet0 PortChannel01 down up QSFP28 or later N/A Ethernet4 125,126,127,128 100G 9100 rs Ethernet4 routed down up N/A N/A Ethernet8 113,114,115,116 100G 9100 rs Ethernet8 routed up up N/A N/A Ethernet12 117,118,119,120 100G 9100 rs Ethernet12 PortChannel01 down up QSFP28 or later N/A PortChannel01 N/A 200G 9100 N/A N/A routed down up N/A N/A
Remove the port channel first:
admin@sonic:~$ sudo config portchannel member del PortChannel01 Ethernet0 admin@sonic:~$ sudo config portchannel member del PortChannel01 Ethernet12 admin@sonic:~$ sudo config portchannel del PortChannel01
Create PortChannel1 without min-links configuration:
admin@sonic:~$ sudo config portchannel add PortChannel01 admin@sonic:~$ sudo config portchannel member add PortChannel01 Ethernet0 admin@sonic:~$ sudo config portchannel member add PortChannel01 Ethernet12
Result:
admin@sonic:~$ show interfaces status Ethernet0-12,PortChannel01 Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC ------------- --------------- ------- ----- ----- ---------- ------------- ------ ------- --------------- ---------- Ethernet0 121,122,123,124 100G 9100 rs Ethernet0 PortChannel01 down up QSFP28 or later N/A Ethernet4 125,126,127,128 100G 9100 rs Ethernet4 routed down up N/A N/A Ethernet8 113,114,115,116 100G 9100 rs Ethernet8 routed up up N/A N/A Ethernet12 117,118,119,120 100G 9100 rs Ethernet12 PortChannel01 down up QSFP28 or later N/A PortChannel01 N/A 200G 9100 N/A N/A routed up up N/A N/A
LACP fallback mode may also kick in during the normal LACP negotiation process due to the timing, which might cause some unexpected traffic loss. For example, if the LACP PDUs sent by peer are dropped completely, local member port with fallback enabled may still enter fallback mode, which might end up with data traffic loss.
admin@sonic:~$ sudo config portchannel add PortChannel02 --fallback=true admin@sonic:~$ sudo config portchannel member add PortChannel02 Ethernet4 admin@sonic:~$ show interfaces portchannel Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available, S - selected, D - deselected, * - not synced No. Team Dev Protocol Ports ----- ------------- ----------- -------------------------- 01 PortChannel01 LACP(A)(Dw) Ethernet12(D) Ethernet0(D) 02 PortChannel02 LACP(A)(Dw) Ethernet4(D)
Taoyuan city, Taiwan, 24th of June 2024. Netberg announced the new Aurora 721 100G and Aurora 421 10G switches, which feature programmable pipelines powered by Broadcom StrataXGS® Trident3 Ethernet switch chips.
Taoyuan city, Taiwan, January 24th, 2024. Netberg announced the release of two new models powered by the Broadcom StrataXGS® Trident3 series , the Netberg Aurora 221 1G switch and Aurora 621 25G switch.
Effective January 12, 2024: The following products are now End of Life (EOL) - Aurora 720 and Aurora 620.
Taoyuan city, Taiwan, December 20th, 2023. Netberg updates its Netberg SONiC distribution to release 2022.11 on Aurora 610, Aurora 710, and Aurora 750 P4-Programmable Intel Tofino IFP systems.
Taipei, Taiwan, 14th of November 2022. Netberg announced the new Aurora 810 400G model programmable switch with Intel Tofino 2 Intelligent Fabric Processors (IFPs) at its heart. The new platform has 32x 400G QSFP-DD Ethernet ports and a 12.8Tbps switching capacity.
Taipei, Taiwan, 24th of October 2022. Netberg participates in the new round of the Fast Forward Initiative by Intel (FFI'22). The program supports academic and research organizations today, aiming at accelerating tomorrow's best network programmability research.