Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

LAG/LACP 

Link aggregation (LAG) refers to aggregating multiple physical network links in parallel in order to increase throughput beyond what a single link could sustain, and provide redundancy in case any of the links should fail.

Link Aggregation Control Protocol (LACP) refers to bundling of several physical ports together to form a single logical channel. Network devices use LACP to negotiate automatic bundling of links by sending LACP packets to its directly connected peer(s)

...

Info

1, PicOS OVS supports LAG and LACP.

2, PicOS can support 48 LAG or LACP at most. Each LAG has a maximum of 8 member ports.

3, The port ranges in PicOS are as follows:

Port TypePort Number

LAG

1025-2047



Create a Static LAG

In following configuration, user can create LAG ae1, and add port 2 and port 3 into this LAG

...

While dual-homing a host does not require a LAG configuration on the switch, this configuration illustrates steps required to setup LAG on the host connected to two different switches.

 

Host LAG ConfigurationSwitch Port Configuration

pica8@Ubuntu$ more /etc/modprobe.d/bonding.conf 

bonding mode=1 miimon=100 

pica8@Ubuntu$ more /etc/network/interfaces

 

# NIC bonding config for LAG active-backup START

auto eth1

iface eth1 inet manual

        bond-master bond0

 bond-primary eth1

auto eth2

iface eth2 inet manual

        bond-master bond0

auto bond0

iface bond0 inet static

 address 10.0.0.20

 netmask 255.255.255.0

bond-mode active-backup

bond-miimon 100

bond-slaves none 

# NIC bonding config for LAG active-backup END

 

pica8@Ubuntu$  cat /proc/net/bonding/bond0 

Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

 

Bonding Mode: fault-tolerance (active-backup)

Primary Slave: eth1 (primary_reselect always)

Currently Active Slave: eth1

MII Status: up

MII Polling Interval (ms): 100

Up Delay (ms): 0

Down Delay (ms): 0

 

Slave Interface: eth2

MII Status: up

Speed: 1000 Mbps

Duplex: full

Link Failure Count: 0

Permanent HW addr: 00:0c:29:70:2e:c2

Slave queue ID: 0

 

Slave Interface: eth1

MII Status: up

Speed: 1000 Mbps

Duplex: full

Link Failure Count: 0

Permanent HW addr: 00:0c:29:70:2e:b8

Slave queue ID: 0

OVS-Sw1$ovs-vsctl add-port br0 ge-1/1/1 vlan_mode=trunk tag=1 -- set interface ge-1/1/1 type=pica8

 

OVS-Sw2$ovs-vsctl add-port br0 ge-1/1/1 vlan_mode=trunk tag=1 -- set interface ge-1/1/1 type=pica8


Create a LACP Port

Following is the configuration on the host (running Ubuntu):

Code Block
pica8@Ubuntu:~$ more /etc/modprobe.d/bonding.conf 
bonding mode=4 miimon=100 lacp_rate=1

pica8@Ubuntu:~$ more /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp

# NIC bonding config with LACP START
auto eth1
iface eth1 inet manual
        bond-master bond0
auto eth2
iface eth2 inet manual
        bond-master bond0
auto bond0
iface bond0 inet static
 address 10.0.0.10
 netmask 255.255.255.0
bond-mode 802.3ad 
bond-miimon 100
bond-lacp-rate 1
bond-slaves none 
# NIC bonding config with LACP END
 
 
pica8@Ubuntu:~$ /etc/init.d/networking restart sudo systemctl restart networking

pica8@Ubuntu:~$ cat /proc/net/bonding/bond0 
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
 
802.3ad info
LACP rate: fast
Min links: 0
Aggregator selection policy (ad_select): stable
Active Aggregator Info:
Aggregator ID: 3
Number of ports: 2
Actor Key: 17
Partner Key: 1
Partner Mac Address: 00:11:11:11:11:11
 
Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:0c:29:fd:75:ae
Aggregator ID: 3
Slave queue ID: 0
 
Slave Interface: eth2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:0c:29:fd:75:b8
Aggregator ID: 3
Slave queue ID: 0

...


LAG number index is shown as following:

LAG NameLAG Number
ae11025
ae21026
....
ae10232047

 

Display the LACP Information

...