国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 網(wǎng)絡(luò)通信 > 正文

配置MODEM的問題

2019-11-04 20:38:57
字體:
供稿:網(wǎng)友

  CCNP之BCRAN實驗文檔
  將配置文件傳入路由器后,建立反向telnet連接到modem,測試AT指令的作用:
  先要確保路由器的e0口的協(xié)議up起來!
  CentralA#modem
  Trying modem (10.115.0.115, 2001)... Open
  
  
  User access Verification
  
  PassWord:
  Password OK
  AT
  OK
  
  嘗試教材77頁的AT指令
  
  一、使用MODEM自動發(fā)現(xiàn)功能:
  CentralA#clear line 1
  [confirm]
  [OK]
  CentralA#
  CentralA#debug confmodem
  01:21:56: TTY1: Modem command: --AT&F&C1&D2S0=1H0--
  01:21:59: TTY1: Modem configuration sUCceeded
  01:21:59: TTY1: Detected modem speed 115200
  01:21:59: TTY1: Done with modem configuration
  關(guān)閉debug功能:
  CentralA#no debug all
  All possible debugging has been turned off
  
  二、練習(xí)在路由器上建立一條modemcap記錄并將其作用在1號線路上:
  CentralA(config)#modemcap edit tplink56 autoanswer s0=1
  CentralA(config)#modemcap edit tplink56 factory-default &f
  CentralA(config)#modemcap edit tplink56 speed 115200 &b1
  CentralA(config)#modemcap edit tplink56 carrier-detect &c1
  CentralA(config)#modemcap edit tplink56 dtr &d2
  CentralA(config)#modemcap edit tplink56 template default
  CentralA(config)#line 1
  CentralA(config-line)#modem autoconfigure type tplink
  
  三、查看相關(guān)的配置結(jié)果:
  CentralA#show run
  !
  hostname CentralA
  modemcap entry tplink56:FD=&f:AA=s0=1:CD=&c1:DTR=&d2:SPD=&b1:DTE=115200:TPL=default
  
  查看modemcap數(shù)據(jù)庫中default的配置:
  CentralA#show modemcap default
  Modemcap values for default
  Factory Defaults (FD): &F
  Autoanswer (AA): S0=1
  Carrier detect (CD): &C1
  Drop with DTR (DTR): &D2
  Hardware Flowcontrol (HFL): [not set]
  Lock DTE speed (SPD): [not set]
  DTE locking speed (DTE): [not set]
  Best Error Control (BER): [not set]
  Best ComPRession (BCP): [not set]
  No Error Control (NER): [not set]
  No Compression (NCP): [not set]
  No Echo (NEC): E0
  No Result Codes (NRS): Q1
  Software Flowcontrol (SFL): [not set]
  Caller ID (CID): [not set]
  On-hook (ONH): H0
  Off-hook (OFH): H1
  Miscellaneous (MSC): [not set]
  Template entry (TPL): [not set]
  Modem entry is built-in.
  
  查看我們所添加的條目:
  CentralA#show modemcap tplink56
  Modemcap values for tplink56
  Factory Defaults (FD): &f
  Autoanswer (AA): s0=1
  Carrier detect (CD): &c1
  Drop with DTR (DTR): &d2
  Hardware Flowcontrol (HFL): [not set]
  Lock DTE speed (SPD): &b1
  DTE locking speed (DTE): 115200
  Best Error Control (BER): [not set]
  Best Compression (BCP): [not set]
  No Error Control (NER): [not set]
  No Compression (NCP): [not set]
  No Echo (NEC): E0
  No Result Codes (NRS): Q1
  Software Flowcontrol (SFL): [not set]
  Caller ID (CID): [not set]
  On-hook (ONH): H0
  Off-hook (OFH): H1
  Miscellaneous (MSC): [not set]
  Template entry (TPL): default
  
  CentralA#debug modem
  關(guān)閉modem的電源,再打開電源,觀察modem與路由器的通訊過程:
  Modem control/process activation debugging is on
  00:51:27: TTY1: DSR came up
  00:51:27: tty1: Modem: IDLE->READY
  00:51:27: TTY1: EXEC creation
  00:51:27: TTY1: set timer type 10, 30 seconds
  00:51:30: TTY1: DSR was dropped
  00:51:30: TTY1: Quickly dropping DTR
  00:51:30: tty1: Modem: READY->CARDROP
  00:51:30: TTY1: set timer type 10, 30 seconds
  00:51:30: TTY1: set timer type 10, 30 seconds
  00:51:32: TTY1: Line reset by "Exec"
  00:51:32: TTY1: Modem: CARDROP->HANGUP
  00:51:32: TTY1: destroy timer type 0
  00:51:32: TTY1: destroy timer type 1
  00:51:32: TTY1: destroy timer type 3
  00:51:32: TTY1: destroy timer type 4
  00:51:32: TTY1: destroy timer type 2
  00:51:32: TTY1: dropping DTR, hanging up
  00:51:32: tty1: Modem: HANGUP->IDLE
  
  觀察路由器在線路1上使用條目tplink56來發(fā)現(xiàn)modem的過程:
  CentralA#debug confmodem
  Modem Configuration Database debugging is on
  00:51:38: TTY1: autoconfigure probe started
  00:51:38: TTY1: Modem command: --AT&f&c1&d2&b1s0=1H0--
  00:51:41: TTY1: Modem configuration succeeded
  00:51:46: TTY1: locking speed (115200) response ---OK---
  00:51:46: TTY1: locked DTE speed at 115200
  00:51:46: TTY1: Done with modem configuration
  
  四、將路由器的modem發(fā)現(xiàn)功能恢復(fù)到實驗前的設(shè)置,確信此時可以找到modem:
  CentralA(config)#line 1
  CentralA(config-line)#modem autoconfigure discovery
  CentralA(config-line)#exit
  CentralA(config)# no modemcap entry tplink56
  CentralA(config)#exit
  CentralA#debug confmodem
  Modem Configuration Database debugging is on
  02:26:35: TTY1: Modem type is default
  02:26:35: TTY1: Modem command: --AT&F&C1&D2S0=1H0--
  02:26:38: TTY1: Modem configuration succeeded
  02:26:38: TTY1: Detected modem speed 115200
  02:26:38: TTY1: Done with modem configuration
  
  五、保存當(dāng)前配置:
  CentralA#copy run start
  Destination filename [startup-config]?
  Building configuration...
  
  *senbahot@hotmail.com


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 若尔盖县| 岑溪市| 项城市| 安图县| 虎林市| 东城区| 饶河县| 济源市| 伽师县| 宁晋县| 民丰县| 耿马| 长葛市| 天柱县| 惠东县| 汝州市| 集贤县| 平昌县| 海兴县| 江陵县| 酒泉市| 龙泉市| 个旧市| 台南县| 阳曲县| 社会| 常州市| 福州市| 宁海县| 咸宁市| 榆树市| 濉溪县| 克东县| 玛多县| 汤阴县| 南溪县| 正宁县| 刚察县| 仙居县| 靖安县| 绥德县|