1 Script Creation
Root access to Ubuntu, under the /etc/ppp/ set up two directories, if there is no need to build. Simply put the script in or create a new file.
Cd/etc/ppp
mkdir Peers Chat
CD peers
Touch wcdma-mf210
Vim wcdma-mf210
Fill in the script in wcdma-mf210 as follows:
#******************************************************************#
#/etc/ppp/peers/wcdma-mf210 #
# This is a PPP script for use chinaunicom ' s WCDMA Data Service #
# #
# Hangzhou Visure Electronics Technology Co., LTD #
# 606, Zijingang business Building, #656 Gudun Road, Hangzhou #
# tel:0571-81021669 #
# fax:0571-81021670 #
# more information:manuals, hardware and software on: #
# www.visure.com.cn #
#******************************************************************#
/dev/ttyusb3
115200
Crtscts
Connect '/usr/sbin/chat-v-f/etc/ppp/chat/wcdma-connect-chat '
Debug
Nodetach
Ipcp-accept-local
Ipcp-accept-remote
Defaultroute
Usepeerdns
# End of wcdma-mf210
CD Chat
Touch Wcdma-connect-chat
Vim Wcdma-connect-chat
Fill in the wcdma-connect-chat as follows:
#******************************************************************#
#/etc/ppp/chat/wcdma-connect-chat #
# This was the chat script for Unicom #
# #
# Hangzhou Visure Electronics Technology Co., LTD #
# 606, Zijingang business Building, #656 Gudun Road, Hangzhou #
# tel:0571-81021669 #
# fax:0571-81021670 #
# more information:manuals, hardware and software on: #
# www.visure.com.cn #
# *****************************************************************#
ABORT "NO CARRIER"
ABORT "NO Dialtone"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
TIMEOUT 120
"At
OK "at+cgdcont=1,\" ip\ ", \" 3gnet\ ""
OK atd*99#
CONNECT
# End of Wcdma-connect-chat
In terminal input pppd call wcdma-mf210 Press Enter (enter).
Test dial success or not, in the terminal ( need to open another terminal!!!) Enter ifconfigto see if there is a ppp0 connection, as shown in3-3 :
2 after a successful dial-up, set the domain name server
Cd/etc
Vim resolv.conf
The /etc/resolv.conf file is the place where the name server address is stored, and its contents look like this:
-------------------------------------------
Domain Your.isp.domain.name
NameServer 202.96.171.92
NameServer 202.96.171.133
-------------------------------------------
All you need to do is fill in this file with your ISP 's domain name server address. DNS is automatic after dialing
Assigned, from the last few lines of the PPP negotiation process in Figure 3-2 can get DNS, depending on where it is located, which I set as:
nameserver 211.136.17.108
NameServer 211.136.20.204
Ping Command test, this command needs to set up DNS. Please make sure DNSis set up correctly in /etc/resolv.conf .
Ubuntu--mf210v dialing process