Sorry, looks like
dhcpleasectl has changed a lot between 6.9 and 7.2 and those commands just don't exist in the new version anymore. Please try, and show the output of:
rcctl stop dhcpleased
/sbin/dhcpleased -d -v -v
The last command will stay in the foreground, so if you want to do
ifconfig re0 etc, you'll have to open another
rhtoras i wonder why all this hassle in a simple installation. What could have gone wrong?
Well, this has to be some local issue because probably thousands of people are using OpenBSD + DHCP everyday and it works for them all--incl. me. Some things to check:
Restrictive local firewall rules. Temporarily set
/etc/rc.conf.local and reboot. Check if an IP address is assigned.
Firewall rules on the gateway/router. Check these too.
Any Accept-Only list on the gateway/router. You can setup a DHCP server on a router to only serve certain ethernet addresses (typically for wireless nodes). Check such a list if present.
Reject-Addresses list on the gateway/router. If your ethernet address is in some sort of a reject-addresses list, then you'll never get an IP address. Some routers have both Accept and Reject lists.
Intermittently faulty cable (unlikely because your
ifconfig re0 says
active, so it was up during the command, at least.)