Trouble with pppd connection

Hi,

I’m trying to use a quectel EC21 LTE module to access the internet using a SIM card. Using the pppd command I get to the point where i have a connection and I can access the internet, but in a limited way. For example, I can ping google using its IP ping 216.239.36.117 and it works fine, but if I try to ping it using ping google.com it says it’s a bad address and i can’t access it.

I’ve searched info about this and I’ve found that adding nameserver 8.8.8.8 on the file /etc/resolv.conf solves the problem, but it seems to me that a network manager should do that instead of me manually changing it after every boot.

Also, how can I make it so that pppd automatically starts a connection with the SIM card on boot?

Thanks in advance

HI @AlexPG

Thanks for writing to the Community!

I’ve searched info about this and I’ve found that adding nameserver 8.8.8.8 on the file /etc/resolv.conf solves the problem, but it seems to me that a network manager should do that instead of me manually changing it after every boot

Which connection manager are you using? Connman or network manager? Please check also this page for further information.

Also, how can I make it so that pppd automatically starts a connection with the SIM card on boot?

You may create a script which is started on boot of the module as explained here.

Best regards,
Jaski

Hey @jaski.tx

Thanks for answering!

Which connection manager are you using? Connman or network manager?

I have connman installed, but I’m not using it for this connection. If I type connmanctl services I see nothing, how can I do to configure a ppp connection such as this using connman?

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:10.165.112.157  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:700 (700.0 B)  TX bytes:680 (680.0 B)

You may create a script which is started on boot of the module as explained here.

Thanks I did something similar yesterday which more or less works.

Thanks in advance,
Alex

Hi Alex,

Could you have a look here?

Best regards,
Jaski

Hey Jaski,

thanks for the tip, I managed to make it run and created a service to enable it automatically.
The problem with the IPs was that I missed a file from quectel, once I added it it worked fine.

best regards,
Alex

Perfect that you found a solution. Thanks for the feedback.

Best regards,
Jaski