Pages

Wednesday 15 October 2014

Wifi and LAN at the same time - force using wifi to access internet

In order to play music from my NAS connected to router I must be connected to the same network. But I want to use wifi to browse internet on faster connection from different network. By default with wifi connected and lan cable simultaneously my elementary os was using lan network for all trafic.

Below command switched it to wifi:

sudo ip route replace default via 192.168.1.1 dev wlan0 proto static

IP 192.168.1.1 is the gateway from wifi network.

No comments:

Post a Comment