I was messing with my internet settings because it was going on and off. When I tried a terminal command suggested on google, it deleted my wired network settings - this is what I see:

Even tho my WiFi is still working fine I would definitely prefer the Ethernet cable which is not even detected in the bios.
Thanks in advance if you have any solutions.
Output of ip link show
:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp41s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
link/ether 84:5c:f3:92:31:5f brd ff:ff:ff:ff:ff:ff
The command that probably caused my issue is the one at line 96, however if its not that one is probably one of this:
92 sudo lshw -class newtwork -short && nmcli device status
93 sudo nano /etc/modprobe.d/iwlwifi.conf
94 sudo apt update
95 sudo apt install r8168-dkms
96 sudo echo "blacklist r8169" > /etc/modprobe.d/blacklist-r8169.conf
97 /etc/NetworkManager/NetworkManager.conf
98 sudo /etc/NetworkManager/NetworkManager.conf
99 sudo nano /etc/NetworkManager/NetworkManager.conf
100 sudo systemctl restart NetworkManager
101 /etc/NetworkManager/system-connections
102 sudo nano /etc/NetworkManager/system-connections
103 gksu "service network-manager start"
104 /etc/NetworkManager
105 sudo nano /etc/NetworkManager
106 nautilus /etc/NetworkManager
107 sudo nano /etc/NetworkManager
108 sudo nano /etc/NetworkManager/NetworkManager.conf
109 sudo systemctl restart NetworkManager
110 dpkg -S/etc/NetworkManager
111 dpkg -S NetworkManager
112 rm -r NetworkManager
113 y
114 sudo rm -r NetworkManager
output of lspci -nnk | grep 0200 -A3
is:
2a:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Micro-Star International Co., Ltd. [MSI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1462:7c95]
Kernel modules: r8168
30:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [1002:1638] (rev c9)
output of sudo dkms status
is:
r8168/8.049.02: added
system76/1.0.14~1643391291~22.04~78ede46, 5.19.0-76051900-generic, x86_64: installed
system76_acpi/1.0.2~1659568831~22.04~a88dcce, 5.19.0-76051900-generic, x86_64: installed (original_module exists)
system76-io/1.0.2~1655490480~22.04~0217576, 5.19.0-76051900-generic, x86_64: installed
output of sudo modprobe r8168 && sudo dmesg | grep r816
is:
modprobe: FATAL: Module r8168 not found in directory /lib/modules/5.19.0-76051900-generic
output of sudo modprobe r8169 && sudo dmesg | grep r816
is:
[12499.896230] r8169 0000:2a:00.0 eth0: RTL8168h/8111h, d8:bb:c1:6a:d8:b7, XID 541, IRQ 70
[12499.896235] r8169 0000:2a:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
[12499.897810] r8169 0000:2a:00.0 enp42s0: renamed from eth0