Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
DHCP Relay doesn't work properly since Update to 22.1.8
« previous
next »
Print
Pages: [
1
]
Author
Topic: DHCP Relay doesn't work properly since Update to 22.1.8 (Read 4609 times)
Tony Martin
Newbie
Posts: 2
Karma: 0
DHCP Relay doesn't work properly since Update to 22.1.8
«
on:
June 01, 2022, 10:04:21 am »
After having updated OPNsense to version 22.1.8 the DHCP relay doesn't work properly anymore. The interface settings in the GUI are not completely taken over to the config file so that not all VLAN's are getting ip addresses. Only killing the process and starting it manually via the CLI is succesful. Is this a bug in 22.1.8? Anyone having the same issue?
Logged
amw
Newbie
Posts: 22
Karma: 2
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #1 on:
June 01, 2022, 12:42:39 pm »
...seems config.xml is correct but not to be taken on the startup of /usr/local/sbin/dhcrelay.
Logged
TA_Soft
Newbie
Posts: 2
Karma: 0
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #2 on:
June 01, 2022, 03:58:42 pm »
Hi, i have the same problem and unfortunately restarting via the CLI doesn't do anything for me either. How did you proceed in the CLI?
-TA
Logged
amw
Newbie
Posts: 22
Karma: 2
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #3 on:
June 03, 2022, 06:39:25 am »
Kill the process and start it again with the interfaces you need. Thats it.
ps aux|grep dhc
kill -9 ID
/usr/local/sbin/dhcrelay -i XXX -i XXX....... IPDHCP IPDHCP
Logged
Tony Martin
Newbie
Posts: 2
Karma: 0
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #4 on:
June 03, 2022, 08:28:22 am »
@Moderator: Will there be a patch solving the issue or is it gonna be fixed with the next major release?
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #5 on:
June 03, 2022, 11:36:43 am »
I'm looking at
https://github.com/opnsense/changelog/blob/master/community/22.1/22.1.8
and wonder what could possibly be reported here. I don't see a bug or ample evidence that 22.1.8 is the cause. I see no confirmation of 22.1.7 working as intended either.
I'm happy to help, but without sensible information this is a goose chase.
Cheers,
Franco
Logged
amw
Newbie
Posts: 22
Karma: 2
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #6 on:
June 03, 2022, 12:18:05 pm »
Franco, do need more details? We only updated from 21.1.7 to 22.1.8. All look ok - config.xml:
<dhcrelay> <interface>opt2,opt8,opt4,opt7,opt9,opt10</interface>
but when dhcrelay starts 3 of 6 Interfaces are missing in the option of the process with the "-i" option.
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #7 on:
June 03, 2022, 12:27:22 pm »
So how do you confirm this or what is the operational issue? I'd use
# ps auxwww | grep dhcrelay
which doesn't crop the argument list.
The problem still stands: with no code changed, what sort of operational issue/bug are we looking at?
Cheers,
Franco
Logged
grunge
Newbie
Posts: 5
Karma: 0
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #8 on:
June 03, 2022, 02:00:48 pm »
I’ve got the same issue. When rebooting my nas, dhcp does not provide anything bit weirdly if I refresh the relay web page, it provides an ip. Restarting the service seems to fix it
«
Last Edit: June 03, 2022, 02:10:33 pm by grunge
»
Logged
amw
Newbie
Posts: 22
Karma: 2
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #9 on:
June 08, 2022, 05:01:28 pm »
Reload or Reboot doesn't help:
@franco: Here is the output to get it running again...
after reboot or reload:
root@XXX:~ # ps aux|grep dhc
root 11019 0.0 0.0 15460 4040 - Ss 17:04 0:00.01 /usr/local/sbin/dhcrelay -i vlan01 -i lagg1_vlan511 -i lagg1_vlan501 -i lagg1_vlan512 -i lagg0_vlan516 192.168.X.X 192.168.X.X
root 16395 0.0 0.0 12740 2204 1 S+ 17:04 0:00.00 grep dhc
To get it working again:
root@XXX:~ # kill -9 11019
root@XXX:~ # /usr/local/sbin/dhcrelay -i vlan01 -i lagg1_vlan511 -i lagg1_vlan501 -i lagg1_vlan512 -i lagg1_vlan513 -i lagg1_vlan514 -i lagg0_vlan516 192.168.X.X 192.168.X.X
Requesting: vlan01 as upstream: Y downstream: Y
Requesting: lagg1_vlan511 as upstream: Y downstream: Y
Requesting: lagg1_vlan501 as upstream: Y downstream: Y
Requesting: lagg1_vlan512 as upstream: Y downstream: Y
Requesting: lagg1_vlan513 as upstream: Y downstream: Y
Requesting: lagg1_vlan514 as upstream: Y downstream: Y
Requesting: lagg0_vlan516 as upstream: Y downstream: Y
Internet Systems Consortium DHCP Relay Agent 4.4.2-P1
Copyright 2004-2021 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/
Listening on BPF/lagg0_vlan516/d4:f5:ef:37:29:60
Sending on BPF/lagg0_vlan516/d4:f5:ef:37:29:60
Listening on BPF/lagg1_vlan514/d4:f5:ef:37:29:68
Sending on BPF/lagg1_vlan514/d4:f5:ef:37:29:68
Listening on BPF/lagg1_vlan513/d4:f5:ef:37:29:68
Sending on BPF/lagg1_vlan513/d4:f5:ef:37:29:68
Listening on BPF/lagg1_vlan512/d4:f5:ef:37:29:68
Sending on BPF/lagg1_vlan512/d4:f5:ef:37:29:68
Listening on BPF/lagg1_vlan501/d4:f5:ef:37:29:68
Sending on BPF/lagg1_vlan501/d4:f5:ef:37:29:68
Listening on BPF/lagg1_vlan511/d4:f5:ef:37:29:68
Sending on BPF/lagg1_vlan511/d4:f5:ef:37:29:68
Listening on BPF/vlan01/d4:f5:ef:37:29:60
Sending on BPF/vlan01/d4:f5:ef:37:29:60
Sending on Socket/fallback
root@XXX:~ #
You see that two networks are missing, but they are enabled in the webgui.
«
Last Edit: June 08, 2022, 05:07:26 pm by amw
»
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #10 on:
June 08, 2022, 06:41:53 pm »
If it's a about a missing -i implementation I'd first check if all selected interface have proper IP configuration while dhcrelay is starting (best as static). It could be a side effect. I can only repeat the dhcrelay code wasn't changed in 22.1.8 but the code is also trying to figure out if all is operational so that might not be the case.
Cheers,
Franco
Logged
amw
Newbie
Posts: 22
Karma: 2
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #11 on:
June 09, 2022, 06:20:51 am »
For example we have the same configuration as in vlan512... So all interfaces have an IP. Why is it not a case? It worked before and now not. Is there a way to debug this? Or open a case at the development?
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #12 on:
June 09, 2022, 12:18:17 pm »
It's likely easy to debug this on the machine in question that exhibits this behaviour, but from within the forum I can't do much other than point into the right direction.
Cheers,
Franco
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #13 on:
June 10, 2022, 10:52:27 am »
After a bit of debugging it seems that dhcp code in general reacts "strange" to bridges when it's not necessary. A patch was added as follows which should become available in 22.7:
https://github.com/opnsense/core/commit/3f98dc83c41
Cheers,
Franco
Logged
amw
Newbie
Posts: 22
Karma: 2
Re: DHCP Relay doesn't work properly since Update to 22.1.8
«
Reply #14 on:
June 11, 2022, 06:43:39 am »
Thank you!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
DHCP Relay doesn't work properly since Update to 22.1.8