Chinaunix

标题: 在路由器上使用telnet的问题 [打印本页]

作者: chenyan1206    时间: 2007-07-19 08:48
标题: 在路由器上使用telnet的问题
远程登陆了一台路由器,
在上面使用telnet smth.org(60.2.251.8)
无论是用域名还是ip都登陆不上去
但是可以ping的通ip,
看:#ping 60.2.251.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 60.2.251.8, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/41/64 ms

谁能帮我解释一下其中的道理呢?:(
作者: pzr123    时间: 2007-07-19 09:31
line vty 0 4
password 11111
login
!

你少了这个配置吧
作者: ssffzz1    时间: 2007-07-19 12:38
出错提示。
作者: 优游然    时间: 2007-07-20 15:04
那就是不允许远程登录啦。。
在路由器上配置下就可以啦
作者: chenyan1206    时间: 2007-07-26 15:46
原帖由 pzr123 于 2007-7-19 09:31 发表
line vty 0 4
password 11111
login
!

你少了这个配置吧


不少的啊!

tyj#show run
Building configuration...

Current configuration : 1155 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname tyj
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$5SSw$o4ZE6w3EE4FTqFwtAJfpk.
enable password fttyj
!
no network-clock-participate slot 1
no network-clock-participate wic 0
no aaa new-model
ip subnet-zero
ip cef
!
!
!
no ftp-server write-enable
!
!
!
!
interface FastEthernet0/0
ip address 10.166.9.44 255.255.255.0
speed auto
full-duplex
no mop enabled
!
interface FastEthernet0/1
ip address 10.149.42.1 255.255.255.0 secondary
ip address 10.231.10.1 255.255.255.0
speed auto
full-duplex
no mop enabled
!
ip classless
ip route 0.0.0.0 0.0.0.0 10.166.9.1
ip http server
!
dialer-list 1 protocol ip permit
arp 10.149.42.53 0016.ecbf.55c4 ARPA
arp 10.149.42.49 0016.ecba.544e ARPA
arp 10.149.42.48 0016.ecba.d195 ARPA
arp 10.149.42.51 0016.ec85.7f9b ARPA
arp 10.149.42.50 0016.ec85.8138 ARPA
arp 10.149.42.120 0016.ecba.d1a1 ARPA
arp 10.149.42.80 0016.ecbf.6144 ARPA
arp 10.149.42.65 0016.ecba.5707 ARPA
!
line con 0
line aux 0
line vty 0 4
password fttyj
login
!
!
!
end
作者: chenyan1206    时间: 2007-07-26 15:48
原帖由 ssffzz1 于 2007-7-19 12:38 发表
出错提示。




tyj#telnet 60.2.251.8
Trying 60.2.251.8 ...
% Connection timed out; remote host not responding

tyj#
作者: chenyan1206    时间: 2007-07-26 15:48
原帖由 优游然 于 2007-7-20 15:04 发表
那就是不允许远程登录啦。。
在路由器上配置下就可以啦


应该如何配置呢?
作者: ssffzz1    时间: 2007-07-26 18:29
60.2.251.8

这个地址怎么没看见在配置文件中出现。
作者: chenyan1206    时间: 2007-08-01 15:45
这个地址怎么没看见在配置文件中出现。

这个嘛,是个测试ip地址。你telnet试试就知道了。是smth.org

我有默认路由的呀 ip route 0.0.0.0 0.0.0.0 10.166.9.1
作者: ssffzz1    时间: 2007-08-01 16:17
哦,我的登录成功了啊。
水木社区
作者: devilzhang    时间: 2007-08-01 16:36
要配置enable密码。否则开启了vty 0 4也能telnet
作者: chenyan1206    时间: 2007-08-13 08:39
原帖由 devilzhang 于 2007-8-1 16:36 发表
要配置enable密码。否则开启了vty 0 4也能telnet

什么是enable密码呢?什么意思呢?
作者: 赞比亚人    时间: 2007-08-13 09:14
原帖由 chenyan1206 于 2007-8-13 08:39 发表

什么是enable密码呢?什么意思呢?

boot-end-marker
!
enable secret 5 $1$5SSw$o4ZE6w3EE4FTqFwtAJfpk.
enable password fttyj
!
no network-clock-participate slot 1


看样子已经设置了enable密码

我已经登陆成功了阿,已经解决了?
作者: nfshanq    时间: 2007-08-14 18:43
ping 的通不等于一定能 telnet到。

你用router作为telnet client和 本地的配置已经没有关系了。
我建议你去查查你的 NAT的设备把 。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2