Using wvdial in linux to implement gprs dial-up Internet access

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.