Configuring LACP in an Acropolis Cluster

Source : Nutanix KB 1681: Nutanix Support for Link Aggregation Groups (LAG) and Link Aggregation Control Protocol (LACP) for VMware , Hyper-V , Acropolis hypervisor’s configuration information.

Configuring LACP in an Acropolis Cluster
The following instructions assume that you have to add a bridge, add a bond on the bridge, and then
configure LACP for the interfaces in the bond.
To configure LACP for an Open vSwitch bond in the Acropolis hypervisor (AHV), do the following:
1. Log on to the Controller VM with SSH.
root@host# ssh nutanix@192.168.5.254
Accept the host authenticity warning if prompted, and enter the Controller VM nutanix password.
2. Create a bridge.
nutanix@cvm$ allssh ‘ssh root@192.168.5.1 /usr/bin/ovs-vsctl add-br bridge’
Replace bridge with a name for the bridge. The output does not indicate success explicitly, so you can
append && echo success to the command. If the bridge is created, the text success is displayed.
For example, create a bridge and name it br1.
nutanix@cvm$ allssh ‘ssh root@192.168.5.1 /usr/bin/ovs-vsctl add-br br1 && echo success’
3. Create a bond with the desired set of interfaces.
nutanix@cvm$ manage_ovs –bridge_name bridge –interfaces interfaces —
bond_name bond_name update_uplinks
Replace bridge with the name of the bridge on which you want to create the bond. Omit the —
bridge_name parameter if you want to create the bond on the default OVS bridge br0.
Replace bond_name with a name for the bond. The default value of –bond_name is bond0.
Replace interfaces with one of the following values:
KB 1681: Nutanix Support for Link Aggregation Groups (LAG) and Link Aggregation Control Protocol (LACP)
| Nutanix | 6
• A comma-separated list of the interfaces that you want to include in the bond. For example,
eth0,eth1.
• A keyword that indicates which interfaces you want to include. Possible keywords:
• 10g. Include all available 10 GbE interfaces
• 1g. Include all available 1 GbE interfaces
• all. Include all available interfaces
For example, create a bond named bond1, with interfaces eth0 and eth1.
nutanix@cvm$ manage_ovs –interfaces eth0,eth1 –bond_name bond1 update_uplinks
4. Log on to the Acropolis host with SSH, and then configure LACP for the bond.
ovs-vsctl set port bond1 lacp=active
5. Verify the status of the bond.
ovs-appctl bond/show bond_name
Note: The following command shows more detailed LACP-specific information:
ovs-appctl lacp/show bond_name
Output similar to the following is displayed:
—- bond1 —-
status: active negotiated
sys_id: 00:13:81:ef:ac:ba
sys_priority: 65534
aggregation key: 4
lacp_time: fast

You can also use the following command to view the configuration details of the bond:
ovs-vsctl list port bond1
Output similar to the following is displayed:
_uuid : abdefeac-0421-4166-bdfe-3216532899e0

lacp : active
mac : []
name : “bond1”
other_config : {lacp-time=fast}
qos : []

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s