Nutanix AHV VLAN Configuration

CVM & AHV host should be on the same VLAN, by Default CVM & AHV Hosts are untagged and shown as VLAN 0 placed as native VLAN.

Assign VLAN on AHV Host:

  • Login to AHV host using root account
  • Put the host & CVM into maintenance mode
  • Assign the port br0 to VLAN

root@ahv# ovs-vsctl set port br0 tag=host_vlan_tag

Replace host_vlan_tag with the desire VLAN ID.

  • Confirm VLAN tagging on port br0.

root@ahv# ovs-vsctl list port br0

  • Confirm the tag parameter

Assign VLAN on CVM:

  • Login to AHV Host using root account
  • Login to CVM

ssh nutanix@192.168.5.254

  • Assign VLAN to public interface for CVM

change_cvm_vlan vlan_id

  • Replace vlan_id with the desire VLAN ID.
  • Restart the network service
  • sudo service network restart

Tips:

  • Nutanix Recommend to configure CVM & Host VLAN as native VLAN or untagged, as New nodes send and received untagged traffic. If tagged VLAN is used VLAN must be updated on the new Nodes before adding new nodes.

Leave a comment