I am having a two connection. One is local area Ethernet connection which connects to internet. Second connection is a GSM modem connected to my modem.
What I am looking for is,
- When eth0(local network) is down, start automatically ppp connection
- When eth0 is up, turn off automatically ppp connection.
So in a way I am looking for continous internet connect and priority is through eth0(local area network)
I believe this can be done by editing
/etc/network/interfaces file. But I don't know exactly what to do.
I can configure my modem based ppp connection using pon/poff command.