talha909
Posts: 13
Joined: Thu Mar 10, 2016 2:39 pm

Wifi AS A DEFAULT ROUTE

Wed Oct 26, 2016 1:56 pm

I am using internet through dynamic wifi internet. And I access my local network with the lan card. I am facing problem with internet. When ever i turn on raspberry pi i have delete the gw gate and give new wifi gateway. Ho can i automate this process

PI 3
Lan Address has static IP
Wifi Has dynamic IP
.

Code: Select all

1. netstat -rn 
2. Delete the current default route
3. sudo route del default
4. Add a new default route for the other network
5. sudo route add default gw 192.168.3.1

Return to “Advanced users”