我尝试配置 AnyDATA ADU890-WH 调制解调器在 Linux 中工作,但没有成功。我是捷克运营商 O2 的客户,使用 Ubuntu 14.04。
我曾经成功地使用网络中心、移动宽带选项卡进行连接 - 但从那时起我就没有成功。
这是我的wvdial.conf
:
[Dialer Defaults]
Init2 = ATQ0 V1 E1 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = *99#
Stupid Mode = 1
ISDN = 0
Username = a
Init1 = ATZ
Password = a
Modem = /dev/ttyUSB0
Dial Command = ATDT
Baud = 9600
[Dialer CDMA]
Auto DNS = 0
Init1 = ATQ
Init2 = ATZ
Stupid Mode = 1
Phone = #777
Idle Seconds = 0
Modem = /dev/ttyUSB0
Username = [email protected]
Dial Command = ATDT
Password = xxxxxx
Baud = 1500000
[Dialer three]
Init2 = ATZ
Init3 = ATQ0 V1 &D2 &C1 S0=0 +IFC=2,2
Init5 = AT+CGDCONT=1,"IP","internet"
ISDN = 0
Modem = /dev/ttyUSB0
Modem Type = Analog Modem
这是/var/log/syslog
文件的重要部分:
Jul 23 20:25:07 wigos-hp-lx pppd[5524]: pppd 2.4.5 started by root, uid 0
Jul 23 20:25:07 wigos-hp-lx pppd[5524]: Using interface ppp0
Jul 23 20:25:07 wigos-hp-lx pppd[5524]: Connect: ppp0 <--> /dev/ttyUSB0
Jul 23 20:25:07 wigos-hp-lx NetworkManager[740]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Jul 23 20:25:07 wigos-hp-lx NetworkManager[740]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Jul 23 20:25:07 wigos-hp-lx NetworkManager[740]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
Jul 23 20:25:07 wigos-hp-lx pppd[5524]: MPPE required, but MS-CHAP[v2] nor EAP-TLS auth are performed.
Jul 23 20:25:07 wigos-hp-lx pppd[5524]: Connection terminated.
Jul 23 20:25:07 wigos-hp-lx NetworkManager[740]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Jul 23 20:25:07 wigos-hp-lx pppd[5524]: Exit.
我还找到了一些如何设置连接的指南wvdial
,但这些指南依赖于通过启动连接pon <connection-name>
,但是当使用此命令时,我没有得到任何输出,也没有任何反应。
调制解调器也支持CDMA网络,但使用时的错误wvdial
是相同的。
答案1
通过一些试验和错误,我在我的中找到了以下部分/etc/ppp/options
:
# BSD licensed ppp-2.4.2 upstream with MPPE only, kernel module ppp_mppe.o
# {{{
refuse-pap
refuse-chap
refuse-mschap
# Require the peer to authenticate itself using MS-CHAPv2 [Microsoft
# Challenge Handshake Authentication Protocol, Version 2] authentication.
require-mschap-v2
# Require MPPE 128-bit encryption
# (note that MPPE requires the use of MSCHAP-V2 during authentication)
require-mppe-128
# }}}
注释掉所有这些refuse-*
和require-*
选项使身份验证(和连接)成功。