Hey
Below is the procedure that you can follow for mentioning a VLAN mode.
- logon to CVM with SSH
- create a vNIC and configure it in required mode using the following command:
nutanix@cvm$ acli vm.nic_create vm network=network [vlan_mode=] [trunked_networks=networks]
-
Specify appropriate values for the following parameters:
vm. Name of the VM.
network. Name of the virtual network to which you want to connect the virtual NIC.
trunked_networks. A comma-separated list of the VLAN IDs that you want to trunk. The parameter is processed only if vlan_mode is set to kTrunked and is ignored if vlan_mode is set to kAccess. To include the default VLAN, VLAN 0, include it in the list of trunked networks. To trunk all VLANs, set vlan_mode to kTrunked and skip this parameter.
vlan_mode. A mode in which the virtual NIC must operate. Set the parameter to kAccess for access mode and to kTrunked for trunk mode. Default:kAccess
Let me know if this answered whatever you were looking for.
-Regards,
Chaitrali
The process is also explained in detail in AHV Administration Guide - Configuring a Virtual NIC to Operate in Access or Trunk Mode
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.