Virtual Box Switch Configuration

This is for discussing general topics about how to use VirtualBox.
Post Reply
M4UROX
Posts: 10
Joined: 16. Jan 2017, 11:45

Virtual Box Switch Configuration

Post by M4UROX »

Hello,

Is there any way to make a configuration of the virtual box "virtual switch" ?
Im implementing vlans and i need to change some things on the switch:

Port Mode: Trunk
Default VLAN of port: VLAN ID1 Untagged
VLAN ID for green network: VLAN ID 300 Tagged
VLAN ID for blue network: VLAN ID 400 tagged

Thank you
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Virtual Box Switch Configuration

Post by scottgus1 »

Best of my reading of the manual (section 6), the Virtualbox "Switch" is an unmanaged switch, no configuration, simply pass the data. You can have multiple switches by using more of the types of networks that create the switches.

Each Internal network has its own switch, and you make new Internal networks by assigning a new name to them. When two guests connected to an Internal network with a certain name, a switch for that internal network is generated and the two guests are connected. Connect another guest to that Internal network name, and the guest gets connected to that network's switch. Come up with another name for an internal network and attach two or more guests by that new name, and another switch is made.

If you want to make VLANS, you will need to use a guest OS that can set up a VLAN-capable switch. Maybe a router OS like pfSense? Then you will need different networks on each port of the LAN you design with the router OS guest.
Post Reply