Solved

Changing vlan of VM

  • 27 January 2017
  • 4 replies
  • 9649 views

Userlevel 2
Badge +17
How to change VLAN of VM created in AHV?
icon

Best answer by Jon 27 January 2017, 16:40

Delete the vNic and remake it in a different VLAN.
View original

4 replies

Userlevel 7
Badge +30
Delete the vNic and remake it in a different VLAN.
Userlevel 2
Badge +13
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
Userlevel 2
Badge +17
Nope. This is for using VM NIC as trunk or access port to pass multiple VLAN on single VM NIC
Userlevel 1
Badge
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

Reply