首页 热点资讯 义务教育 高等教育 出国留学 考研考公

怎样修改/etc/wvdial.conf和/etc/ppp/options设置能用联通3G上网,求高手指点指点?

发布网友 发布时间:2022-04-23 03:58

我来回答

2个回答

热心网友 时间:2023-10-14 01:59

[root@localhost ~]# cat /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init6 = AT+CFUN =1
Phone = *99#
Idle Seconds = 300
Auto DNS = 0
Password = any
Modem Type = Analog Modem
Stupid Mode = 1
Compuserve = 0
Baud = 115200
New PPPD = yes
Dial Command = ATDT
Ask Password = 0
Init = AT+CGDCONT=1,"IP","3gnet"
ISDN = 0
Username = any
Modem = /dev/ttyUSB1

[root@localhost ~]# cat /etc/ppp/options
noipdefault
ipcp-accept-local
ipcp-accept-remote
defaultroute
noauth
crtscts
debug
dns 220.21.4.130
dns 221.5.88.88

[root@localhost ~]# wvdial
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: AT+CGDCONT=1,"IP","3gnet"
AT+CGDCONT=1,"IP","3gnet"
ERROR
--> Bad init string.
--> Initializing modem.
--> Sending: AT+CGDCONT=1,"IP","3gnet"
AAT+CGDCONT=1,"IP","3gnet"
ERROR
--> Bad init string.
--> Initializing modem.
--> Sending: AT+CGDCONT=1,"IP","3gnet"
AT+CGDCONT=1,"IP","3gnet"
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CFUN =1
AT+CFUN =1
OK
--> Modem initialized.
--> Idle Seconds = 300, disabling automatic reconnect.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT 7200000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu Oct 27 14:45:46 2011
--> Pid of pppd: 2804
--> Using interface ppp0
--> Disconnecting at Thu Oct 27 14:46:16 2011
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
[root@localhost ~]# tail -n 50 /var/log/messages

