Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
DHCP Server for multiple vlan
« previous
next »
Print
Pages: [
1
]
Author
Topic: DHCP Server for multiple vlan (Read 1101 times)
yuiop788
Newbie
Posts: 3
Karma: 0
DHCP Server for multiple vlan
«
on:
October 27, 2023, 08:23:03 am »
Hi everyone,
Here's my network topology.
https://drive.google.com/file/d/12gVpeacvfyUqJH7GzuDUhUiclIdMuwtP/view?usp=sharing
I don't know OPNsense have this function or not.
I need OPNsense to be a DHCP server, offering IPs for multiple vlan.
But I'm not using Trunk port to do this.
Core switch will be the DHCP relay agent, once VLAN 10 and 20 client request IP,
Core switch will relay them to OPNsense through VLAN 100,
and OPNsense offer different network subnet ip based on their vlan.
I do some LAB on Mikrotik, and it works fine.
But I don't know how to configure this function on OPNsense.
Please help me to figure it out, thanks~~~
Logged
bartjsmit
Hero Member
Posts: 2017
Karma: 194
Re: DHCP Server for multiple vlan
«
Reply #1 on:
October 27, 2023, 08:31:07 am »
Services, DHCPv4, select the interface of the network on which you want to enable DHCP, tick enable and fill in the subnet parameters.
Don't use DHCPv6, use RADVD instead - Services, Router Advertisements
Bart...
Logged
yuiop788
Newbie
Posts: 3
Karma: 0
Re: DHCP Server for multiple vlan
«
Reply #2 on:
October 27, 2023, 08:42:26 am »
Hi bartjsmit,
But OPNsense doesn't allow this action, it shows "The gateway address 172.16.10.254 does not lie within the chosen interface's subnet."
Logged
bartjsmit
Hero Member
Posts: 2017
Karma: 194
Re: DHCP Server for multiple vlan
«
Reply #3 on:
October 27, 2023, 02:30:58 pm »
The OPNsense IP address in each VLAN should be the default gateway. Make sure your interface, subnet and mask all match the DHCP scope.
Logged
Patrick M. Hausen
Hero Member
Posts: 6812
Karma: 572
Re: DHCP Server for multiple vlan
«
Reply #4 on:
October 27, 2023, 04:28:39 pm »
@bartjsmit From the topology map it is evident they want a DHCP server serving multiple subnets while connected to only one. There are probably DHCP relays configured on that core switch.
@yuiop788 I do not know if ISC-DHCP or OPNsense support that at all, sorry.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
DHCP Server for multiple vlan