How to repin Motor driver and ethernet shield to work together?

Okay solved: I used my raspberry PI as an ethernet-to-serial router. no need for the ethernet shield anymore.