安装 wvdial 后仍无法连接到互联网

安装 wvdial 后仍无法连接到互联网

启动后wvdial,我收到以下几行

$sudo wvidal

 WvDial: Internet dialer version 1.61
    Initializing modem.
    Sending: ATZ
    OK
    Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    OK
    Modem initialized.
    Sending: ATDT#777
    Waiting for carrier.
    ATDT#777
    CONNECT 3100000
    Carrier detected.  Waiting for prompt.
    ~[7f]}#@!}!}!} }8}"}&} } } } }#}$@#}%}&[7f]},H8}'}"}(}"F_~
    PPP negotiation detected.
    Starting pppd at Wed Nov 13 07:16:38 2013
    Pid of pppd: 12638
    Using interface ppp0
    pppd: `�9[08]X�9[08]
    pppd: `�9[08]X�9[08]
    pppd: `�9[08]X�9[08]
    pppd: `�9[08]X�9[08]
    local  IP address 115.242.214.172
    pppd: `�9[08]X�9[08]
    remote IP address 220.224.141.145
    pppd: `�9[08]X�9[08]
    primary   DNS address 220.226.6.104
    pppd: `�9[08]X�9[08]
    secondary DNS address 220.226.100.40
    pppd: `�9[08]X�9[08]

这是我的wvdial.conf文件;

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Phone = #777
Password = 9382741646
Username = 9382741646

配置文件中是否有错误?

我在终端运行后应该做什么来wvdial让互联网正常工作吗?

答案1

找到了答案并想与大家分享。

wvdial需要安装其他几个软件包,这些软件包可以从互联网上获取。由于没有调制解调器我就无法连接到互联网,所以我手动下载了这些必需的软件包。

从这些链接下载包文件(如果您使用的是 64 位,请选择 amd64,否则选择 i386):

将它们保存在您的主文件夹中。然后使用此命令安装它们

sudo dpkg -i *.deb

然后/etc/wvdial.conf使用sudo -i gedit /etc/wvdial.conf以下配置进行编辑。

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
CBaud = 460800
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Phone = #777
Stupid Mode = 1
Password = password-provided-by-your-isp
Username = username-provided-by-your-isp

Modem = /dev/ttyUSB0值可能/dev/ttyUSB2取决于您的设备所连接的端口。

相关内容