Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Can I create a VLAN with its own 192.168.x.x/24 range and DHCP?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Can I create a VLAN with its own 192.168.x.x/24 range and DHCP? (Read 627 times)
gctwnl
Jr. Member
Posts: 60
Karma: 0
Can I create a VLAN with its own 192.168.x.x/24 range and DHCP?
«
on:
November 27, 2022, 05:26:30 pm »
I'm new to opnsense and I'm migrating from EdgeMax/EdgeOS.
My Wifi network has a couple of SSIDs, each of which are coupled to a classic VLAN. On the EdgeMax, I've created a solution where a VLAN 99 is given its own 192.168.3.x network (my main LAN is 192.168.2.x), and the EdgeMax router only allows 192.168.3.x to send traffic outside. The devices on the 192.168.3.x network have their own DHCP setup.
Can I recreate this on opnsense?
Logged
Demusman
Sr. Member
Posts: 304
Karma: 13
Re: Can I create a VLAN with its own 192.168.x.x/24 range and DHCP?
«
Reply #1 on:
November 27, 2022, 06:28:10 pm »
Of course!
You can do anything you want with vlans as long as you have a switch that can handle them.
If you have enough physical interfaces you can use one of them to take the .3 network to your switch.
If you only have a WAN/LAN setup, just go to interfaces/Vlans, add a vlan to the LAN interface with whatever VID you wanna use. You can leave your LAN network untagged on your switch and any added vlans will need to be tagged.
Then go to Interfaces/Assignments and add the new vlan as an interface. You can then assign IP's DHCP and anything else you want to it.
Then that interface will show up under Firewall/Rules. Apply any rules you want to allow it whatever access you want.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Can I create a VLAN with its own 192.168.x.x/24 range and DHCP?