Ethernet cable is limited to 100 meters. You could put a switch in at half way if you have power. I assume there is a practical limit to how many times you could extend ethernet with switches but it is a lot.
Your only other real option is to use fiber and media converters or small switches with optical ports.