I am running an Ubuntu laptop which is connected to WiFi and is capable of accessing internet. There is my old desktop machine which do not have the WiFi card. So I connected my laptop to WiFi and configured a proxy server on this machine and connected the desktop and laptop via LAN wire.
Now desktop is set to use the proxy server on the laptop machine. Problem is that laptop considers the eth0 interface as default interface and wlan interface as secondary interface. So when I connect the LAN to laptop, it cannot access internet using the wlan interface but it tries to connect over the eth0 interface( I think). how to assign the wlan2 as my primary interface. I am not asking how to share connection but how to change default connection