I have a Zero W with a 4G module, to use the sim to access internet I did:
pi@raspberrypi:~ $ ip route
default via 10.111.100.1 dev wlan0 proto dhcp src 10.111.100.143 metric 302
10.64.64.64 dev ppp0 proto kernel scope link src 10.82.126.194
10.111.100.0/24 dev wlan0 proto dhcp scope link src 10.111.100.143 metric 302
169.254.0.0/16 dev wwan0 scope link src 169.254.170.232 metric 203
then:
sudo ip route del default via 10.111.100.1 dev wlan0
sudo ip route add default via 10.64.64.64 dev ppp0
and it works, but after reboot I get the original situation...
I tried to set auto ppp0 in /etc/network/interfaces
I tried to set metric in /etc/dhcpcd.conf
but none worked.how can I do that?
also I have a PPTP VPN, how can start it automatically on system boot?
I'm on Raspbian Buster
/etc/network/interfaces
together with dhcpcd? – Ingo Jul 15 '19 at 15:01/etc/nettwork/interfaces
# Please note that this file is written to be used with dhcpcd and https://raspberrypi.stackexchange.com/a/41187/79866. – Ingo Jul 15 '19 at 22:56/etc/network/interfaces
? But you wrote "I tried to set auto ppp0 in /etc/network/interfaces" and "I tried to set metric in /etc/dhcpcd.conf". – Ingo Jul 16 '19 at 09:30default
network. That's the route the kernel uses to send packets that don't match any of the current subnets. – Dougie Dec 04 '21 at 09:53