change priority of network adapters in linux code example
Example: how to change priority in network interface ubuntu
sudo ifmetric wlan0 50
# ifmetric <network interface> <desired metric>
# the interface with the lowest metric is used for internet connection.