分享
 
 
 

1750做接入服务器配置实例

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

用17500的aux口传异步拨号:

(config)# line aux 0

(config-line)# login

(config-line)# password cisco

(config-line)# speed 115200

(config-line)# flowcontrol hardware

(config-line)# stopbits 1

(config-line)# transport input all

(config-line)# modem inout

再配置反向telnet:

(config)# int lo0

(config-if)# ip address 1.1.1.1 255.255.255.0

(config)# ip host modem 2005 1.1.1.1

用show line看到aux口的线序号是5,那么反向telnet的端口就是2000+5=2005

可以用where命令查看打开的对话!

上面配置好以后,将接1750上Modem设为ats0=1(最开始没有将这个设为1,所以一直拨不通!),对方的Modem就可以拨号成功,但是按回车以后还是没有反应。不能进入路由器!因为没有对异步口进行配置!

要实现远程路由器管理:

(config)# int asy 5

(config-if)# en ppp

(config-if)# asyn mode dedicated

对远程用户分配IP地址:

(config)# int asy 5

(config-if)# peer default ip address 192.168.10.2

需要对拨号用户使用地址池,可以这样:

(config)# ip local pool wolf 192.168.0.50 192.168.0.254

(config)# int asy 5

(config-if)# peer default ip address pool wolf

不过好象要重启路由器才有效!

Building configuration...

version 12.1

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname Router

!

enable password cisco

!

memory-size iomem 25

ip subnet-zero

ip host modem 2005 1.1.1.1

!

interface Loopback0

ip address 1.1.1.1 255.255.255.0

!

interface Serial0

no ip address

shutdown

!

interface FastEthernet0

no ip address

shutdown

speed auto

!

interface Async5

ip address 192.168.0.1 255.255.255.0

encapsulation ppp 这个一定要!不然看到的是乱码!

async mode dedicated 一定要!若改成async mode inter,对方拨号时总是停在检验用户名和密码那里!若两个都不设,拨号不上!

peer default ip address 192.168.0.2

!

ip classless

no ip http server

!

line con 0

transport input none

line aux 0

password cisco

login

modem InOut

transport input all

stopbits 1

speed 115200

flowcontrol hardware

line vty 0 4

login

!

no scheduler allocate

end

以上配置的效果就是:对方拨号,不需要用户名和密码,连结成功,就和拨96169一样!

要让拨号用户加上认证可以这样做:

(config)# username wolf password igpwwk

(config)# int asy 5

(config-if)# ppp au pap

也可以使用chap认证:

(config-if)# ppp au chap

或者同时使用:

(config-if)# ppp au chap ppp (config-if)# ppp au ppp chap

以下是将串口模拟成异步口:

Building configuration...

version 12.1

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname Router

!

enable password cisco

!

username wolf password 0 igpwwk

!

memory-size iomem 25

ip subnet-zero

ip host modem 2001 1.1.1.1

!

interface Loopback0

ip address 1.1.1.1 255.255.255.0

!

interface Serial0

physical-layer async

ip address 192.168.0.1 255.255.255.0

encapsulation ppp

async mode dedicated

peer default ip address 192.168.0.10

ppp authentication chap

!

interface FastEthernet0

no ip address

shutdown

speed auto

!

interface Async5

no ip address

!

ip classless

no ip http server

!

line con 0

transport input none

line 1

password cisco

login

modem InOut

transport input all

stopbits 1

speed 115200

flowcontrol hardware

line aux 0

login

transport input all

speed 115200

line vty 0 4

login

!

End

Router#sh line

Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int

* 0 CTY - - - - - 2 0 0/0 -

A 1 TTY 115200/115200- inout - - - 2 7 0/0 Se0

5 AUX 115200/115200- - - - - 1 0 0/0 -

6 VTY - - - - - 0 0 0/0 -

7 VTY - - - - - 0 0 0/0 -

8 VTY - - - - - 0 0 0/0 -

9 VTY - - - - - 0 0 0/0 -

10 VTY - - - - - 0 0 0/0 -

Line(s) not in async mode -or- with no hardware support: 2-4

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
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- 王朝網路 版權所有