K
K
Kenny002021-12-06 17:29:25
Computer networks
Kenny00, 2021-12-06 17:29:25

How to forward tagged trunk vlan to hyper-v guest machine?

How to forward a tagged trunk to a hyper-v guest machine?

The trunk vlan switch port is connected to the host machine.
the task is to leave 3 vlan to the guest machine.
The windows server is already configured to accept tags ( https://docs.microsoft.com/ru-ru/windows-server/ne... )
It all works under KVM without problems, it's hyper-v's turn.

In Hyper-V, network card forwarding is enabled in vSwitch as a bridge.
External-vSwitch-creation.jpg
But I see only vlan id here, it will already be access . And where can I set up the trunk mode ?
Some write to create several virtual switches in the host OS, but several vlans are planned yet, I don’t think it’s correct to produce switches.

Iron probros does not fit, all the "chips" of virtual machines are lost.
( https://docs.microsoft.com/en-us/windows-server/vi... )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Grishin, 2021-12-07
@vesper-bot

VM what, router? If yes, then you can transfer the switch port to the trunk, otherwise set the vlan id and receive untagged packets from the configured vlan on the VM. It will not work to transfer the port to the trunk from the gui (or I don’t know how, but there seems to be no settings), from powershell you can use the Set-VMNetworkAdapterVlan cmdlet , which has both trunk and native vlan and allowed vlan settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question