On Wed, May 7, 2025 at 2:30 AM Thomas <exnih...@fastmail.org> wrote:
> Hello everyone, > > For some reasons dhcpleased has stopped functioning yesterday, without any > changes on my setup. The error message is: "wrong > DHO_DHCP_CLIENT_IDENTIFIER", more details below. > > May 6 05:48:06 hostname dhcpleased[87745]: deleting $IP_OBSD from bse0 > (lease from 0.0.0.0) > May 6 05:48:26 hostname dhcpleased[87745]: adding $IP_OBSD to bse0 (lease > from $IP_ROUTER) > May 6 05:48:26 hostname dhcpleased[87745]: adding nameservers $IP_ROUTER > (lease from $IP_ROUTER on bse0) > May 6 17:48:26 hostname dhcpleased[87745]: wrong > DHO_DHCP_CLIENT_IDENTIFIER > [...] > May 7 05:48:46 hostname dhcpleased[87745]: deleting nameservers > $IP_ROUTER (lease from $IP_ROUTER on bse0) > May 7 05:48:46 hostname dhcpleased[87745]: deleting $IP_OBSD from bse0 > (lease from $IP_ROUTER) > May 7 05:48:46 hostname dhcpleased[87745]: wrong > DHO_DHCP_CLIENT_IDENTIFIER > > From the moment above, without a lease renewed, internet down. I've tried > to troubleshoot: > - rebooted my host, raspberry pi 4B with Opensbsd 7.7 > - rebooted my ISP modem > - deactivating pf > - changed the ethernet cable > - set the IP address myself (this works, so I'd exclude hardware issues?) > > dhcpleased -vd gives: > iface_timeout[1]: Init > state_transition[bse0] Init -> Init, timo: 2 > DHCPDISCOVER on bse0 > parse_dhcp, from: MAC_ROUTER, to: MAC_OBSD > parse_dhcp: $IP_ROUTER:67 -> $IP_OBSD:68 > dhcp_hdr op: Boot Reply (2) > dhcp_hdr htype: Ethernet (1) > dhcp_hdr hlen: 6 > dhcp_hdr hops: 0 > dhcp_hdr xid: 0x8b4a39d3 > dhcp_hdr secs: 0 > dhcp_hdr flags: 0x0 > dhcp_hdr ciaddr: 0.0.0.0 > dhcp_hdr yiaddr: $IP_OBSD > dhcp_hdr siaddr: $IP_ROUTER > dhcp_hdr giaddr: 0.0.0.0 > dhcp_hdr chaddr: MAC_OBSD (00000000000000000000) > DHO_DHCP_MESSAGE_TYPE: DHCPOFFER > DHO_DHCP_SERVER_IDENTIFIER: $IP_ROUTER > DHO_DHCP_LEASE_TIME 86400s > DHO_DHCP_RENEWAL_TIME 43200s > DHO_DHCP_REBINDING_TIME 75600s > wrong DHO_DHCP_CLIENT_IDENTIFIER > > /var/logmessages: > May 7 09:56:21 hostname /bsd: bse0 at simplebus2: address $MAC_OBSD > May 7 09:56:21 hostname /bsd: brgphy0 at bse0 phy 1: BCM54210E, rev. 2 > > Before I try to reset modem and reinstall OBSD, any other pointer as to > what would prevent dhcpleased from acquiring the lease? Could it be due to > the uprade? I've had this setup working well for the last 12+ months > without any changes. Well ISP modem changed but that was well over a month > ago. > the dhcp client identifier is sent by dhcpleased, and seems to expect the server to send it back. the message indicates it didn't match. perhaps if you run "tcpdump -s 1024 -n -tt -vv -e -i bse0 udp port 68" or so, you can look at the "CID" field in the DHCP request and response frames and see what the server sent you back. > > Many thanks in advance, > > Thomas > >