OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: tdalej on January 15, 2024, 08:07:51 PM

Title: DHCP on interfaces other than LAN
Post by: tdalej on January 15, 2024, 08:07:51 PM
Quick search on here doesn't provide any obvious hits.

I want to set up a DHCP server for interfaces other than "LAN" -- I want a separate range for a wireless subnet (just an interface connected to an access point), a separate internal subnet for 10gb network, etc ...

I don't see a way to access DHCP setting for anything other than the first configure LAN interface .....

Is this possible with OPNsense?

Title: Re: DHCP on interfaces other than LAN
Post by: Patrick M. Hausen on January 15, 2024, 08:13:29 PM
Sure. Set a static IP address for that interface, then navigate to Services > DHCPv4 > <interface> ...
Title: Re: DHCP on interfaces other than LAN
Post by: tdalej on January 15, 2024, 09:41:56 PM
I did that.
I'm trying to set this up in parallel and shift one subnet at a time, thus the effort to configure then enable.

DHCP server doesn't show up until the interface is enabled. doh!

Even after figuring that out, enabling the interface, rebooting, enabling the DHCP server for an OPTn interface, rebooting again, still no leases handed out though.

Two interfaces not in use by the other firewall still not functioning. :/

One interface is wired directly to a wireless access point and another is connected to an 8 port hub with one laptop connected.
Neither seem to be able to get an IP address.

Title: Re: DHCP on interfaces other than LAN
Post by: Patrick M. Hausen on January 15, 2024, 10:11:53 PM
Use tcpdump to trace DHCP requests and replies and find where the first or the second are lost.