If you want to configure 1 GbE connectivity for guest VMs, you can aggregate the 1 GbE interfaces (eth0 and eth1) to a bond on a separate OVS bridge, create a VLAN network on the bridge, and then assign guest VM interfaces to the network.
To configure 1 GbE connectivity for guest VMs, do the following:
- Log on to the AHV host with SSH.
- Log on to the Controller VM.
root@host# ssh nutanix@192.168.5.254
Accept the host authenticity warning if prompted, and enter the Controller VM nutanix password.
- Determine the uplinks configured on the host.
nutanix@cvm$ allssh manage_ovs show_uplinks
Output similar to the following is displayed:
Executing manage_ovs show_uplinks on the cluster ================== 192.0.2.49 ================= Bridge br0: Uplink ports: br0-up Uplink ifaces: eth3 eth2 eth1 eth0 ================== 192.0.2.50 ================= Bridge br0: Uplink ports: br0-up Uplink ifaces: eth3 eth2 eth1 eth0 ================== 192.0.2.51 ================= Bridge br0: Uplink ports: br0-up Uplink ifaces: eth3 eth2 eth1 eth0
- If the 1 GbE interfaces are in a bond with the 10 GbE interfaces, as shown in the sample output in the previous step, dissociate the 1 GbE interfaces from the bond. Assume that the bridge name and bond name are br0 and br0-up, respectively.
nutanix@cvm$ allssh 'manage_ovs --bridge_name br0 --interfaces 10g --bond_name br0-up update_uplinks'
The command removes the bond and then re-creates the bond with only the 10 GbE interfaces.
- Create a separate OVS bridge for 1 GbE connectivity. For example, create an OVS bridge called br1 (bridge names must not exceed 10 characters.).
nutanix@cvm$ allssh 'ssh root@192.168.5.1 /usr/bin/ovs-vsctl add-br br1'
- Aggregate the 1 GbE interfaces to a separate bond on the new bridge. For example, aggregate them to a bond named br1-up.
nutanix@cvm$ allssh 'manage_ovs --bridge_name br1 --interfaces 1g --bond_name br1-up update_uplinks'
- Log on to any Controller VM in the cluster, create a network on a separate VLAN for the guest VMs, and associate the new bridge with the network. For example, create a network named vlan10.br1 on VLAN 10.
nutanix@cvm$ acli net.create vlan10.br1 vlan=10 vswitch_name=br1
- To enable guest VMs to use the 1 GbE interfaces, log on to the web console and assign interfaces on the guest VMs to the network.For information about assigning guest VM interfaces to a network, see “Creating a VM” in the Prism Web Console Guide.