This question already has an answer here:
I would like to set-up my laptop's networking to use exclusively LAN (Ethernet) connection when both
WiFi are available? (In my case wired and wireless connections come from the same router.)
I do not want to simply disable WiFi (though it's just a button push) but to have wired connection set as a preference. Is there an easy way to do so?