Error: "no PHY for ifname eth0"

Hi, I have a problem with connecting my router via Ethernet cable to the network. I need to use authentication and I am trying these 2 guides:

  1. https://gist.github.com/LupusArgentum/0a03106c0484480376b5878ca4f30761
  2. https://freedium.cfd/https://medium.com/@herman.daniel/run-openwrt-on-your-router-and-connect-to-eduroam-via-ethernet-12f6e7e40344

When I run the command "wpa_supplicant -D wired -i eth0 -c /etc/config/wpa.conf" or "wpa_supplicant -D wired -i wan -c /etc/config/wpa.conf" it always gives me the message "no PHY for ifname wan". I haven't found any solution to this problem on the internet so I'm trying it here. I don't know where exactly the problem is, if the router doesn't know the port or if it is named differently. My router is TP-Link Archer AX23 v1.2.
Thanks for the advice.

possibly replace eth0 with wan?

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network