alternative for ethernet shield 2

Good morning
I have a lot of project I realized with arduino uno (or arduino mega) + ethernet shield 2, but now ethernet shield 2 is non available on shop, so I'm looking for an alternative of ethernet shield 2 which permits me to re-use the same code without modification. Does an alternative for ethernet shield 2 exist?
Thank you
Alessio

all shields with W5500 are compatible with Ethernet2.