BCRAN课本命令回顾
生活随笔
收集整理的這篇文章主要介紹了
BCRAN课本命令回顾
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
BCRAN課本命令回顧
BCRAN(組建Cisco遠(yuǎn)程接入網(wǎng)絡(luò))
第三部分 啟用到網(wǎng)絡(luò)中心的按需連接
第4章 配置調(diào)制解調(diào)器異步連接
4.5 異步連接配置
常用的調(diào)制解調(diào)器標(biāo)準(zhǔn)
插槽號(hào) 線路號(hào)碼范圍
0 1~32
1 33~64
2 65~96
3 97~128
公式:接口號(hào)碼=(32*插槽號(hào)碼)+ 單元號(hào)碼 + 1
所提供的服務(wù)以及線路和循環(huán)組所對(duì)應(yīng)的端口號(hào)碼
所提供的服務(wù) 單獨(dú)的線路所對(duì)應(yīng)的TCP端口號(hào)碼基數(shù) 循環(huán)組所對(duì)應(yīng)的TCP端口號(hào)碼基數(shù)
Telnet協(xié)議 2000 3000
原始(Raw)TCP協(xié)議(不含Telent) 4000 5000
Telnet協(xié)議,二進(jìn)制模式 6000 7000
X遠(yuǎn)程協(xié)議 9000 10000
反向Telnet到一條線路上時(shí),其協(xié)議配置為:
Router(config-line)# transport output protocol {lat | mop | nasi | none | pad | rlogin | telnet | v120}
Router(config-line)# transport output all
其中必須配置的是:
Router(config-line)# transport input all
Router(config-line)# modem inout
4.5.1 可執(zhí)行連接命令
可執(zhí)行命令 命令線描述
Telnet <host | IP地址> [port] [/debug] 建立一個(gè)主機(jī)(或者到某一個(gè)具體端口)的連接。任選項(xiàng)“debug”可以通過(guò)顯示記錄(log)消息提供與該相連接相關(guān)的信息
Show session 顯示當(dāng)前連接的會(huì)話
Disconnect [session-number] 終止所接指定的連接;如果不指定連接的話,就終止最近的一次連接(即當(dāng)前連接)
Ctrl + Shift + 6 + X 中斷當(dāng)前會(huì)話,先同時(shí)按Ctrl 、 Shift和 6 鍵,然后再按X鍵
4.5.2 線路(Line)和編號(hào)
線路類型 線路編號(hào)
CON——Console line Line = 0
TTY——Asynchronous line Line = n (注:n表示從1開(kāi)始的編號(hào))
AUX——Auxiliary line Line = last_tty + 1
VTY——Virtual terminal line Line = last_tty + 2 + m (注:m表示VTY本身的編號(hào)0~4中的值)
Router# show line
Router# show line <line-number> 在VTY線路上——過(guò)濾數(shù)據(jù)流用:
Router (config-line)# access-class <列表號(hào)>?
4.6 路由器配置
4.6.1 Interface Async和Line配置命令
Router (config)# interface async <接口號(hào)> Router (config-if)# encapsulation ppp
Router (config-if)# async dynamic address
Router (config-if)# async mode interactive
Router (config-if)# ppp authentication chap
Router (config)# line <line-number> Router (config-line)# login local
Router (config-line)# modem inout
Router (config-line)# transport input all
Router (config-line)# speed <速度,常為115200> Router (config-line)# stopbits 1
Router (config-line)# flowcontrol hardware
Router (config-line)# rotary <循環(huán)組號(hào)> Router (config-line)# autoselect ppp
4.7 異步線路基本配置——路由器準(zhǔn)備
Router (config)# line <line-number> Router (config-line)# login
Router (config-line)# password <password>?
Router (config-line)# speed <速度,常為115200> Router (config-line)# stopbits 1
Router (config-line)# flowcontrol hardware
Router (config-line)# transport input all
Router (config-line)# modem {inout | dialin}
4.8 異步線路基本配置——調(diào)制解調(diào)器準(zhǔn)備
1、標(biāo)準(zhǔn)命令
調(diào)制解調(diào)命令描述
命令 描???? 述
AT&F 載入出廠進(jìn)的默認(rèn)配置(只讀)
ATS0=1 將調(diào)制解調(diào)器設(shè)置成在收到第一次振鈴時(shí)就自動(dòng)回應(yīng)進(jìn)入的呼叫(當(dāng)使用主叫號(hào)碼識(shí)別功能或假裝已經(jīng)定購(gòu)了主叫號(hào)碼發(fā)送/識(shí)別業(yè)務(wù)防止黑客攻擊時(shí),建議設(shè)置為ATS0=2
AT&C1&D3 設(shè)置調(diào)制解調(diào)器控制(CD和DTR信號(hào))
ATS2=255 忽略“+++”命令。“+++”命令字符用以將調(diào)制解調(diào)器設(shè)置為命令模式。目的是讓遠(yuǎn)端調(diào)制解調(diào)器忽略“+++”——這是防止遠(yuǎn)端MODEM中BUG的一個(gè)的方法
ATE0 設(shè)置“echo off”,調(diào)制解調(diào)器不對(duì)擊鍵進(jìn)行回應(yīng)
ATM0 關(guān)MODEM的處部音頻輸出
標(biāo)準(zhǔn)調(diào)制解調(diào)器命令
命令 Microcom Hayes USR
硬件流控 AT\Q3 AT&K3 AT&H1&R2
鎖定DTE設(shè)備數(shù)據(jù)傳輸速率 AT\J0 AT&Q6 AT&B1
差錯(cuò)校校正 AT\N6 AT&Q5 AT&M4
數(shù)據(jù)壓縮 AT%C1 AT&Q9 AT&K1
顯示配置 AT\S1 AT&V ATI4
獲得幫助 AT$H AT$
保存配置 AT&W
4.8.2 自動(dòng)配置調(diào)制解調(diào)器
Router (config-line)# modem autoconfigure
Router# show modemcap
?(注:用于顯示modemcap數(shù)據(jù)庫(kù)中的調(diào)制器列表)
Router# show modemcap [modem _name]
或:
Router# modemcap entry [modem _name]
Router (config)# line <FIRST線路號(hào)> <LAST線路號(hào)碼> Router (config-line)# modem autoconfigure discovery
Router# show modemcap
Router (config-line)# modem autoconfigure type < modem _name>?
Router (config)# modemcap edit <new _modem _name> Router (config)# no modemcap edit <new _modem _name> Router (config)# no modemcap edit <new _modem _name> <attribute> Router# show modemcap <new _modem _name> Router# show running-config
4.8.3 異步線路的Chat-Scripts
Router (config)# chat-script <script-name> {<expect-string> <send-string> [<expect-string> <send-string> […]]}
Router (config)# chat-script < script-name> abort error abort busy “” “<at命令(ATZ)”> ok “< at命令(ATDT\T)” timeout <空閑斷線時(shí)間> connect
?(注:其中上面的error、busy、“” 、ok為收到的字符串;chat-script可以用作modem-script、system-script;modem-script用于DTE和DCE設(shè)備之間,system-script用于DTE和DTE設(shè)備之間)
Router# start-chat < script-name> [line-number [dialer-string]]
?(注:啟動(dòng)chat-script到一條還沒(méi)有指定的線路;如果指定了一個(gè)已使用的,會(huì)報(bào)錯(cuò))
4.9 調(diào)制解調(diào)節(jié)器自動(dòng)配置的調(diào)試與驗(yàn)證
Router# debug confmodem
Router# show line
Router# clear line
4.10 調(diào)制解調(diào)器自動(dòng)配置的排錯(cuò)
Router# show line
Router (config-line)# modem autoconfigure type < modem _name> Router# show modemcap
4.13 ——配置調(diào)制解調(diào)器異步連接
4.3..2 ——配置串行接口和線路
配置調(diào)制解調(diào)器的串行接口及相應(yīng)線路
命 令 描???? 述
Interface serial <接口> 進(jìn)入串口進(jìn)行配置
Physical-layer async 將該串行接口配置為異步工作模式
Line <line _number> 指定線路接口,并進(jìn)入線路配置模式
login 允許登錄,并要求輸入口令
Password <password> 設(shè)置口令
Modem inout 允許進(jìn)入和外出的調(diào)制解調(diào)器連接
Transport input all 允許所有的傳輸協(xié)議
Speed <speed> 設(shè)置路由器和調(diào)制解調(diào)器之間的數(shù)據(jù)傳輸速率,常設(shè)置為115200b/s
Stopbits 1 設(shè)置每一個(gè)字節(jié)帶一個(gè)停止位
Flowcontrol hardware 使用CTS/RTS信號(hào)進(jìn)行流控
配置反向Telnet到調(diào)制解調(diào)器的主機(jī)名
命 令 描???? 述
Ip host <modem定義名> <端口號(hào)> <ip地址> 為反向Telnet到線路連接的Modem設(shè)置一個(gè)主機(jī)名 第5章 PPP協(xié)議配置和網(wǎng)絡(luò)訪問(wèn)控制
5.3 配置Cisco訪問(wèn)服務(wù)器
Router (config)# line <line-number> Router (config-line)# autoselect {arap | ppp | slip | during-login}
不同協(xié)議所用的幀標(biāo)志字節(jié)的十六進(jìn)制值
協(xié)議 幀標(biāo)志字節(jié)的十六進(jìn)制值
回車 0d
SLIP c0
ARAP 10
PPP 7E
Router (config-line)# autoselect during-login
?(注:可以直接提示用戶/口令的輸入,而不需要等待用戶敲回車鍵)
Router (config-line)# no exec
?(注:在用戶端不提供命令行提示功能)
5.3.1 啟用PPP
Router (config-if)# encapsulation ppp
Router (config-if)# encapsulation slip
5.3.2 配置專用或交互式PPP(和SLIP)接口模式
Router (config-if)# async mode {dedicated | interactive}
接口模式 描述
dedicated 強(qiáng)制使用SLIP或PPP
interactive 自動(dòng)選擇SLIP、PPP或EXEC。要先于線路模式autoselect {arap | ppp | slip | during-login}配置
5.3.3 配置本地設(shè)備接口編址方法
Router (config-if)# ip address <ip-address> <network-mask> Router (config-if)# ip unnumbered <interface-type> <interface-number>a
Router (config-if)# ip unnumbered loopback 0
5.3.4 配置遠(yuǎn)程(接受撥入服務(wù)端)設(shè)備接口編止方法
Router (config-if)# peer default ip address {ip-address | dhcp | pool}
Router (config)# ip local pool <pool-name> <starting-address> <end-address> Router (config)# interface async <接口號(hào)> Router (config-if)# peer default ip address pool <pool-name>?
Router (config)# ip helper <ip-address> Router (config)# ip dhcp-server <相應(yīng)的參數(shù)> Router (config-if)# peer default ip address dhcp
Router (config-if)# async dynamic <ip-address>? (注:可與固定地址配合使用,提示用戶輸入所需的IP地址和口令)
5.5 PAP和CHAP認(rèn)證
5.5.1 配置PAP認(rèn)證
Router (config-if)# encapsulation ppp
Router (config-if)# ppp authentication pap
Router (config-if)# dialer map <protocol> <next-hop-address> [name <hostname>] [broadcast] <dial-string>?
5.5.2 配置CHAP認(rèn)證
Router (config-if)# encapsulation ppp
Router (config-if)# ppp authentication chap
認(rèn)證返回信息 描述
03 CHAP認(rèn)證成功消息類型標(biāo)識(shí)符
04 CHAP認(rèn)證失敗消息類型標(biāo)識(shí)符
Id 序列號(hào),直接從應(yīng)答數(shù)據(jù)包中復(fù)制過(guò)來(lái)
Welcome in 某種簡(jiǎn)單的文本消息,為了讓用戶可讀
Authentication failure 或其它某個(gè)類似的文本消息,為了讓用戶可讀
Router (config-if)# encapsulation ppp
Router (config-if)# ppp authentication pap chap
或者:
Router (config-if)# ppp authentication chap pap
5.6 PPP反向回?fù)?br /> Router (config-if)# dialer enable-timeout <timeout>? (注:服務(wù)器端回?fù)軙r(shí)間控制)
Router (config-if)# dialer hold-queue <number of packets> timeout <4倍以上于服務(wù)器timeout>?
5.6.1 反向回?fù)苁侨绾喂ぷ鞯?br /> Router (config-if)# encapsulation ppp
Router (config-if)# ppp authentication {pap | chap}
Router (config-if)# dialer call-secure
Router (config-if)# ppp callback accept
5.6.2 配置異步線路的反向回?fù)?br /> Router (config)# username <username> password <password> [callback-dialstring <telephone-number>] [callback-line <line-number>] [callback-rotary <rotary-group-number>]
?(注:如果callback-dialstring 配置為空時(shí),路由器將從呼叫方接收反向回?fù)芩玫碾娫捥?hào)碼)
Router (config)# interface <interface-type> <interface-number> Router (config-if)# ppp callback accept
Router (config-if)# ppp callback initiate
Router (config)# line <line-number> Router (config-line)# callback forced-wait <seconds> Router (config-line)# script callback <script-nume> 異步反向回?fù)苊?br /> 命 令 描???? 述
ppp callback accept 該接口配置命令使用當(dāng)前接口能夠接受從支持RFC 1570規(guī)范的遠(yuǎn)程節(jié)點(diǎn)發(fā)出的反向回?fù)苷?qǐng)求
ppp callback initiate 該接口配置命令使路由器能夠?qū)σ粋€(gè)不支持RFC 1570規(guī)范、但能使自己為反向回?fù)苓M(jìn)入“應(yīng)答模式”的遠(yuǎn)程節(jié)點(diǎn)發(fā)起反向回?fù)?br /> callback forced-wait <seconds> 這個(gè)線路配置命令為反向回?fù)芙徽勀_本(chat-script)被用于外出的目標(biāo)線路之前,設(shè)置一段額外的等待時(shí)間(以秒計(jì))。該配置是為了照顧那些在再次接收呼叫之前需要一段較長(zhǎng)休息時(shí)間的客戶端調(diào)制解調(diào)器
script callback <script-nume> 該線路配置命令指定一個(gè)向調(diào)制解調(diào)器發(fā)送AT命令的交談腳本,以用于在目標(biāo)線路上發(fā)起反向回?fù)堋T撁羁杀挥糜贓XEC模式和PPP反向回?fù)?br /> /*配置反向回?fù)芊?wù)器*/
Router (config)# interface async <接口號(hào)> Router (config-if)# encapsulation ppp
Router (config-if)# dialer callback-secure
?(注:用于掛斷那些沒(méi)有正確地進(jìn)行反向回?fù)芘渲玫暮艚?#xff09;
Router (config)# dialer map <protocol> <next-hop-address> [name <hostname>] [broadcast] <dial-string> Router (config-if)# dialer-group < dialer-group-number >? (注:建立撥號(hào)映謝)
Router (config-if)# ppp callback accept
?(注:啟用反向回?fù)?#xff09;
Router (config-if)# ppp authentication {chap | ppp}
?(注:定義PPP認(rèn)證方式)
Router (config)# Map-class dialer <classname> Router (config-if)# dialer callback-server <username>? (注:根據(jù)撥號(hào)用戶認(rèn)證名和撥號(hào)映射中所規(guī)定的主機(jī)名來(lái)鑒定反向回?fù)芸蛻舻暮戏ㄐ?#xff09;
Router (config-if)# dialer enable-timeout <timeout>? (注:設(shè)置在發(fā)出返回?fù)芙兄胺?wù)器等待的時(shí)間)
Router (config-if)# dialer hold-queue <number of packets> timeout <seconds>?
/*配置反向回?fù)芸蛻魴C(jī)*/
Router (config)# interface async <接口號(hào)> Router (config-if)# encapsulation ppp
Router (config)# dialer map <protocol> <next-hop-address> [name <hostname>] [broadcast] <dial-string> Router (config-if)# dialer-group < dialer-group-number >?
Router (config-if)# ppp callback request
?(注:將路由器接口配置為反向回?fù)芸蛻魴C(jī))
Router (config-if)# ppp authentication {chap | ppp}
Router (config-if)# dialer hold-queue <number of packets> timeout <seconds>?
5.7 PPP壓縮
Cisco的壓縮方法 描???? 述
Predictor 它可以先判斷數(shù)據(jù)是否已被壓縮過(guò),對(duì)于已經(jīng)壓縮過(guò)的不再壓縮——立即轉(zhuǎn)發(fā);屬內(nèi)存密集型、占CPU少
Stacker 是一種基于Lempel-Ziv(LZ)的壓縮算法。Cisco 700系列路由器所支持的唯一一種算法;它對(duì)每種數(shù)據(jù)類型只發(fā)送一次,然后只發(fā)送各數(shù)據(jù)類型在數(shù)據(jù)流中的位置信息,接收方重新組裝數(shù)據(jù)據(jù)流;屬于CPU密集型、占內(nèi)存少
MMPC Microsoft點(diǎn)對(duì)點(diǎn)壓縮(MPPC)協(xié)議(RFC 2118),也是一種基于LZ的壓縮算法。它使Cisco路由器可以與Microsoft客戶可交換壓縮過(guò)的數(shù)據(jù)
TCP包頭壓縮 用以壓縮TCP包頭,支持HDLC、PPP、SLIP
5.7.1 配置PPP壓縮
Router (config-if)# compress [predictor | stac | mppc]
Router (config-if)# ip tcp header-compression [passive]
?(注:passive的意思是——不主動(dòng)對(duì)外出的數(shù)據(jù)包使用TCP包頭壓縮,但,如果接收的為此壓縮格式,就自動(dòng)啟用包頭壓縮)
5.8 PPP多鏈路捆綁(Multilink)
Router (config-if)# ppp multilink
Router# show ppp multilink
5.9 PPP的驗(yàn)證及排錯(cuò)
Router# show dialer <接口類型> <接口號(hào)> Router# debug ppp negotiation
5.13 ——IP地址協(xié)商
IPCP地址協(xié)商——測(cè)試結(jié)果
路由器設(shè)置 Win 95撥號(hào)設(shè)置 路由器的反應(yīng)
Async dynamic address(動(dòng)態(tài)地址設(shè)置) 指定了IP地址:10.115.0.13 承認(rèn)用戶指定的地址:10.115.0.13
Async dynamic addressIp unnumbered e0 指定了IP地址:10.13.13.13 承認(rèn)用戶指定的地址:10.13.13.13
Async dynamic addressPeer default ip address 10.115.0177(設(shè)置默認(rèn)地址) 指定了IP地址:10.13.13.13 經(jīng)過(guò)協(xié)商后,讓撥號(hào)用戶使用默認(rèn)地址:10.115.0.117
Async dynamic addressPeer default ip address pool(pool:10.115.0.111 through 10.115.0.119 指定了IP地址:10.115.0.13(在路由器本地IP集范圍內(nèi)) 經(jīng)過(guò)協(xié)商后,同意撥號(hào)用戶使用地址:10.115.0.116,因?yàn)樵摰刂肥潜镜豂P地址集的一部分
PPP認(rèn)證協(xié)商——測(cè)試結(jié)果
路由器的設(shè)置 Win 95撥號(hào)網(wǎng)絡(luò)設(shè)置 認(rèn)證的結(jié)果
Ppp authentication papCONFREQ:PAP 不需要加密CONFACK:PAP 通過(guò)
Ppp authentication papCONFREQ:PAP 需要加密CONFACK:MS-CHAP 失敗
Ppp authentication chapCONFREQ:CHAP 不需要加密CONFACK:CHAP 通過(guò)
Ppp authentication chapCONFREQ:CHAP 需要加密CONFACK:CHAP 通過(guò)
Ppp authentication chap papCONFREQ:CHAP 不需要加密CONFACK:CHAP 通過(guò)
Ppp authentication pap chapCONFREQ:PAPCONFREQ:CHAP 需要加密CONFACK:PAPCONFACK:CHAP 通過(guò)
本文轉(zhuǎn)自gauyanm 51CTO博客,原文鏈接:http://blog.51cto.com/gauyanm/229049,如需轉(zhuǎn)載請(qǐng)自行聯(lián)系原作者
BCRAN(組建Cisco遠(yuǎn)程接入網(wǎng)絡(luò))
第三部分 啟用到網(wǎng)絡(luò)中心的按需連接
第4章 配置調(diào)制解調(diào)器異步連接
4.5 異步連接配置
常用的調(diào)制解調(diào)器標(biāo)準(zhǔn)
插槽號(hào) 線路號(hào)碼范圍
0 1~32
1 33~64
2 65~96
3 97~128
公式:接口號(hào)碼=(32*插槽號(hào)碼)+ 單元號(hào)碼 + 1
所提供的服務(wù)以及線路和循環(huán)組所對(duì)應(yīng)的端口號(hào)碼
所提供的服務(wù) 單獨(dú)的線路所對(duì)應(yīng)的TCP端口號(hào)碼基數(shù) 循環(huán)組所對(duì)應(yīng)的TCP端口號(hào)碼基數(shù)
Telnet協(xié)議 2000 3000
原始(Raw)TCP協(xié)議(不含Telent) 4000 5000
Telnet協(xié)議,二進(jìn)制模式 6000 7000
X遠(yuǎn)程協(xié)議 9000 10000
反向Telnet到一條線路上時(shí),其協(xié)議配置為:
Router(config-line)# transport output protocol {lat | mop | nasi | none | pad | rlogin | telnet | v120}
Router(config-line)# transport output all
其中必須配置的是:
Router(config-line)# transport input all
Router(config-line)# modem inout
4.5.1 可執(zhí)行連接命令
可執(zhí)行命令 命令線描述
Telnet <host | IP地址> [port] [/debug] 建立一個(gè)主機(jī)(或者到某一個(gè)具體端口)的連接。任選項(xiàng)“debug”可以通過(guò)顯示記錄(log)消息提供與該相連接相關(guān)的信息
Show session 顯示當(dāng)前連接的會(huì)話
Disconnect [session-number] 終止所接指定的連接;如果不指定連接的話,就終止最近的一次連接(即當(dāng)前連接)
Ctrl + Shift + 6 + X 中斷當(dāng)前會(huì)話,先同時(shí)按Ctrl 、 Shift和 6 鍵,然后再按X鍵
4.5.2 線路(Line)和編號(hào)
線路類型 線路編號(hào)
CON——Console line Line = 0
TTY——Asynchronous line Line = n (注:n表示從1開(kāi)始的編號(hào))
AUX——Auxiliary line Line = last_tty + 1
VTY——Virtual terminal line Line = last_tty + 2 + m (注:m表示VTY本身的編號(hào)0~4中的值)
Router# show line
Router# show line <line-number> 在VTY線路上——過(guò)濾數(shù)據(jù)流用:
Router (config-line)# access-class <列表號(hào)>?
4.6 路由器配置
4.6.1 Interface Async和Line配置命令
Router (config)# interface async <接口號(hào)> Router (config-if)# encapsulation ppp
Router (config-if)# async dynamic address
Router (config-if)# async mode interactive
Router (config-if)# ppp authentication chap
Router (config)# line <line-number> Router (config-line)# login local
Router (config-line)# modem inout
Router (config-line)# transport input all
Router (config-line)# speed <速度,常為115200> Router (config-line)# stopbits 1
Router (config-line)# flowcontrol hardware
Router (config-line)# rotary <循環(huán)組號(hào)> Router (config-line)# autoselect ppp
4.7 異步線路基本配置——路由器準(zhǔn)備
Router (config)# line <line-number> Router (config-line)# login
Router (config-line)# password <password>?
Router (config-line)# speed <速度,常為115200> Router (config-line)# stopbits 1
Router (config-line)# flowcontrol hardware
Router (config-line)# transport input all
Router (config-line)# modem {inout | dialin}
4.8 異步線路基本配置——調(diào)制解調(diào)器準(zhǔn)備
1、標(biāo)準(zhǔn)命令
調(diào)制解調(diào)命令描述
命令 描???? 述
AT&F 載入出廠進(jìn)的默認(rèn)配置(只讀)
ATS0=1 將調(diào)制解調(diào)器設(shè)置成在收到第一次振鈴時(shí)就自動(dòng)回應(yīng)進(jìn)入的呼叫(當(dāng)使用主叫號(hào)碼識(shí)別功能或假裝已經(jīng)定購(gòu)了主叫號(hào)碼發(fā)送/識(shí)別業(yè)務(wù)防止黑客攻擊時(shí),建議設(shè)置為ATS0=2
AT&C1&D3 設(shè)置調(diào)制解調(diào)器控制(CD和DTR信號(hào))
ATS2=255 忽略“+++”命令。“+++”命令字符用以將調(diào)制解調(diào)器設(shè)置為命令模式。目的是讓遠(yuǎn)端調(diào)制解調(diào)器忽略“+++”——這是防止遠(yuǎn)端MODEM中BUG的一個(gè)的方法
ATE0 設(shè)置“echo off”,調(diào)制解調(diào)器不對(duì)擊鍵進(jìn)行回應(yīng)
ATM0 關(guān)MODEM的處部音頻輸出
標(biāo)準(zhǔn)調(diào)制解調(diào)器命令
命令 Microcom Hayes USR
硬件流控 AT\Q3 AT&K3 AT&H1&R2
鎖定DTE設(shè)備數(shù)據(jù)傳輸速率 AT\J0 AT&Q6 AT&B1
差錯(cuò)校校正 AT\N6 AT&Q5 AT&M4
數(shù)據(jù)壓縮 AT%C1 AT&Q9 AT&K1
顯示配置 AT\S1 AT&V ATI4
獲得幫助 AT$H AT$
保存配置 AT&W
4.8.2 自動(dòng)配置調(diào)制解調(diào)器
Router (config-line)# modem autoconfigure
Router# show modemcap
?(注:用于顯示modemcap數(shù)據(jù)庫(kù)中的調(diào)制器列表)
Router# show modemcap [modem _name]
或:
Router# modemcap entry [modem _name]
Router (config)# line <FIRST線路號(hào)> <LAST線路號(hào)碼> Router (config-line)# modem autoconfigure discovery
Router# show modemcap
Router (config-line)# modem autoconfigure type < modem _name>?
Router (config)# modemcap edit <new _modem _name> Router (config)# no modemcap edit <new _modem _name> Router (config)# no modemcap edit <new _modem _name> <attribute> Router# show modemcap <new _modem _name> Router# show running-config
4.8.3 異步線路的Chat-Scripts
Router (config)# chat-script <script-name> {<expect-string> <send-string> [<expect-string> <send-string> […]]}
Router (config)# chat-script < script-name> abort error abort busy “” “<at命令(ATZ)”> ok “< at命令(ATDT\T)” timeout <空閑斷線時(shí)間> connect
?(注:其中上面的error、busy、“” 、ok為收到的字符串;chat-script可以用作modem-script、system-script;modem-script用于DTE和DCE設(shè)備之間,system-script用于DTE和DTE設(shè)備之間)
Router# start-chat < script-name> [line-number [dialer-string]]
?(注:啟動(dòng)chat-script到一條還沒(méi)有指定的線路;如果指定了一個(gè)已使用的,會(huì)報(bào)錯(cuò))
4.9 調(diào)制解調(diào)節(jié)器自動(dòng)配置的調(diào)試與驗(yàn)證
Router# debug confmodem
Router# show line
Router# clear line
4.10 調(diào)制解調(diào)器自動(dòng)配置的排錯(cuò)
Router# show line
Router (config-line)# modem autoconfigure type < modem _name> Router# show modemcap
4.13 ——配置調(diào)制解調(diào)器異步連接
4.3..2 ——配置串行接口和線路
配置調(diào)制解調(diào)器的串行接口及相應(yīng)線路
命 令 描???? 述
Interface serial <接口> 進(jìn)入串口進(jìn)行配置
Physical-layer async 將該串行接口配置為異步工作模式
Line <line _number> 指定線路接口,并進(jìn)入線路配置模式
login 允許登錄,并要求輸入口令
Password <password> 設(shè)置口令
Modem inout 允許進(jìn)入和外出的調(diào)制解調(diào)器連接
Transport input all 允許所有的傳輸協(xié)議
Speed <speed> 設(shè)置路由器和調(diào)制解調(diào)器之間的數(shù)據(jù)傳輸速率,常設(shè)置為115200b/s
Stopbits 1 設(shè)置每一個(gè)字節(jié)帶一個(gè)停止位
Flowcontrol hardware 使用CTS/RTS信號(hào)進(jìn)行流控
配置反向Telnet到調(diào)制解調(diào)器的主機(jī)名
命 令 描???? 述
Ip host <modem定義名> <端口號(hào)> <ip地址> 為反向Telnet到線路連接的Modem設(shè)置一個(gè)主機(jī)名 第5章 PPP協(xié)議配置和網(wǎng)絡(luò)訪問(wèn)控制
5.3 配置Cisco訪問(wèn)服務(wù)器
Router (config)# line <line-number> Router (config-line)# autoselect {arap | ppp | slip | during-login}
不同協(xié)議所用的幀標(biāo)志字節(jié)的十六進(jìn)制值
協(xié)議 幀標(biāo)志字節(jié)的十六進(jìn)制值
回車 0d
SLIP c0
ARAP 10
PPP 7E
Router (config-line)# autoselect during-login
?(注:可以直接提示用戶/口令的輸入,而不需要等待用戶敲回車鍵)
Router (config-line)# no exec
?(注:在用戶端不提供命令行提示功能)
5.3.1 啟用PPP
Router (config-if)# encapsulation ppp
Router (config-if)# encapsulation slip
5.3.2 配置專用或交互式PPP(和SLIP)接口模式
Router (config-if)# async mode {dedicated | interactive}
接口模式 描述
dedicated 強(qiáng)制使用SLIP或PPP
interactive 自動(dòng)選擇SLIP、PPP或EXEC。要先于線路模式autoselect {arap | ppp | slip | during-login}配置
5.3.3 配置本地設(shè)備接口編址方法
Router (config-if)# ip address <ip-address> <network-mask> Router (config-if)# ip unnumbered <interface-type> <interface-number>a
Router (config-if)# ip unnumbered loopback 0
5.3.4 配置遠(yuǎn)程(接受撥入服務(wù)端)設(shè)備接口編止方法
Router (config-if)# peer default ip address {ip-address | dhcp | pool}
Router (config)# ip local pool <pool-name> <starting-address> <end-address> Router (config)# interface async <接口號(hào)> Router (config-if)# peer default ip address pool <pool-name>?
Router (config)# ip helper <ip-address> Router (config)# ip dhcp-server <相應(yīng)的參數(shù)> Router (config-if)# peer default ip address dhcp
Router (config-if)# async dynamic <ip-address>? (注:可與固定地址配合使用,提示用戶輸入所需的IP地址和口令)
5.5 PAP和CHAP認(rèn)證
5.5.1 配置PAP認(rèn)證
Router (config-if)# encapsulation ppp
Router (config-if)# ppp authentication pap
Router (config-if)# dialer map <protocol> <next-hop-address> [name <hostname>] [broadcast] <dial-string>?
5.5.2 配置CHAP認(rèn)證
Router (config-if)# encapsulation ppp
Router (config-if)# ppp authentication chap
認(rèn)證返回信息 描述
03 CHAP認(rèn)證成功消息類型標(biāo)識(shí)符
04 CHAP認(rèn)證失敗消息類型標(biāo)識(shí)符
Id 序列號(hào),直接從應(yīng)答數(shù)據(jù)包中復(fù)制過(guò)來(lái)
Welcome in 某種簡(jiǎn)單的文本消息,為了讓用戶可讀
Authentication failure 或其它某個(gè)類似的文本消息,為了讓用戶可讀
Router (config-if)# encapsulation ppp
Router (config-if)# ppp authentication pap chap
或者:
Router (config-if)# ppp authentication chap pap
5.6 PPP反向回?fù)?br /> Router (config-if)# dialer enable-timeout <timeout>? (注:服務(wù)器端回?fù)軙r(shí)間控制)
Router (config-if)# dialer hold-queue <number of packets> timeout <4倍以上于服務(wù)器timeout>?
5.6.1 反向回?fù)苁侨绾喂ぷ鞯?br /> Router (config-if)# encapsulation ppp
Router (config-if)# ppp authentication {pap | chap}
Router (config-if)# dialer call-secure
Router (config-if)# ppp callback accept
5.6.2 配置異步線路的反向回?fù)?br /> Router (config)# username <username> password <password> [callback-dialstring <telephone-number>] [callback-line <line-number>] [callback-rotary <rotary-group-number>]
?(注:如果callback-dialstring 配置為空時(shí),路由器將從呼叫方接收反向回?fù)芩玫碾娫捥?hào)碼)
Router (config)# interface <interface-type> <interface-number> Router (config-if)# ppp callback accept
Router (config-if)# ppp callback initiate
Router (config)# line <line-number> Router (config-line)# callback forced-wait <seconds> Router (config-line)# script callback <script-nume> 異步反向回?fù)苊?br /> 命 令 描???? 述
ppp callback accept 該接口配置命令使用當(dāng)前接口能夠接受從支持RFC 1570規(guī)范的遠(yuǎn)程節(jié)點(diǎn)發(fā)出的反向回?fù)苷?qǐng)求
ppp callback initiate 該接口配置命令使路由器能夠?qū)σ粋€(gè)不支持RFC 1570規(guī)范、但能使自己為反向回?fù)苓M(jìn)入“應(yīng)答模式”的遠(yuǎn)程節(jié)點(diǎn)發(fā)起反向回?fù)?br /> callback forced-wait <seconds> 這個(gè)線路配置命令為反向回?fù)芙徽勀_本(chat-script)被用于外出的目標(biāo)線路之前,設(shè)置一段額外的等待時(shí)間(以秒計(jì))。該配置是為了照顧那些在再次接收呼叫之前需要一段較長(zhǎng)休息時(shí)間的客戶端調(diào)制解調(diào)器
script callback <script-nume> 該線路配置命令指定一個(gè)向調(diào)制解調(diào)器發(fā)送AT命令的交談腳本,以用于在目標(biāo)線路上發(fā)起反向回?fù)堋T撁羁杀挥糜贓XEC模式和PPP反向回?fù)?br /> /*配置反向回?fù)芊?wù)器*/
Router (config)# interface async <接口號(hào)> Router (config-if)# encapsulation ppp
Router (config-if)# dialer callback-secure
?(注:用于掛斷那些沒(méi)有正確地進(jìn)行反向回?fù)芘渲玫暮艚?#xff09;
Router (config)# dialer map <protocol> <next-hop-address> [name <hostname>] [broadcast] <dial-string> Router (config-if)# dialer-group < dialer-group-number >? (注:建立撥號(hào)映謝)
Router (config-if)# ppp callback accept
?(注:啟用反向回?fù)?#xff09;
Router (config-if)# ppp authentication {chap | ppp}
?(注:定義PPP認(rèn)證方式)
Router (config)# Map-class dialer <classname> Router (config-if)# dialer callback-server <username>? (注:根據(jù)撥號(hào)用戶認(rèn)證名和撥號(hào)映射中所規(guī)定的主機(jī)名來(lái)鑒定反向回?fù)芸蛻舻暮戏ㄐ?#xff09;
Router (config-if)# dialer enable-timeout <timeout>? (注:設(shè)置在發(fā)出返回?fù)芙兄胺?wù)器等待的時(shí)間)
Router (config-if)# dialer hold-queue <number of packets> timeout <seconds>?
/*配置反向回?fù)芸蛻魴C(jī)*/
Router (config)# interface async <接口號(hào)> Router (config-if)# encapsulation ppp
Router (config)# dialer map <protocol> <next-hop-address> [name <hostname>] [broadcast] <dial-string> Router (config-if)# dialer-group < dialer-group-number >?
Router (config-if)# ppp callback request
?(注:將路由器接口配置為反向回?fù)芸蛻魴C(jī))
Router (config-if)# ppp authentication {chap | ppp}
Router (config-if)# dialer hold-queue <number of packets> timeout <seconds>?
5.7 PPP壓縮
Cisco的壓縮方法 描???? 述
Predictor 它可以先判斷數(shù)據(jù)是否已被壓縮過(guò),對(duì)于已經(jīng)壓縮過(guò)的不再壓縮——立即轉(zhuǎn)發(fā);屬內(nèi)存密集型、占CPU少
Stacker 是一種基于Lempel-Ziv(LZ)的壓縮算法。Cisco 700系列路由器所支持的唯一一種算法;它對(duì)每種數(shù)據(jù)類型只發(fā)送一次,然后只發(fā)送各數(shù)據(jù)類型在數(shù)據(jù)流中的位置信息,接收方重新組裝數(shù)據(jù)據(jù)流;屬于CPU密集型、占內(nèi)存少
MMPC Microsoft點(diǎn)對(duì)點(diǎn)壓縮(MPPC)協(xié)議(RFC 2118),也是一種基于LZ的壓縮算法。它使Cisco路由器可以與Microsoft客戶可交換壓縮過(guò)的數(shù)據(jù)
TCP包頭壓縮 用以壓縮TCP包頭,支持HDLC、PPP、SLIP
5.7.1 配置PPP壓縮
Router (config-if)# compress [predictor | stac | mppc]
Router (config-if)# ip tcp header-compression [passive]
?(注:passive的意思是——不主動(dòng)對(duì)外出的數(shù)據(jù)包使用TCP包頭壓縮,但,如果接收的為此壓縮格式,就自動(dòng)啟用包頭壓縮)
5.8 PPP多鏈路捆綁(Multilink)
Router (config-if)# ppp multilink
Router# show ppp multilink
5.9 PPP的驗(yàn)證及排錯(cuò)
Router# show dialer <接口類型> <接口號(hào)> Router# debug ppp negotiation
5.13 ——IP地址協(xié)商
IPCP地址協(xié)商——測(cè)試結(jié)果
路由器設(shè)置 Win 95撥號(hào)設(shè)置 路由器的反應(yīng)
Async dynamic address(動(dòng)態(tài)地址設(shè)置) 指定了IP地址:10.115.0.13 承認(rèn)用戶指定的地址:10.115.0.13
Async dynamic addressIp unnumbered e0 指定了IP地址:10.13.13.13 承認(rèn)用戶指定的地址:10.13.13.13
Async dynamic addressPeer default ip address 10.115.0177(設(shè)置默認(rèn)地址) 指定了IP地址:10.13.13.13 經(jīng)過(guò)協(xié)商后,讓撥號(hào)用戶使用默認(rèn)地址:10.115.0.117
Async dynamic addressPeer default ip address pool(pool:10.115.0.111 through 10.115.0.119 指定了IP地址:10.115.0.13(在路由器本地IP集范圍內(nèi)) 經(jīng)過(guò)協(xié)商后,同意撥號(hào)用戶使用地址:10.115.0.116,因?yàn)樵摰刂肥潜镜豂P地址集的一部分
PPP認(rèn)證協(xié)商——測(cè)試結(jié)果
路由器的設(shè)置 Win 95撥號(hào)網(wǎng)絡(luò)設(shè)置 認(rèn)證的結(jié)果
Ppp authentication papCONFREQ:PAP 不需要加密CONFACK:PAP 通過(guò)
Ppp authentication papCONFREQ:PAP 需要加密CONFACK:MS-CHAP 失敗
Ppp authentication chapCONFREQ:CHAP 不需要加密CONFACK:CHAP 通過(guò)
Ppp authentication chapCONFREQ:CHAP 需要加密CONFACK:CHAP 通過(guò)
Ppp authentication chap papCONFREQ:CHAP 不需要加密CONFACK:CHAP 通過(guò)
Ppp authentication pap chapCONFREQ:PAPCONFREQ:CHAP 需要加密CONFACK:PAPCONFACK:CHAP 通過(guò)
本文轉(zhuǎn)自gauyanm 51CTO博客,原文鏈接:http://blog.51cto.com/gauyanm/229049,如需轉(zhuǎn)載請(qǐng)自行聯(lián)系原作者
總結(jié)
以上是生活随笔為你收集整理的BCRAN课本命令回顾的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: java线程(2)--同步和锁
- 下一篇: ORACLE基础学习-RMAN应用-控制