Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
SOLVED: DHCP keeps dishing IPs already used in static mappings
« previous
next »
Print
Pages: [
1
]
Author
Topic: SOLVED: DHCP keeps dishing IPs already used in static mappings (Read 1017 times)
hanse
Newbie
Posts: 3
Karma: 0
SOLVED: DHCP keeps dishing IPs already used in static mappings
«
on:
August 16, 2023, 12:30:23 pm »
Hi all
I have a persistent problem that I just cannot seem to get rid of. I have added a bunch of static mappings for servers (Like Docker Swarm nodes) that I want to have the same IPs all the time. Problem is, whenever I create a new VM or container on Proxmox, it will be issued with an address that is already used in a static mapping.
See attachment.
Any idea how I can get rid of this problem? What am I doing wrong?
TIA.
«
Last Edit: August 16, 2023, 12:44:20 pm by hanse
»
Logged
Patrick M. Hausen
Hero Member
Posts: 6848
Karma: 575
Re: DHCP keeps dishing IPs already used in static mappings
«
Reply #1 on:
August 16, 2023, 12:31:34 pm »
Static mappings and your dynamic range must not overlap.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
hanse
Newbie
Posts: 3
Karma: 0
Re: DHCP keeps dishing IPs already used in static mappings
«
Reply #2 on:
August 16, 2023, 12:36:01 pm »
Sorry but I don't understand why not? Adding a static lease is supposed to reserve an IP in the pool for exactly this case? Or should I create a smaller pool, and then add static mappings from higher up in the range for example?
Logged
franco
Administrator
Hero Member
Posts: 17668
Karma: 1611
Re: DHCP keeps dishing IPs already used in static mappings
«
Reply #3 on:
August 16, 2023, 12:41:56 pm »
Simple: because isc-dhcp will hand out dynamic leases and doesn't care that it also has a static lease.
Cheers,
Franco
Logged
hanse
Newbie
Posts: 3
Karma: 0
Re: DHCP keeps dishing IPs already used in static mappings
«
Reply #4 on:
August 16, 2023, 12:44:04 pm »
OK thank you for the clarification. TIL.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
SOLVED: DHCP keeps dishing IPs already used in static mappings