Re: Problems with WiFi networks - HP 255 G7, FreeBSD 14.2

From: Dave Cottlehuber <dch_at_skunkwerks.at>
Date: Wed, 02 Apr 2025 08:29:49 UTC
On Tue, 1 Apr 2025, at 17:33, Mauricio wrote:
> Hey! : )
>
> I have decided to install FreeBSD 14.2 in my laptop (HP 255 G7).
> This model use a WiFi card detected as rtw880 in the system.

Welcome Mauricio!

> I did the same for this 14.2 installation. And my WiFi card is 
> recognized when looking at the ifconfig output.

A general suggestion is to provide the relevant info:

- the section of dmesg

- rc.conf if its not obvious what you'd have

- any output like ifconfig wlan0

> Anyways, when i use "ping 1.1.1.1" to check the status of my 
> connection, last lines indicate "No route to host"
> so i guess system didnt make the connection.

other that `ifconfig wlan0` what's in `netstat -r4n` ?

This will show if you got an IP at all, and also if a default
route has been created.

There should be a file in /var/db/dhclient.leases.* 

One possibility is that the DHCP client either didn't run, or
did not get an answer in time.

Try deleting /var/db/dhclient.leases.* and running

`service dhclient restart wlan0`

or in the foreground:

# service dhclient stop wlan0
$ dhclient -d wlan0

This should produce output like this:

DHCPREQUEST on igc0 to 255.255.255.255 port 67
DHCPACK from 172.16.1.1
bound to 172.16.1.4 -- renewal in 150000 seconds.

and it should also run the hook script which sets the
default route.

A+
Dave