OPNsense Forum

English Forums => General Discussion => Topic started by: spetrillo on December 31, 2020, 04:37:50 AM

Title: Default LAN Interface Config Question
Post by: spetrillo on December 31, 2020, 04:37:50 AM
My LAN interface is 192.168.1.0/24. Can I also configure it for a vlan on another subnet? Is this doable?
Title: Re: Default LAN Interface Config Question
Post by: Matriciel on December 31, 2020, 07:06:26 AM
Another subnet, i don't know, but Vlan yes. This in interface section
Title: Default LAN Interface Config Question
Post by: Greelan on December 31, 2020, 01:12:12 PM
Interfaces - Other Types - VLAN: create VLAN
Interfaces - Assignments: assign VLAN interface
Interfaces - [VLAN NAME]: set up subnet etc

You will also need to create required firewall rules to allow traffic in/out

Google "OPNsense VLANs", plenty of guides out there
Title: Re: Default LAN Interface Config Question
Post by: spetrillo on January 01, 2021, 06:02:20 PM
Quote from: Matriciel on December 31, 2020, 07:06:26 AM
Another subnet, i don't know, but Vlan yes. This in interface section

Yes I am trying to determine if I can have a vlan on the same default LAN interface, but on a different subnet. For example:

Default LAN Interface(IGB1): configured for 192.168.1.0/24
VLAN 1(IGB1): configured for 192.168.0.0/24

I dont want to make any changes until someone can confirm this will work or will not work.
Title: Re: Default LAN Interface Config Question
Post by: banym on January 01, 2021, 06:50:29 PM
Yes you could use multiple VLANs on one interface with multiple subnets. That is what VLANs are for.

You will need a VLAN capabal switch or hardware to make us of it.