I sometimes plug my laptop into a network cable at the office, and would like the OS to use the wired connection since it is much faster (than the already active wireless). But the OS seems to stay with the wireless connection (I assume because it was enabled first). Is there a way to force the OS to switch to the wired (and down the wireless interface) automatically?
I'm running CentOS 7. (I found some answers on this topic but they all related to Windows). Is there a script/hook somewhere that is activated upon appearance of a wired network connection in Linux?