Hello again,
2nd post here.
I set up my opnsense computer to be my router connected to a Zyxel managed switch. So far I have internet and can lists the connected clients via Interfaces>Diagnostics>ARP Table. My question for help here is with reserving a static IP for some of those devices. On some of the devices I was able to set the IP in the device itself and opnsense shows those properly. I would like to setup other devices at router level.
I *tried* some things. I may be missing something or be completely of track, but here is what I have so far.
Under Services>Kea DHCP>Kea DHCPv4,
under the tab Settings I clicked Enable.
under the tab Subnets I created 192.168.1.1/24 with a pool of 192.168.1.100 - 192.168.1.254
under the tab Reservations I chose that above Subnet, entered (pasted) the MAC address, and assigned 192.168.1.24 to be the IP and applied.
After rebooting both the router and the device (a Raspberry pI), it still gets assigned a random dynamic IP.
I searched Google and it said to go to
QuoteGo to Services > DHCPv4 > Leases .
Find your device: in the list of current leases (look for its MAC address) or click the + button to add a new entry.
Under Services > DHCPv4 > Leases I do not have anything listed. I think that might be a clue as to the problem, but at this point I need help.
Am I completely off? Can anyone tell me what I need to do to assign static IPs?
Thanks!
Did you mean to write "Services>Kea DHCP>Leases DHCPv4"?
I ask because you see no leases at all, and I lack information on whether Kea is set up correctly, ISC off. Are interfaces set? Are there devices which should have dynamic addresses?
Quote from: passeri on Today at 02:39:13 AMDid you mean to write "Services>Kea DHCP>Leases DHCPv4"?
I ask because you see no leases at all, and I lack information on whether Kea is set up correctly, ISC off. Are interfaces set? Are there devices which should have dynamic addresses?
Thanks for your reply. A lot if this stuff has similar wording and abbreviations. It's confusing, so I hope these screen shots explain what I have.
Thanks again!
I just noticed this...
Words matter. You are looking at ISC leases. Please look under Kea in the menu I gave. I trust also that you have verified that ISC is not enabled. Kea is not ISC DHCP. You cannot run both and neither will inform you about the other.
In your first screenshot, Kea is not listening on any interface. Try adding your LAN, or all the networks you need there.
From your original description, your range, pool and reservation look OK but the above problems most likely mean that nothing is happening and you are looking in the wrong place to know it anyway.
Quote from: Hollywood on Today at 04:50:53 AMI just noticed this...
Are both the control agent and Kea DHCPv4 enabled?
Edit to add: This is additional to my comments above, not in lieu.
thanks for your replies. It takes me awhile to digest new stuff. I am watching youtube videos to help. I think I can get it with time.
i'm not sure what ISC stands for, but from what I understand, I can use either Dnsmasq or Kea DHCP, but not both. I think I need to also make a new interface in Kea DHCP, and I am trying to learn that now.
You are pointing me in the right direction and it matches what youtube has. Luckily I have a backup router in case (when) I screw something up.
Thanks again!
@passeri
As all of this is new to me I am learning as I go. I just went into the Dnsmasq section and although it's laid out different, it allowed me to set a reserved IP similar to most other routers.
That was my learning goal for today and it was a success!
Thanks again!
ISC was responsible for "ISC DHCP" which is superseded by Kea, especially for larger installations. DNSmasq is an alternative. Please ignore "ISC DHCP" in the menus, whatever else you do (other than making sure it is disabled of course).
I prefer Opnsense official documentation, which is generally well written. If it proves a little terse then ask for clarification here. Videos and other secondary documentation can be out of date or wrong (or both) so if video is your preferred instructional method you should still verify every step against the official documentation. You will find the relevant part here. (https://docs.opnsense.org/manual/kea.html)
The advice I am giving you is based also on my own working Kea with different subnets and reservations in each. It worked first time by following the docs.
Thanks again. It looks like there were several ways to achieve a static IP for clients devices. I'm glad I got it to work with Dnsmasq and it was not the worst of the methods. Every success means I learned something and I suspect I will revisit this (Kea DHCP) as I get more comfortable with opnsense.
The videos are all over the place as far as the speed of the persons voice and even an accent as my hearing misses a lot at my age. Some are helpful though.
I needed static IPs for my music server and players. Now that I have a basic working router, I will install it permanently and add the other features I want as I go, ...and be sure to look at that documentation. :)
The next steps will be adding an openVPN client and a few vlans. I know the concept of both from other routers and neither will slow me from using opnsense in the meantime.
As I am writing this, there is one thing I also will add, is a way to write a backup to a separate ssd so I can restore it if (when) I mess up. I'm just talking out loud here. The point is there will always be ideas to make MY router better, ....and mine.
Thanks again!!!