Oct 27 14:45:38 localhost kernel: [ 1680.465277] usb 1-1: SerialNumber: 12345670ABCDEF
Oct 27 14:45:39 localhost kernel: [ 1681.196845] scsi4 : usb-storage 1-1:1.2
Oct 27 14:45:39 localhost usb_modeswitch: switched to 1e:1a20 (USB Modem: USB Modem)
Oct 27 14:45:39 localhost kernel: [ 1681.7429] USB Serial support registered for GSM modem (1-port)
Oct 27 14:45:39 localhost kernel: [ 1681.749378] usbcore: registered new interface driver option
Oct 27 14:45:39 localhost kernel: [ 1681.749386] option: v0.7.2:USB Driver for GSM modems
Oct 27 14:45:39 localhost logger: usb_modeswitch: adding device ID 1e:1a20 to driver "option"
Oct 27 14:45:39 localhost kernel: [ 1681.759098] option 1-1:1.0: GSM modem (1-port) converter detected
Oct 27 14:45:39 localhost kernel: [ 1681.759462] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Oct 27 14:45:39 localhost kernel: [ 1681.759597] option 1-1:1.1: GSM modem (1-port) converter detected
Oct 27 14:45:39 localhost kernel: [ 1681.759871] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Oct 27 14:45:39 localhost kernel: [ 1681.760171] option 1-1:1.3: GSM modem (1-port) converter detected
Oct 27 14:45:39 localhost kernel: [ 1681.760714] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Oct 27 14:45:40 localhost kernel: [ 1682.199117] scsi 4:0:0:0: Direct-Access USBModem Disk 2.31 PQ: 0 ANSI: 2
Oct 27 14:45:40 localhost kernel: [ 1682.202604] sd 4:0:0:0: Attached scsi generic sg1 type 0
Oct 27 14:45:40 localhost kernel: [ 1682.205810] sd 4:0:0:0: [sdb] Attached SCSI removable disk
Oct 27 14:45:40 localhost mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-1"
Oct 27 14:45:40 localhost mtp-probe: bus: 1, device: 7 was not an MTP device
Oct 27 14:45:40 localhost modem-manager[818]: <info> (ttyUSB1) opening serial port...
Oct 27 14:45:41 localhost modem-manager[818]: <info> (ttyUSB2) opening serial port...
Oct 27 14:45:41 localhost modem-manager[818]: <info> (ttyUSB0) opening serial port...
Oct 27 14:45:46 localhost kernel: [ 1688.604307] PPP generic driver version 2.4.2
Oct 27 14:45:46 localhost pppd[2804]: pppd 2.4.5 started by suozhang, uid 0
Oct 27 14:45:46 localhost pppd[2804]: Using interface ppp0
Oct 27 14:45:46 localhost lldpad[925]: evb_ifdownort ppp0 remove failed
Oct 27 14:45:46 localhost lldpad[925]: vdp_ifdownpp0 vdp data remove failed
Oct 27 14:45:46 localhost pppd[2804]: Connect: ppp0 <--> /dev/ttyUSB1
Oct 27 14:45:48 localhost modem-manager[818]: <info> (ttyUSB1) closing serial port...
Oct 27 14:45:48 localhost modem-manager[818]: <info> (ttyUSB1) serial port closed
Oct 27 14:45:48 localhost modem-manager[818]: <info> (ttyUSB1) opening serial port...
Oct 27 14:45:55 localhost modem-manager[818]: <info> (ttyUSB2) closing serial port...
Oct 27 14:45:55 localhost modem-manager[818]: <info> (ttyUSB2) serial port closed
Oct 27 14:45:55 localhost modem-manager[818]: <info> (ttyUSB2) opening serial port...
Oct 27 14:45:55 localhost modem-manager[818]: <info> (ttyUSB1) closing serial port...
Oct 27 14:45:55 localhost modem-manager[818]: <info> (ttyUSB1) serial port closed
Oct 27 14:45:59 localhost modem-manager[818]: <info> (ttyUSB0) closing serial port...
Oct 27 14:45:59 localhost modem-manager[818]: <info> (ttyUSB0) serial port closed
Oct 27 14:45:59 localhost modem-manager[818]: <info> (ttyUSB0) opening serial port...
Oct 27 14:46:01 localhost modem-manager[818]: <info> (ttyUSB2) closing serial port...
Oct 27 14:46:01 localhost modem-manager[818]: <info> (ttyUSB2) serial port closed
Oct 27 14:46:02 localhost modem-manager[818]: <info> (ttyUSB0) closing serial port...
Oct 27 14:46:02 localhost modem-manager[818]: <info> (ttyUSB0) serial port closed
Oct 27 14:46:02 localhost modem-manager[818]: <warn> plugin 'Generic' claimed to support tty/ttyUSB0 but couldn't: (-1) (unknown)
Oct 27 14:46:16 localhost pppd[2804]: LCP: timeout sending Config-Requests
Oct 27 14:46:16 localhost pppd[2804]: Connection terminated.
Oct 27 14:46:16 localhost avahi-daemon[743]: Withdrawing workstation service for ppp0.
Oct 27 14:46:16 localhost pppd[2804]: Modem hangup
Oct 27 14:46:16 localhost pppd[2804]: Exit.
Oct 27 14:46:16 localhost lldpad[925]: evb_ifdownort ppp0 remove failed
Oct 27 14:46:16 localhost lldpad[925]: vdp_ifdownpp0 vdp data remove failed
[root@localhost ~]#

热心网友 时间:2023-10-14 02:00

首先我觉得2楼的很奇怪我从来没听说过他说的那个价格 难道是你自己定出来的?楼主不信可以去查一下
本人没有用过移动的无线不过也没听什么人在用它的无线
电信的我用过强烈建议不要选择网速太慢和拨号差不过让人郁闷
建议你可以使用联通的3g上网卡本人正在使用网速和电信宽带2m可以一拼!
资费是先要花0买一个上网卡里面会预充300元( 联通上网卡启用首月系统默认设置为80元套餐,一月包1G,超出后资费0.1元/MB。次月可更改标准资费或其他套餐。 150元/月 3GB 200元/月 5GB 300元/月 10GB
套餐执行套餐自动升级模式:
1)先扣除所申请套餐内包含的数据流量,超出部分按照流量计费;
2)当原套餐月费与超出部分使用费用之和达到更高一级套餐月费时,自动向更高一级套餐升级;
3)下月自动恢复到您选择的套餐档。

有了套餐自动升级模式我认为最低套餐就可以了。)当你这预存的话费用完后就可以选择960元的无限上网卡包年了

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com