2011年3月4日 星期五

轉貼-【CCNA】為何無法 telnet 進 cisco router ?

http://blog.xuite.net/tolarku/blog/20423716

Cisco Router 預設定遠端登入到 router 是需要密碼的,但是一開始的時候沒有設定密碼,所以造成無法利用 Telnet 登入的情形,該怎麼做呢?簡單 6 步驟解決他。

預設設定
line con 0
line vty 0 4
login

到遠端的 router 用 console 設定下列項目

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#line vty 0 ?
<1-15> Last Line number

Router(config)#line vty 0 15
Router(config-line)#password lala
Router(config-line)#login

註:是不是0~15 要看你的 router 顯示的範圍唷

設定OK了,遠端登入看看

tolarku#telnet 10.30.1.1
Trying 10.30.1.1 ...


User Access Verification

Password:
Router>
Router>en
% No password set
可以登入卻沒辦法進入特權模式

在遠端路由器設定再加入
Router(config)#enable secret mimi

Password:
Router#

這樣子就可以遠端用 telnet 登入並進入到特權模式



把上述過程彙整一下,在要用 telnet 登入的 router 裡執行下列命令

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#line vty 0 15
Router(config-line)#password lala
Router(config-line)#login
Router(config)#enable secret mini

上面的 lala 跟 mini 當然隨你個人的喜好去設定密碼囉!


再來補充一下,怎麼看你的 router 有哪些人遠端用 telnet 登入呢?

首先用 show user 看目前有哪些人在線上
Router#show user
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
67 vty 0 idle 00:00:05 10.30.1.253

Interface User Mode Idle Peer Address

沒有留言:

張貼留言