亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
12下一頁(yè)
最近訪問板塊 發(fā)新帖
查看: 2555 | 回復(fù): 15
打印 上一主題 下一主題

很菜的關(guān)于CDMA撥號(hào)的請(qǐng)教 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2005-01-17 11:53 |只看該作者 |倒序?yàn)g覽
很菜的關(guān)于CDMA撥號(hào)的請(qǐng)教

/usr/sbin/ppp-on
/usr/sbin/ppp-off  
/etc/ppp/ppp-on-dialer
都配了且具有可執(zhí)行屬性
運(yùn)行ppp-on 后無法接入網(wǎng)絡(luò)。
在/var/log/messages里記錄如下:
Jan 17 11:28:55 Bluesky kernel: CSLIP: code copyright 1989 Regents of the University of California
Jan 17 11:28:55 Bluesky kernel: PPP generic driver version 2.4.2
Jan 17 11:28:55 Bluesky pppd[2180]: pppd 2.4.1 started by root, uid 0
Jan 17 11:28:56 Bluesky chat[2181]: timeout set to 3 seconds
Jan 17 11:28:56 Bluesky chat[2181]: abort on (\nBUSY\r)
Jan 17 11:28:56 Bluesky chat[2181]: abort on (\nNO ANSWER\r)
Jan 17 11:28:56 Bluesky chat[2181]: abort on (\nRINGING\r\n\r\nRINGING\r)
Jan 17 11:28:56 Bluesky chat[2181]: send (rAT^M)
Jan 17 11:28:56 Bluesky chat[2181]: expect (OK)
Jan 17 11:28:59 Bluesky chat[2181]: alarm
Jan 17 11:28:59 Bluesky chat[2181]: send (+++)
Jan 17 11:28:59 Bluesky chat[2181]: expect (OK)
Jan 17 11:29:02 Bluesky chat[2181]: alarm
Jan 17 11:29:02 Bluesky chat[2181]: Failed
Jan 17 11:29:02 Bluesky pppd[2180]: Connect script failed
Jan 17 11:29:03 Bluesky pppd[2180]: Exit.

ppp-on 文件如下:
!/bin/sh
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command.  However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=#777          # The telephone number for the connection
ACCOUNT=**** (隱去)        # The account name for logon (as in 'George Burns')
PASSWORD=****(隱去)        # The password for this account (and 'Gracie Allen')
LOCAL_IP=0.0.0.0        # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0        # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0        # The proper netmask if needed
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in.  Please use the absolute file name as the $PATH variable is not
# used on the connect option.  (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS0 38400\
        asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IPREMOTE_IP \
        noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT

ppp-on-dialer如下:
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec chat -v                                                \
        TIMEOUT                3                                \
        ABORT                '\nBUSY\r'                        \
        ABORT                '\nNO ANSWER\r'                        \
        ABORT                '\nRINGING\r\n\r\nRINGING\r'        \
        ''                \rAT                                \
        'OK-+++\c-OK'        ATH0                                \
        TIMEOUT                30                                \
        OK                ATDT$TELEPHONE                        \
        CONNECT                ''                                \
        ogin:--ogin:        $ACCOUNT                        \
        assword:        $PASSWORD




聯(lián)通接入號(hào)碼是#777
我懷疑是/usr/sbin/ppp-on中  TELEPHONE=#777  的"#"號(hào)把接入號(hào)碼當(dāng)成注釋了~~請(qǐng)問是這樣嗎?如果是怎樣解決~~希望高手給予指點(diǎn),謝謝

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2005-01-17 11:54 |只看該作者

很菜的關(guān)于CDMA撥號(hào)的請(qǐng)教

在線等.....

論壇徽章:
33
榮譽(yù)會(huì)員
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-17 06:23:27操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-04-18 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-24 06:20:0015-16賽季CBA聯(lián)賽之天津
日期:2016-05-06 12:46:59
3 [報(bào)告]
發(fā)表于 2005-01-17 12:15 |只看該作者

很菜的關(guān)于CDMA撥號(hào)的請(qǐng)教

加個(gè)引號(hào)試試.

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2005-01-17 12:41 |只看該作者

很菜的關(guān)于CDMA撥號(hào)的請(qǐng)教

單引號(hào)雙引號(hào)我都試過的,不行~~~

論壇徽章:
33
榮譽(yù)會(huì)員
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-17 06:23:27操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-04-18 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-24 06:20:0015-16賽季CBA聯(lián)賽之天津
日期:2016-05-06 12:46:59
5 [報(bào)告]
發(fā)表于 2005-01-17 12:48 |只看該作者

很菜的關(guān)于CDMA撥號(hào)的請(qǐng)教

用反斜杠試過沒有?

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2005-01-17 12:51 |只看該作者

很菜的關(guān)于CDMA撥號(hào)的請(qǐng)教

TELEPHONE=\#777這樣試一下

特服號(hào)居然是#開頭的,真是夠BT的,第一次見到

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2005-01-17 13:10 |只看該作者

很菜的關(guān)于CDMA撥號(hào)的請(qǐng)教

能想的我都試過,  \#777  還是把#號(hào)后面的認(rèn)為是注釋
“#777” 和'#777' 倒是不會(huì)認(rèn)成注釋,但var/log/messages報(bào)的錯(cuò)誤一樣
ppp-on后連停頓都沒有,馬上就跳出下一個(gè)命令行....用ADSL撥號(hào)都會(huì)停頓一會(huì)兒的呀~~   CDMA連接沒有問題,同一臺(tái)機(jī)器我在WINDOWS下?lián)芡说,暈?/td>

論壇徽章:
2
綜合交流區(qū)版塊每日發(fā)帖之星
日期:2015-08-06 06:20:00每日論壇發(fā)貼之星
日期:2015-08-06 06:20:00
8 [報(bào)告]
發(fā)表于 2005-01-17 13:20 |只看該作者

很菜的關(guān)于CDMA撥號(hào)的請(qǐng)教

你把設(shè)置的內(nèi)容后面的注釋去掉試一下。我在設(shè)置撥號(hào)程序的時(shí)候,如果后而有注釋行則出錯(cuò)!

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2005-01-17 13:40 |只看該作者

很菜的關(guān)于CDMA撥號(hào)的請(qǐng)教

試了,沒有用~~~怎么測(cè)試串口和貓通信正常?我用minicom連上開關(guān)電源后會(huì)出幾個(gè)字符,正常嗎?  
還有什么方法能撥上去呀?

論壇徽章:
0
10 [報(bào)告]
發(fā)表于 2005-01-17 14:00 |只看該作者

很菜的關(guān)于CDMA撥號(hào)的請(qǐng)教

我看這個(gè)腳本比較簡(jiǎn)單,就是設(shè)置變量然后export的過程,你試著自己用export TELEPHONE=#777先設(shè)置好TELEPHONE這個(gè)環(huán)境變量然后試試看呢?
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP