How to configure ethernet interface and prioritize it over wlan

I am running TW on my Desktop. Previously, (https://forums.opensuse.org/showthread.php/559392-Yast-cannot-detect-the-onboard-Wifi-adapter-of-MSI-Tomahawk-X570), my ethernet was working and my wifi was notworking.
I purchased a compatible wifi card and not wifi is working flawlessly (Thank you!).

My problem is now I cannot configure the ethernet connection (it was auto configuring previously) and I will like to prioritize the ethernet over wifi.


> ip a
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 
       valid_lft forever preferred_lft forever
2: enp38s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether d8:bb:c1:1b:2c:e2 brd ff:ff:ff:ff:ff:ff
3: wlp37s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether c8:e2:65:0c:97:48 brd ff:ff:ff:ff:ff:ff
    inet 10.184.239.157/22 brd 10.184.239.255 scope global dynamic noprefixroute wlp37s0
       valid_lft 3378sec preferred_lft 3378sec
    inet6 fe80::98fb:bd66:21d5:15d/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
4: wlo1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 12:f4:61:10:5a:e6 brd ff:ff:ff:ff:ff:ff permaddr b4:0e:de:7b:5e:94
    altname wlp40s0


and here is my hardware information


 *-network
       description: Wireless interface
       product: Wi-Fi 6 AX200
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:25:00.0
       logical name: wlp37s0
       version: 1a
       serial: c8:e2:65:0c:97:48
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.14.0-1-default firmware=63.c04f3485.0 cc-a0-63.ucode ip=10.184.239.157 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:110 memory:fc800000-fc803fff
  *-network
       description: Ethernet interface
       product: RTL8125 2.5GbE Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:26:00.0
       logical name: enp38s0
       version: 04
       serial: d8:bb:c1:1b:2c:e2
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.14.0-1-default firmware=rtl8125b-2_0.0.2 07/13/20 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:24 ioport:f000(size=256) memory:fc700000-fc70ffff memory:fc710000-fc713fff
  *-network
       description: Wireless interface
       product: Wi-Fi 6 AX200
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:28:00.0
       logical name: wlo1
       version: 1a
       serial: 12:f4:61:10:5a:e6
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.14.0-1-default firmware=63.c04f3485.0 cc-a0-63.ucode latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:40 memory:fc600000-fc603fff


I tried

sudo ip set dev enp38s0

and rebooted
but it didn’t get the job done.

I also tried following the tutorial at https://doc.opensuse.org/documentation/leap/reference/html/book-reference/cha-network.html#sec-network-yast-change-host
but due to lack of competency I couldn’t make it work.
Since, my hardware is the same (as far as ethernet goes) I am probably doing something dumb and any help is greatly appreciated.
I think I am probably configuring my Hostname, subnet, gateway, DNS incorrectly?

Thank you in advance for your time!!!

I assume that you’re using wicked (rather than NetworkManager or systemd-networkd) to manage your network connectivity? Since, you mentioned using YaST in the previous thread, have you configured the ethernet interface there yet?

https://doc.opensuse.org/documentation/leap/reference/html/book-reference/cha-network.html#sec-network-yast-netcard

Hi,
Thank you for your reply.

I am pretty sure I am using NetworkManager and not Wicked. See the screen shots below, when I go into Yast

See Screenshots here (https://imgur.com/a/I8kyKBd)
https://imgur.com/a/I8kyKBd

Here is how my NetworkManager applet looks like (https://imgur.com/a/nCbbxwh)
https://imgur.com/a/nCbbxwh

I need to configure my ethernate interface but I am not sure how to go about it. So, I am looking for some help in that direction.

There is no link on this interface. You can tell your network management program (you do not say what you are using) to ignore link and configure IP address anyway, but it won’t be usable anyway.

Is it connected at all?

Then use NetworkManager to configure the interface.

I can’t view what you’ve attempted to share. Use https://paste.opensuse.org/ for this in future.

For NetworkManager configuration…
https://doc.opensuse.org/documentation/leap/reference/html/book-reference/cha-nm.html

Thank you very much. I rechecked and the wired connection at one end was loose. I changed it and now it is acting perfectly.
Thank you very very much for figuring it out.