1. Check/etc/init. d/pppd. "Enable automatic online registration in red color (if there is no statement in red color), add 』
#! /Bin/sh
#
Daemon =/usr/sbin/pppd
Pidfile =/var/run/pp1_pid
# Define the interface used for the connection
# Daemon_opts = ppp0
Daemon_opts = call WCDMA
Case "$ {1}" in
Start)
If [-e $ pidfile]; then
Echo "pppd already running"
Exit 1
Fi
Echo "modprobe kernel modules ..."
Modprobe option. Ko
Echo "Starting pppd ..."
Pppd call WCDMA &
;;
Stop)
If [! -E $ pidfile]; then
Echo "pppd not running"
Exit 1
Fi
Echo "Stopping pppd ..."
Kill-s sigterm 'cat $ pidfile' | echo "failed"
;;
Restart)
If [! -E $ pidfile]; then
Echo "pppd not running"
Exit 1
Fi
Echo "Restarting pppd ..."
Kill-s sigterm 'cat $ pidfile' | echo "failed"
Sleep 1
$ Daemon $ daemon_opts | echo "failed"
;;
Status)
If [-e $ pidfile]; then
Echo "pppd running"
Else
Echo "pppd not running"
Fi
;;
Hangup)
If [! -E $ pidfile]; then
Echo "pppd not running"
Exit 1
Fi
Echo "pppd hanging up"
Kill-s sighup 'cat $ pidfile' | echo "failed"
;;
*)
Echo "Usage: $ {0} {START | stop | restart | status | hangup }"
Exit 1
;;
Esac
2. If you do not want the 3G module to automatically access the Internet after power-on-hand registration, comment out the red statements, and enter the following command in the console terminal (do not forget to press enter to wrap the line ):
Pppd call WCDMA &
3. We recommend that you manually dial the phone number first, and then enable automatic registration upon power-on:
Primary dsn xxx. XXX
Secondary dsn xxx. XXX
VI/etc/resolv. conf, add content (primary dsn xxx. XXX, secondary dsn xxx. XXX ):
Nameserver XXX. XXX
Nameserver XXX. XXX
4. Use ifconfig-a to check whether ppp0 network devices exist;
5
Finally, test whether the ppp0 network device can be used.
Ping-I ppp0 www.baidu.com
If the device can be pinged, the driver is successfully transplanted to the 3G card.
Debugging of Huawei/ZTE 3G Module