分享
 
 
 

配置MODEM的问题

王朝other·作者佚名  2008-05-19
窄屏简体版  字體: |||超大  

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

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有