Skip to main content
Solved

Changing vlan of VM

  • Jan 27, 2017 12:20 PM UTC
  • 4 replies
  • 4737 views

Forum|alt.badge.img+17
How to change VLAN of VM created in AHV?

Best answer by Jon

Delete the vNic and remake it in a different VLAN.
View original
This topic has been closed for replies.

4 replies

Jon
Nutanix Employee
Forum|alt.badge.img+29
  • Nutanix Employee
  • Answer
  • Jan 27, 2017 3:40 PM UTC
Delete the vNic and remake it in a different VLAN.

Forum|alt.badge.img+12
  • Trailblazer
  • Mar 21, 2017 10:38 AM UTC
Jon

I discussed this lately with one of my customers...

Isn't it possible to change the network with
acli vm.nic_update?

Should be much easier than deleting and re-adding a new nic... I am not sure this will work, but according to the documentation, it should...

Regards,
Bart

Forum|alt.badge.img+17
  • Author
  • Trailblazer
  • Mar 22, 2017 9:48 AM UTC
Nope. This is for using VM NIC as trunk or access port to pass multiple VLAN on single VM NIC

Forum|alt.badge.img
  • Voyager
  • Sep 27, 2017 3:09 PM UTC
It does work but you need to shutdown the VM first.

Do a vm.off "VMNAME"

Then do the following, Example:

vm.nic_update Test 50:6b:8d:f6:d0:9c network=VLAN 51