Autostart mobile broadband with pon/pppd

Kernels & Hardware, configuring network, installing services

Autostart mobile broadband with pon/pppd

Postby Pybash » 2018-02-15 20:23


I have created a mobile broadband connection with pppd,
which works fine if I start it with
sudo pon t-mobile

Now, I want it to start automatically, on boot or when I plug in the broadband modem.

So I created a:

Code: Select all
pon t-mobile

and a:

Code: Select all
allow-hotplug ppp0
auto ppp0
iface ppp0 inet ppp
   provider t-mobile

which both fail,
how can I connect automatically?

Regards Pb
Posts: 8
Joined: 2018-02-10 12:04

Re: Autostart mobile broadband with pon/pppd

Postby debiman » 2018-02-16 06:28

i don't think you need to edit /etc/network/interfaces, if it already worked before that, no?

so, maybe the addition to rc.local is enough?

but, since debian is using systemd nowadays, you might want to create a service instead: ... unit_files

also, in both cases, you might need to use '/usr/bin/pon' (or whatever the actual location of pon is, find out with 'which pon') instead of just 'pon'.
User avatar
Posts: 3064
Joined: 2013-03-12 07:18

Re: Autostart mobile broadband with pon/pppd

Postby Bouwser » 2018-02-22 19:15

I just went through this. Does your syslog show any ppp errors? This will give you clues.

I only used interfaces and did not use rc.local.
I did not have allow-hotplug in my interfaces file.

The issue I found with my setup was that I had one of my ethernet dhcp connections set to auto. (auto enp2s0). If I did not have an ethernet cable plugged into that ethernet port the network startup would crash and it would never reach the ppp setup.

Hope this helps,
Posts: 10
Joined: 2014-09-04 14:12

Return to System configuration

Who is online

Users browsing this forum: bester69 and 5 guests