Article title: using wvdial in linux to implement gprs dial-up Internet access. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. install wvdial
Sudo apt-get install wvdial
2. write the configuration information of wvdial in/etc/wvdial. conf: femacs/etc/wvdial. conf.
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0
Init3 = AT + CGDCONT = 1, "IP", "CMNET" # important! Otherwise, DNS cannot be used.
Modem Type = Analog Modem
Baud = 115200 # set based on your gprs modem
New PPPD = yes
Modem =/dev/ttyS0 # Your connected serial port
ISDN = 0
Phone = * 99 *** 1 ### China Mobile's dial-up number
Password = *** # It is useless.
Username = itlanger
In this step, you can run wvdial first, then the modem cannot be found, and then modify/etc/wvdial. conf to add
Baud = 115200 # set based on your gprs modem
Modem =/dev/ttyS0 # Your connected serial port
Run wvdial again, and then manually add the content to/etc/wvdial. conf:
Init3 = AT + CGDCONT = 1, "IP", "CMNET"
Phone = * 99 *** 1 ### China Mobile's dial-up number
Password = *** # It is useless.
Username = itlanger
Here Init3 = AT + CGDCONT = 1, "IP", "CMNET" must be added, otherwise wvdial will appear:
Warning, can't find address for 'www .suse.de'
--> Warning, address lookup does not work
--> Nameserver (DNS) failure, the connection may not work.
As a result, only IP addresses can be pinged and domain names cannot be pinged.
3. configure the ppp parameter: femacs/etc/ppp/options
Noipdefault
Ipcp-accept-local
Ipcp-accept-remote
Defaultroute
Noauth
Crtscts
Debug
[1] [2] Next page