3G pppd and set up dns



being on lollipop android5, when pppd dial successfully , we got ip and dns addr, then run the following command to fix dns issus


ndc resolver flushnet ppp0

ndc resolver setnetdns ppp0  8.8.8.8 8.8.4.4


as a reference , see this :

Google Groups


 

netcfg eth0 down

ndc network destroy 100

ndc interface clearaddrs eth0



ifconfig eth0 10.99.4.11 netmask 255.255.252.0

route add default gw 10.99.5.1 dev eth0

ndc resolver setnetdns eth0  8.8.8.8 8.8.4.4

ping www.google.com (### this works well from command line but with this, browser doesn't work: ERR_NOT_REACHABLE)



Then I followed your steps as below:



ndc network create 100

ndc network interface add 100 eth0

ndc network route add 100 eth0 10.99.4.0/22 (This is taken from the output of ip route show, so I presume my gateway is 10.99.4.0)

ndc resolver setnetdns 100 localdomain 192.168.6.55 192.168.6.56 (My DNS addresses are 192,168.6.55 and 192.168.6.56)

ndc network default set 100 (Untill this command, the status is: ping works fine from command line for google, but after I enter this command, command line based ping stops and I am unable to get browser working as was the previous case).


being on lollipop android5, when pppd dial successfully , we got ip and dns addr, then run the following command to fix dns issus


ndc resolver flushnet ppp0

ndc resolver setnetdns ppp0  8.8.8.8 8.8.4.4


as a reference , see this :

Google Groups


 

netcfg eth0 down

ndc network destroy 100

ndc interface clearaddrs eth0



ifconfig eth0 10.99.4.11 netmask 255.255.252.0

route add default gw 10.99.5.1 dev eth0

ndc resolver setnetdns eth0  8.8.8.8 8.8.4.4

ping www.google.com (### this works well from command line but with this, browser doesn't work: ERR_NOT_REACHABLE)



Then I followed your steps as below:



ndc network create 100

ndc network interface add 100 eth0

ndc network route add 100 eth0 10.99.4.0/22 (This is taken from the output of ip route show, so I presume my gateway is 10.99.4.0)

ndc resolver setnetdns 100 localdomain 192.168.6.55 192.168.6.56 (My DNS addresses are 192,168.6.55 and 192.168.6.56)

ndc network default set 100 (Untill this command, the status is: ping works fine from command line for google, but after I enter this command, command line based ping stops and I am unable to get browser working as was the previous case).


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值