Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Hardware and Performance
»
DHCP service for multiple VLAN
« previous
next »
Print
Pages: [
1
]
Author
Topic: DHCP service for multiple VLAN (Read 4203 times)
Vincent Chen
Newbie
Posts: 8
Karma: 0
DHCP service for multiple VLAN
«
on:
February 15, 2022, 03:36:25 am »
Hello, everyone
I just got a cisco SG-250 switch and plan to create 2 VLAN on it.
Opnsense will connect to VLAN1. Is it possible to assign IP to
VLAN2 from opnsense dhcp service? I googled and found a similiar
topic years ago and it say it not possible.
If opnsense can not help, I should build a dhcp server on vlan1 and
use SG-250 dhcp relay feature to assign IP to VLAN2. Is this idea
correct?
Thanks,
Logged
lilsense
Hero Member
Posts: 600
Karma: 19
Re: DHCP service for multiple VLAN
«
Reply #1 on:
February 15, 2022, 01:16:45 pm »
You need to configure the interface connected to the Cisco as a trunk interface carrying multiple VLANs. Next create your vlans and assign them to your interface. Assign the vlans with IP and setup DHCP, done.
Simple googling:
https://homenetworkguy.com/how-to/configure-vlans-opnsense/
«
Last Edit: February 15, 2022, 01:27:11 pm by lilsense
»
Logged
Vincent Chen
Newbie
Posts: 8
Karma: 0
Re: DHCP service for multiple VLAN
«
Reply #2 on:
February 16, 2022, 02:53:32 am »
Thanks for giving me a good idea to start.
Let me share my experience:
Environment
SG-250 have 2 vlan with id 1,2, opnsense connect to vlan1
Opnsense side
1. add a vlan with id 2
2. assign interface for vlan2
3. enable dhcp service on vlan2
SG-250
1. configure opnsense port to trunk
That's all
«
Last Edit: February 21, 2022, 09:53:23 am by Vincent Chen
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Hardware and Performance
»
DHCP service for multiple VLAN