Network unreachable although ppp0 (should) be up and running

8 views
Skip to first unread message

Riccardo Bruè

unread,
Oct 19, 2020, 9:45:58 AM10/19/20
to rowboat
Hi, I need to use a ppp0 interface using a 4/5G module. I've used this ip-up script and I can see my ppp0 interfasce which is up, but when I ping something (such as www.google.com) is prompts "unknown host www.google.it", what am I missing?

IP-UP script:
#!/system/bin/sh
/system/bin/setprop "net.interfaces.defaultroute" "gprs"
NAME=${LINKNAME:-"$1"}
/system/bin/setprop "net.$NAME.dns1" "$DNS1"
/system/bin/setprop "net.$NAME.dns2" "$DNS2" 
/system/bin/setprop "net.$NAME.local-ip" "$IPLOCAL" 
/system/bin/setprop "net.$NAME.remote-ip" "$IPREMOTE" 

IFCONFIG PPP0 result:
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:xx.xx.xx.xx  P-t-P:yy.yy.yy.yy  Mask:255.255.255.255 
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:3 
          RX bytes:52 TX bytes:58 

Of course I have a valid xx.xx.xx.xx and yy.yy.yy.yy IP addresses.
Reply all
Reply to author
Forward
0 new messages