OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: tryllz on March 20, 2021, 07:37:24 AM

Title: Physical Switch VLAN to OPNsense VM Sub-interfaces..
Post by: tryllz on March 20, 2021, 07:37:24 AM
Hi,

I'm planning to purchase a TP-Link T2500G-10TS (TL-SG3210) switch for home lab. I already have a dell server with quad-port NIC which I will connect to the switch and I'll make VLANs.

The server connects to the switch, the switch connects to my laptop which will run OPNsense VM.

My question is can I use an OPNsense VM (runningin VMware Workstation) to have a Router-on-a-stick configuration with a physical switch, or is this only possible with a physical firewall/router ?

I'm unwilling to purchase a physical firewall/router to save money if Router-on-a-stick is possible with a physical switch to firewall/router VM.

Thank You
Title: Re: Physical Switch VLAN to OPNsense VM Sub-interfaces..
Post by: tryllz on March 24, 2021, 12:42:22 PM
Any thoughts on this please ?

Thank You
Title: Re: Physical Switch VLAN to OPNsense VM Sub-interfaces..
Post by: Maurice on March 24, 2021, 01:05:22 PM
If VMware Workstation supports VLANs: Sure, it would work. You typically don't configure VLANs in OPNsense itself when using virtual NICs. You create a virtual NIC for each VLAN instead.

(Works fine with Hyper-V, don't know about VMware Workstation.)