Internet connection issue with ethernet and Wi-Fi extender

Hello Fedora users,
I have been having trouble with my internet connection to the web for the past couple of weeks.
I have tinkered with the network manager and nmcli (which I probably shouldn’t have done) to get an ethernet connection to Waydroid, which I don’t care for anymore.
Ever since then, I have been unable to have an internet connection to the web every time I boot up my Fedora Workstation.
The only command that I found that allow me to connect to the internet for a short period of time (about an hour or so) is this, which I don’t really understand.

sudo dhclient -v -1 enp42s0

and when I lose connection after some time…

sudo pkill dhclient

I would have to run these commands into terminal when my internet connection goes down, and it would restore my connection.

My goal is to be able to have a stable internet connection running 24/7 without having my internet connection lost.

My specs are here if it is helpful
OS: Fedora Linux 43 (Workstation Edition)
Hardware Model: Micro-Star International Co., Ltd. MS-7C56
CPU: AMD Ryzen™ 5 5600G with Radeon™ Graphics × 12
GNOME Version: 49
Windowing System: Wayland
Kernel Version: Linux 6.19.14-200.fc43.x86_64
Wi-Fi Extender: RE205

EDIT: I realized that I only needed to run two simple commands at boot or when I lose internet connection. It is shown above.

do u have cloudfare warp installed
i got same issue had cloudfare warp installed
and it wasn’t working
so i removed
and now my internet wifi and ethernet is working fine

I do not have Cloudflare warp installed. Thank you for your help though!

Restarting dhclient suggests that you are getting a DHCP lease and its not being renewed so you don’t have an IP address. Is that what you are seeing ip addr?

As you are using NetworkManager it should be managing the DHCP for you and logging if there are issues. Maybe you need to reset your connection to defaults?

How would I reset my connection to the defaults? Also here are the outputs for ip addr (and ip route show if it is necessary, it doesn’t print anything out though). The X’s are to hide my ip addresses.

[user@host]~% ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp42s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
altname enxXXXXXXXXXXXX
inet6 fdfe:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX/128 scope global dynamic noprefixroute
valid_lft 7056sec preferred_lft 3456sec
inet6 fdfe:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX/64 scope global dynamic noprefixroute
valid_lft 3562sec preferred_lft 3562sec
inet6 2607:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX/64 scope global dynamic noprefixroute
valid_lft 1762sec preferred_lft 1762sec
inet6 fe80::XXXX:XXXX:XXXX:XXXX/64 scope link noprefixroute
valid_lft forever preferred_lft forever

[user@host]~% ip route show

I’m not a NEtworkManager expert… (use systemd networkd for my none default networking).

It seems you delete the connection (by its uuid), then reboot to allow NM to readd it, but I have not tested this.

I found this out by a web search for “networkmanager reset connection to defaults”.

I believe this issue started when I started to use my TP-Link Wi-Fi extender and it is unable to assign an address to my computer using the DHCP server.
My solution was to sudo systemctl restart NetworkManager (I don’t know if this helps or not) and go to the TP-Link admin page, go to Network on the sidetab, and click “use the following IP address” under Network Settings. My DHCP server is left to auto, but I don’t know if that makes a change or not.
I then go to the Fedora network settings, clicking the gear icon on my connection, heading to IPv4, and filling in the “Addresses” box to the same one in the TP-Link admin page.

Thank you everyone that helped out!