I just downloaded the following updated driver from the Realtek Website and now it is all working.
2.5G Ethernet LINUX driver r8125 Realtek Website for kernel up to 6.12 9.015.00 2025/02/27 110 KB
I ran the install script autorun.sh and then the ethernet connection connected automatically.