I was hoping I could use some expert help on my ppp interfaces.
My setup is as follows. I have a Rpi 3 Model B that has two ppp connections (one 2G sim900 module and one 3G huawei dongle).
My system is segregated in such a way that some specific traffic needs to go through one modem and others on the other (data cap limitations).
I have setup routing tables using iproute2 and can confidently use the appropriate commands to set up the routing as required (in more detail, ppp1 is required to handle a set of source addresses while ppp0 services the other).
My specific problem is with the interface names. On bootup, my sim900 module sets up a ppp0 interface without issue (which is mandatory). However, when I connect my 3G huawei dongle using the sakis3g script, it disconnects my current ppp0 interface and takes it over invalidating my ip routes. (gsm module comes up later but connected to ppp1 now)
It is mandatory that my gsm module connect on ppp0 and 3g dongle connect on ppp1, even if one or the other goes down. Can someone please help me put this right?
auto lo iface lo inet loopback iface eth0 inet manual allow-hotplug wlan0 here auto ppp0 iface ppp0 inet ppp provider sim900