OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 24.7 Production Series »
  • ISC DHCP secondary pool
« previous next »
  • Print
Pages: [1]

Author Topic: ISC DHCP secondary pool  (Read 200 times)

clarknova

  • Full Member
  • ***
  • Posts: 106
  • Karma: 7
    • View Profile
ISC DHCP secondary pool
« on: November 04, 2024, 09:45:42 pm »
I have an OPNsense pair configured in HA. I have an existing subnet with a CARP IP and ISC DHCP server running:
Code: [Select]
Interface: opt14
CARP address: 10.13.4.1/24
VHID: 134
DHCP Range: 10.13.4.100 - 10.13.4.199

So far this works as expected and the DHCP server serves leases on the primary subnet.

I need to run a second DHCP pool on this same interface but a different subnet. I created a VIP on the new subnet using the same VHID as the CARP interface:
Code: [Select]
Interface: opt14
VIP: 172.31.0.254/24
VHID: 134

Then I added a secondary pool to the DHCP server on this interface:
Code: [Select]
Range: 172.31.0.16 - 172.31.0.32
As soon as I save the change, the DHCP service stops and the log shows:
Quote
bad range, address 172.31.0.16 not in subnet 10.13.4.0 netmask 255.255.255.0

What am I doing wrong?
Is there a way to achieve what I'm trying to do?
Logged

dseven

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: 36
    • View Profile
Re: ISC DHCP secondary pool
« Reply #1 on: November 05, 2024, 10:28:31 am »
What *are* you trying to do? Is it about additional capacity? Or something else?

AFAICT, DHCP for multiple subnets on a single interface is not supported.
Logged

clarknova

  • Full Member
  • ***
  • Posts: 106
  • Karma: 7
    • View Profile
Re: ISC DHCP secondary pool
« Reply #2 on: November 13, 2024, 12:03:09 am »
I was trying to work with a host that was temporarily moved from another network. Re-IPing the host broke some ACLs so I was trying to preserve its IP address, and adding an interface to OPNsense wasn't an option. I was able to connect to the host and update the ACls to get things working.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 24.7 Production Series »
  • ISC DHCP secondary pool
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2