Link bonding (802.3ad / LACP)
Aggregate two or more physical ports into one logical link. Standards-based 802.3ad LACP interoperates with any conformant switch — Huawei Eth-Trunk, Cisco port-channel, Juniper LAG — plus static modes for switches without LACP. A trunk is built one port at a time, under the interface command.
Commands
Create the trunk, then attach each physical port to it by name. Members are interface names such as ether1; the daemon resolves each to the stable PCI address stored in bond.conf.
interface add trunk <name> [mode 8023ad|active-backup|balance-xor] interface <port> add trunk <name> # attach a member interface <port> del trunk <name> # detach a member interface del trunk <name> # destroy the trunk show interface bonding
Modes
8023ad is LACP and the default: it needs LACP on the switch and gives active-active load sharing. active-backup keeps one member active with the rest standby and needs no switch configuration, which makes it the safe choice when you do not control the far end. balance-xor is a static L3 and L4 hash load share with no LACP.
Building a bond
Trunk edits follow the normal candidate, commit and save model — review with show pending, commit records the change, save writes bond.conf. The one difference is apply timing: a bond must be built before its ports are queued, so commit does not build it live. The bond is created on the next restart, the same contract as the CPU plan. Each staged command tells you so as you type it.
[Netvyn-BNG] interface add trunk bond0 mode 8023ad
[Netvyn-BNG] interface ether1 add trunk bond0
[Netvyn-BNG] interface ether2 add trunk bond0
[Netvyn-BNG] commit
[Netvyn-BNG] save
# then RESTART the daemon to build the bond
[Netvyn-BNG] show interface bonding
bond bond0 port 3 mode 802.3ad (LACP) policy l34
members 2, active 2
member 0000:03:00.0 port 1 link up 10000Mbps lacp collecting/distributing
member 0000:03:00.1 port 2 link up 10000Mbps lacp collecting/distributing
After the bond is built
Once built, the bond appears as a single port everywhere — show interfaces, RSS, worker mapping, and the access or WAN role. Optional tuning lives in bond.conf and is edited in the file rather than through the CLI: lacp-rate slow or fast sets the partner timeout, where slow at 30 seconds is the interop default, and xmit-policy l2, l23 or l34 sets the TX hash, defaulting to l34.