用户配置需求说明:
总公司PC能够使用PSTN模拟电话线路通过modem拨号至分公司的Cisco 2611 console口,从而进行Exec管理操作。
实现方法与步骤:
1、 将Modem与PC,通过“HyperTerminal”对Modem进行初始化配置。具体初始化内容如下:
AT&F0: Set to Factory Defaults(no Flow Control).
AT&S0=1: Auto Answer on first ring.
AT&C1: Uses the actual state of the carrier from the remote modem for the Data Carrier Detect.
AT&D2: DTR going off triggers modem disconnect,sends OK result code, and disables auto answer while DTR is OFF.
AT&K0: Disable Data Compression.
AT&W: Store configuration to NVRAM.
(<b>Note:</b><b>不做以上配置或做了不一致的配置并不代表无法实现与</b><b>console</b><b>口的正常连接</b>)
<b> </b>
2、 使用RJ45-to-DB9的转换头,用直连线接Cisco2611的console口和转换头的RJ45口,DB9接头连Modem的RS232口,再将号码为”51000000”的模拟话线接入Modem的”Line”口。(如果Modem是DB25口,则使用RJ45-to-DB25转接头)
3、 为了登陆后的安全,再Cisco2611中做如下配置:
a) 配置Idle time(此例中为2分钟)
Cisco2611(config)#console timeout 2
或者
Cisco2611(line-con)#exec-timeout 2 0
b) 配置enable pass(此例中为test)
Cisco2611(config)#enable password test
c) 配置line console的连接速率(此例中为115200 byte/s)
Cisco2611(line-con)#speed 115200
4、 远程PC通过HyperTerminal建立拨号连接。
a)创建拨号连接,拨叫号码为模拟电话(此例中假设为02151000000)
b)更改拨叫配置。速率为115200bps,No Data Compression,No Flow Control.
c)数据位8,无奇偶校验,停止位1。.
5、 拨叫后出现光标闪烁并能进行输入操作,表示连接成功,输入enable密码后即可进行操作。如果无法成功连接,建议检查modem的初始配置和速率、流控等参数是否正确。
本文转自 intelboy 51CTO博客,原文链接:http://blog.51cto.com/intelboy/32675,如需转载请自行联系原作者