OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: Kieeps on January 17, 2021, 09:10:36 AM

Title: wierd dhcp behavior
Post by: Kieeps on January 17, 2021, 09:10:36 AM
I switched from a complete unifi system a while back in favor of opnsense, an aruba s2500 switch and a aruba AP.
It's really worked well out of the box and i'w really learned a lot abot netwoking, and that was the entire point of switching... But i have one problem that i'w had since the beginning (i think, i didnt really notice untill later though)

Whenever i start my computer and log in to windows it takes a while for the dhcp to assign an IP, and when checking the logs for the dhcp server i can clearly see the dhcp trying to answer the request from the computer over and over and over... Eventually it actually gets an ip after 3ish minutes of requesting.  What could be the problem in the setup? I haven't changed anything in the native dhcp, i have added more dhpc's though but i also wiped opnsense once and started over from scratch and STILL had this behavior... Also re-installed my PC since i figured it was the culprit but it didn't fix it, nor did changibg the betwork card in the pc, couldbiut be the switch? Is there a way to activate a more extensive debugging/logging on the dhcp service?

I really don't know where to start troubleshooting :-)
Title: Re: wierd dhcp behavior
Post by: Fright on January 17, 2021, 11:12:16 AM
Quotecouldbiut be the switch?
could be. STP or something like that.
can try to enable PortFast on PC interface
Quoteeally don't know where to start troubleshooting
can try to connect directly to OPN and compare the results
Title: Re: wierd dhcp behavior
Post by: Gauss23 on January 17, 2021, 12:24:57 PM
First try what Fright said.

After a quick search it looks like in S2500 switch you can configure DHCP relay. In that case you can set your OPNsense as the DHCP server. Maybe it helps to speed things up.

As a note I wouldn't have removed the unifi switches and APs. Exchanging the router for an OPNsense was a good idea though.
Title: Re: wierd dhcp behavior
Post by: Kieeps on January 17, 2021, 02:41:04 PM
Quote from: Fright on January 17, 2021, 11:12:16 AM
Quotecouldbiut be the switch?
could be. STP or something like that.
can try to enable PortFast on PC interface
Quoteeally don't know where to start troubleshooting
can try to connect directly to OPN and compare the results

I will look in to that tonight :-) thanks for the response!


Quote from: Gauss23 on January 17, 2021, 12:24:57 PM
First try what Fright said.

After a quick search it looks like in S2500 switch you can configure DHCP relay. In that case you can set your OPNsense as the DHCP server. Maybe it helps to speed things up.

As a note I wouldn't have removed the unifi switches and APs. Exchanging the router for an OPNsense was a good idea though.

I'll try the relaying aswell :-) i still have all the unifi stuff stored in a box :-) the main reason i switched was to learn networking, i got 3 aruba s2500 and a 505 ap from work, we get a lot of networking equipment that no one wants to keep, since they are layer 3 i fugured I'd try to learn some routing as well :-)