Windows 10, Virtualbox and Ubuntu VLANs

I have a laptop with Windows 10 and a Realtek PCIe GBE Family Controller. My NIC is connected to a switch in trunk mode (traffic for 2 VLANs transiting via this connection).

I would like to setup the VLANs on an Ubuntu Linux VM on Virtual Box.

First, I created two VLANs on Windows via the Realtek diagnostic utility.

The Ubuntu VM will act as a DHCP server for the two VLANs (everything is set up with isc-dhcp-server). I also did all the necessary configuration on Ubuntu for the VLANs i.e. creating the VLANs, configuring IP addresses etc...

On Virtual Box, I only have one virtual adapter configured in bridged mode and using the Realtek NIC.

When I run Wireshark on Ubuntu to capture traffic, I don't see any incoming traffic for the VLANs.

Any idea what is wrong?

1
задан 2 May 2018 в 13:43
1 ответ

Я ожидал, что когда вы создали сети VLAN в программе диагностики Realtek, на вашем ПК были созданы дополнительные виртуальные сетевые адаптеры, по одному для каждой VLAN. Вам нужно будет соединить их индивидуально с VirtualBox как отдельные сети и представить их виртуальной машине как отдельные виртуальные сетевые карты, которые будут настроены внутри Ubuntu обычным способом - Ubuntu не нужно знать о VLAN, поскольку теги были обработаны и удалены. с помощью инструмента Realtek к тому времени.

0
ответ дан 4 December 2019 в 04:00

Теги

Похожие вопросы