Opnsense and Win 11 in VirtualBoxes

Started by thiagohass, April 07, 2026, 04:41:10 AM

Previous topic - Next topic
April 07, 2026, 04:41:10 AM Last Edit: April 07, 2026, 02:01:50 PM by thiagohass
Hi, how are you?

I have OpenSense in a VirtualBox, and I also have Windows 11 in another VirtualBox. I wanted to use this Windows 11 to test if the VLAN I created in OpenSense would work, but I can't get Windows 11 to obtain an IP address. I've tried so many things and nothing works.

Has anyone done this before and can help me?

I can give this piece of help: edit your first post and change the title to something like "Opnsense and Win 11 in VirtualBoxes - connection problem"

Be informative.
Deciso DEC697

Quote from: passeri on April 07, 2026, 06:37:10 AMI can give this piece of help: edit your first post and change the title to something like "Opnsense and Win 11 in VirtualBoxes - connection problem"

Be informative.

I ended up posting it right away because I couldn't wait any longer, thank you.

Quote from: thiagohass on April 07, 2026, 04:41:10 AMHas anyone done this before and can help me?
I have done the following many years ago in Proxmox :
- Setup pfSense VM which has a WAN that connects via the Default Proxmox Bridge to my Guest VLAN.
- All sorts of Linux VMs attached to the LAN Interface of the pfSense VM of which one was a Desktop Install.
- You can connect to this VM from Windows or Linux via S.P.I.C.E. which works seriously good : It feels like everything was local and not over the network :)

Just an idea in case you feel like doing the same with OPNsense and Windows 11.
Weird guy who likes everything Linux and *BSD on PC/Laptop/Tablet/Mobile and funny little ARM based boards :)

Quote from: nero355 on April 07, 2026, 04:03:41 PM
Quote from: thiagohass on April 07, 2026, 04:41:10 AMHas anyone done this before and can help me?
I have done the following many years ago in Proxmox :
- Setup pfSense VM which has a WAN that connects via the Default Proxmox Bridge to my Guest VLAN.
- All sorts of Linux VMs attached to the LAN Interface of the pfSense VM of which one was a Desktop Install.
- You can connect to this VM from Windows or Linux via S.P.I.C.E. which works seriously good : It feels like everything was local and not over the network :)

Just an idea in case you feel like doing the same with OPNsense and Windows 11.

Hi, how are you?

From what I understand, Windows 11 is bad at understanding VLAN tags, so it only worked when I left EM2 as the default, but if it had something like (testvlan parent:em2) it didn't work. I also saw that Linux is much better for doing these tests than Windows.

Quote from: thiagohass on April 07, 2026, 06:28:44 PMHi, how are you?
Hi, I am fine. How are you ? ^_^

QuoteWindows 11 is bad at understanding VLAN tags
Could be... I don't know... Never used it and don't feel like ever using it to be honest!

QuoteLinux is much better for doing these tests than Windows.
You have got more tools for this kind of stuff in general anyway, so I would never use Windows instead.
Weird guy who likes everything Linux and *BSD on PC/Laptop/Tablet/Mobile and funny little ARM based boards :)

When you create a VLAN in OPNsense, it's traffic will be always tagged, so the next hop must be VLAN-aware, either a (virtual)switch or a (virtual)machine. Otherwise, you have the proper Layer 2 segmentation.

Don't you have to install virtual box guest additions to get a NIC driver? Does that driver support VLAN tagging? I may be out of date on this, but many windows network drivers did not, including the standard desktop Intel driver.

Creating a virtual switch (bridge) that manages the VLANs can be a good approach. Then, the client machines networks can be connected as the user needs with no config inside.