OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: tfcb on July 12, 2018, 06:14:24 pm

Title: Static IP from DHCP Pool
Post by: tfcb on July 12, 2018, 06:14:24 pm
Hi,

I'm attempting to understand how static ip addresses are allocated and presented. When clicking the "+" on Services: DHCPv4: Leases the instructions state:

If an IPv4 address is entered, the address must be outside of the pool.
If no IPv4 address is given, one will be dynamically allocated from the pool.

Unfortunately the IP address for a statically assigned device is always blank on the above-mentioned page and on Services: DHCPv4: [LAN]. How can I view the assigned IP address?

Thanks,

Tim
Title: Re: Static IP from DHCP Pool
Post by: marjohn56 on July 12, 2018, 09:33:55 pm
You decide the static address. Really it's only static if the address is set within the device itself. That being the case you will not see it in the dhcp logs. If you wish to assign a fixed address to a client so it always gets the same address, then set the device to use dhcp and let it get an address from the server. Once that is done then you look at the assigned leases and add that device to the static leases, you also give it an ip address that is outside of the dhcp server range. When the device either reboots or the lease renews it will get the address you have assigned it. You can also add it manually by just entering the mac address of the device and ip address into the static leases table.
Title: Re: Static IP from DHCP Pool
Post by: tfcb on July 12, 2018, 11:42:43 pm
Thanks for the detailed response. I was misinterpreting the instruction, "If no IPv4 address is given, one will be dynamically allocated from the pool."