CCNP之BCRAN实验文档
将配置文件传入路由器后,建立反向telnet连接到modem,测试AT指令的作用:
先要确保路由器的e0口的协议up起来!
CentralA#modem
Trying modem (10.115.0.115, 2001)... Open
User Access Verification
Password:
Password OK
AT
OK
尝试教材77页的AT指令
一、使用MODEM自动发现功能:
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
关闭debug功能:
CentralA#no debug all
All possible debugging has been turned off
二、练习在路由器上建立一条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
三、查看相关的配置结果:
CentralA#show run
!
hostname CentralA
modemcap entry tplink56:FD=&f:AA=s0=1:CD=&c1:DTR=&d2:SPD=&b1:DTE=115200:TPL=default
查看modemcap数据库中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
关闭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来发现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发现功能恢复到实验前的设置,确信此时可以找到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
五、保存当前配置:
CentralA#copy run start
Destination filename [startup-config]?
Building configuration...
*senbahot@hotmail.com