The first part:
Http://www.cnblogs.com/topeet/p/6509248.html
Part II:
5.ping Non-access domain name is generally not set to cause DNS. There is a file resolv.conf under etc . This file is used to put DNS . This is the domain name is not set to. However , it is mandatory to copy this file to 192.168.1.1 in Eth0 's run script . This results in even if the correct DNS is set up in the file here , it will be found that the file is already 192.168.1.1 after booting . This is due to the eth0, which is powered on from the boot.
6. So we're going to create a new file under etc resolv.conf_back:vim resolv.conf_back Enter DNS:
NameServer 202.99.160.68
NameServer 221.130.33.52
NameServer 221.130.33.60
NameServer 192.168.1.1
7. create a new script file under etc ppp0:vim ppp0 input:
#!/bin/sh
Ifconfig eth0 Down
Cp/etc/resolv.conf_back/etc/resolv.conf
/ETC/PPP/PPPD Call wcdma&
The first step here is to turn off the eth0, and the second step is to overwrite our DNS files on resolv.conf and run the third step. After booting to etc under the input ppp0 can.
This is all done.
Xun 4418 Development Board QT Transplant Mobile 4G Module Part II