|
发表于 2003-4-21 23:54:41
|
显示全部楼层
[root@localhost root]# uname -a
Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
[root@localhost root]# rpm -ivh hsflinmodem-5.03.27lnxtbeta03041600k2.4.20_8-1rh.i686.rpm
warning: hsflinmodem-5.03.27lnxtbeta03041600k2.4.20_8-1rh.i686.rpm: V3 DSA signature: NOKEY, key ID 5dfbf7dc
Preparing... ########################################### [100%]
1:hsflinmodem ########################################### [100%]
Linux HSF softmodem drivers, version 5.03.27lnxtbeta03041600
WARNING: this is an EXPERIMENTAL BETA VERSION of the HSF drivers for Linux.
USE AT YOUR OWN RISK! See the file /usr/lib/hsf/LICENSE for details.
Conexant Systems neither distributes nor maintains this package.
PLEASE DO NOT CONTACT CONEXANT REGARDING THIS SOFTWARE!!!
If you require assistance or need more information, go to:
http://www.linuxant.com/drivers
Selected PCI VendorID=127A DeviceID=2015
and INF file /etc/hsf/inf/linux_hsf.inf
Automatically guessed country (using timezone): "CHINA"
Configuring modem for country: "CHINA"
You can change this setting later with the command "hsfconfig --country"
Pre-built HSF modules that seem compatible with your system were found under
/usr/lib/hsf/modules/binaries/i686/rh/linux-2.4.20-8.
Your HSF modem should now be accessible as /dev/ttySHSF0
or through the symbolic link /dev/modem.
[root@localhost root]# ln -s /dev/ttySHSFO /dev/modem
然后配置了wvdial.conf
[root@localhost root]# wvdialconf /etc/wvdial.conf
Scanning your serial ports for a modem.
Port Scan<*1>: Scanning ttySHSF0 first, /dev/modem is a link to it.
ttySHSF0<*1>: ATQ0 V1 E1 -- OK
ttySHSF0<*1>: ATQ0 V1 E1 Z -- OK
ttySHSF0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttySHSF0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttySHSF0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttySHSF0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttySHSF0<*1>: Modem Identifier: ATI -- 56000
ttySHSF0<*1>: Speed 4800: AT -- OK
ttySHSF0<*1>: Speed 9600: AT -- OK
ttySHSF0<*1>: Speed 19200: AT -- OK
ttySHSF0<*1>: Speed 38400: AT -- OK
ttySHSF0<*1>: Speed 57600: AT -- OK
ttySHSF0<*1>: Speed 115200: AT -- OK
ttySHSF0<*1>: Max speed is 115200; that should be safe.
ttySHSF0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttySHSF0, using link /dev/modem in config.
Modem configuration written to /etc/wvdial.conf.
ttySHSF0<Info>: Speed 115200; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
配置文件的内容:
[Modem0]
Modem = /dev/modem
Baud = 57600
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
FlowControl =硬件(CRTSCTS)
[Dialer 8163]
Username = 8163
Password = 8163
Phone = 8163
Stupid Mode = 1
Inherits = Modem0
运行#wvdial
一拔就断
[root@localhost root]# wvdial
--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ
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: ATDT8888
--> Waiting for carrier.
ATDT8888
CONNECT 115200
--> Carrier detected. Waiting for prompt.
*********************************
* Quidway A8010 Internet Server *
* welcome!! *
*********************************
please input username:
--> Looks like a login prompt.
--> Sending: vip
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Mon Apr 21 22:53:48 2003
--> pid of pppd: 2213
--> Disconnecting at Mon Apr 21 22:53:50 2003
--> 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.
--> Auto Reconnect will be attempted in 5 seconds
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Initializing modem.
--> Sending: ATZ
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: ATDT8888
--> Waiting for carrier.
ATDT8888
CONNECT 115200
--> Carrier detected. Waiting for prompt.
*********************************
* Quidway A8010 Internet Server *
* welcome!! *
*********************************
please input username:
--> Looks like a login prompt.
--> Sending: vip
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Mon Apr 21 22:54:31 2003
--> pid of pppd: 2234
--> Disconnecting at Mon Apr 21 22:54:32 2003
--> 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.
--> Auto Reconnect will be attempted in 10 seconds
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Initializing modem.
--> Sending: ATZ
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: ATDT8888
--> Waiting for carrier.
ATDT8888
CONNECT 115200
--> Carrier detected. Waiting for prompt.
*********************************
* Quidway A8010 Internet Server *
* welcome!! *
*********************************
please input username:please input password:
--> Looks like a password prompt.
--> Sending: (password)
***
Sorry! You can't use INTERNET!
please input username:
--> Looks like a login prompt.
--> Sending: vip
vip
please input password:
--> Looks like a password prompt.
--> Sending: (password)
***
Entering PPP mode.
Async interface address is unnumbered(Ethernet0)
Header compression will match your system.
Your IP address is: 61.165.6.129 MTU is 1500 bytes
~[7f]}#@!}![02]} }9}!}$}%\}"}&} }*} } }'}"}(}"}1}$}%\}3}#}!9.~
--> PPP negotiation detected.
--> Starting pppd at Mon Apr 21 22:55:10 2003
--> pid of pppd: 2253
然后试用互联网配置向导,提示没找到MODEM,我强行配置了,如图: |
|