Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Autostart mobile broadband with pon/pppd

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Pybash
Posts: 8
Joined: 2018-02-10 12:04

Autostart mobile broadband with pon/pppd

#1 Post by Pybash »

Hello,

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:

/etc/rc.local

Code: Select all

pon t-mobile
and a:

/etc/network/interfaces

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

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Autostart mobile broadband with pon/pppd

#2 Post by debiman »

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:
https://wiki.archlinux.org/index.php/Sy ... 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'.

Bouwser
Posts: 13
Joined: 2014-09-04 14:12

Re: Autostart mobile broadband with pon/pppd

#3 Post by Bouwser »

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,
Brent

Post Reply