On Tue, Oct 19, 2021 at 03:26:20PM +1000, Ryan Vitelli wrote: > Hello, > > After upgrading to 7.0 I noticed DHCP leases from my ISP were > not being renewed. > > After researching I ended up modifying my /etc/hostname.em0 file > by replacing 'dhcp' with '!dhclient \$if' and this "appears" > to resolve the issue. > > The FAQ and the dhclient/hostname.if manpages infer that this > shouldn't be necessary and a simple 'dhcp' should be sufficient. > Obviously I'm missing something because our application is very basic. > > With the above "fix" in place, the other thing I've noticed is that > on bootup I now get this > em0: no link....got link > em0: no lease.....got lease > em0: my.wan.ip.addr lease accepted from nnn.nnn.nnn.nnn (u:v:w:x:y:z) > This does not appear with hostname.em0 containing 'dhcp', however > it did previously when on 6.9 > > Any help on this would be great. Thanks. > > Notes: > No related messages in daemon or messages logs > OS: openbsd 7.0 /amd64 > hardware is PC Engines APU2e4 with BIOS version v4.13.0.2 > em0 at pci1 dev 0 function 0 "Intel I210" rev 0x03: msi, address a:b:c:d:e:f >
dhcpleased(8) is now preferred, instead of dhclient: http://www.openbsd.org/faq/faq6.html#DHCP Changing "dhcp" to "inet autoconf" should suffice. (does this warrant an entry on faq/upgrade70.html ?) You might want to also take a look at some of the new(-ish) man pages for dhcpleased, dhcpleased.conf and maybe resolvd. Cheers Zé --

