最好的答案Chaitrali Deshpande
Below is the procedure that you can follow for mentioning a VLAN mode.<\/p>
- logon to CVM with SSH<\/li>
- 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]<\/pre> <\/li>
-
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\u00a0vlan_mode\u00a0is set to\u00a0kTrunked\u00a0and is ignored if\u00a0vlan_mode\u00a0is set to\u00a0kAccess. To include the default VLAN, VLAN 0, include it in the list of trunked networks. To trunk all VLANs, set\u00a0vlan_mode\u00a0to\u00a0kTrunked\u00a0and skip this parameter.
vlan_mode. A mode in which the virtual NIC must operate. Set the parameter to\u00a0kAccess\u00a0for access mode and to\u00a0kTrunked\u00a0for trunk mode. Default:\u00a0kAccess<\/code>
Let me know if this answered whatever you were looking for.
-Regards,
Chaitrali<\/p> <\/li> <\/ol>","className":"post__content__best_answer"}">