![UMTS 连接失败,并显示“LCP 由对等方终止”](https://linux22.com/image/1417951/UMTS%20%E8%BF%9E%E6%8E%A5%E5%A4%B1%E8%B4%A5%EF%BC%8C%E5%B9%B6%E6%98%BE%E7%A4%BA%E2%80%9CLCP%20%E7%94%B1%E5%AF%B9%E7%AD%89%E6%96%B9%E7%BB%88%E6%AD%A2%E2%80%9D.png)
我使用联想 Thinkpad T440s 中的 Ericsson N5321 gw 卡连接到 T-Mobile(由 debitel 转售),操作如下/etc/wvdial.conf
(在 debian sid x64 上):
[Dialer Defaults]
Modem = /dev/ttyACM2
Baud = 460800
Phone = *99#
Username = t-mobile
Password = tm
Stupid Mode = 1
Modem Type = USB Modem
New PPD = yes
Dial Command = ATDT
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet.t-mobile"
但是,当我尝试连接时,ppd 失败并显示代码 16 和日志:
Aug 3 09:47:01 t4 pppd[3592]: CHAP authentication succeeded:
Congratulations!
Aug 3 09:47:01 t4 pppd[3592]: CHAP authentication succeeded
Aug 3 09:47:01 t4 pppd[3592]: LCP terminated by peer
Aug 3 09:47:01 t4 pppd[3592]: Modem hangup
我怎样才能使连接正常工作?
答案1
要实际使用调制解调器进行互联网连接,您需要使用命令激活它AT+CFUN
。修改wvdial.conf
以发送AT+CFUN=1
:
[Dialer Defaults]
Modem = /dev/ttyACM2
Baud = 460800
ISDN = 0
Phone = *99#
Username = t-mobile
Password = tm
Stupid Mode = 1
Modem Type = USB Modem
New PPD = yes
Dial Command = ATDT
Init1 = ATZ
Init2 = AT+CFUN=1
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,"IP","internet.t-mobile"