Changing vlan of VM | Nutanix Community
Skip to main content
Solved

Changing vlan of VM

  • January 27, 2017
  • 4 replies
  • 4574 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
Did this topic help you find an answer to your question?
This topic has been closed for comments

4 replies

Jon
Nutanix Employee
Forum|alt.badge.img+29
  • Nutanix Employee
  • 569 replies
  • Answer
  • January 27, 2017
Delete the vNic and remake it in a different VLAN.

Forum|alt.badge.img+12
  • Trailblazer
  • 37 replies
  • March 21, 2017
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
  • 30 replies
  • March 22, 2017
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
  • 1 reply
  • September 27, 2017
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