[CISCO] 簡單配置 Telnet 服務
一、Introduction
Telnet 協議是一種應用層協議,使用於網際網路及區域網中,使用虛擬終端機的形式,提供雙向、以文字字串為主的互動功能。屬於 TCP/IP 協議族的其中之一,是 Internet 遠端登錄服務的標准協議和主要方式,常用於網頁伺服器的遠端控制,可供使用者在本地主機執行遠端主機上的工作。
傳統Telnet會話所傳輸的資料並未加密,帳號和密碼等敏感資料容易會被竊聽,因此很多伺服器都會封鎖Telnet服務,改用更安全的SSH。
二、Prerequisites
Requirements
沒有什么特殊的要求
Components Used
CISCO PACKET Tracer Student 6.2
三、Configure Telnet
First:Connection with Ethernet
Second:Configure The IP address for the routing interface
enable // 進入特權模式
configure terminal // 打開 terminal 終端
int f0/0 //進入快速以太網接口0/0
ip address 192.168.1.1 255.255.255.0 //配置IP地址
no shutdown //開啟接口
exit // 返回terminal
Finished:Configure Telnet Password And Enable Password
enable // 進入特權模式
configure terminal // 打開 terminal 終端
line vty 0 4 //“vty 0 4”表示 vty 0 到 vty 4,共 5 個虛擬終端
password CISCO //配置密碼
exit
enable password CISCO //配置進入到路由器特權模式的密碼
end // 結束返回 enable
**Notice: **只有一個虛擬終端的話就只能等待連接中的用戶斷開連接,等待的那個人才能再連接。共 5 個虛擬終端,五個用戶同時連接。多余用戶繼續等待!
四、Connectivity testing
C:>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time<1ms TTL=255
Reply from 192.168.1.1: bytes=32 time<1ms TTL=255
Reply from 192.168.1.1: bytes=32 time<1ms TTL=255
Reply from 192.168.1.1: bytes=32 time<1ms TTL=255
Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% lo
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
//以上表明計算機能 ping 通路由器
C:>telnet 192.168.1.1
//telnet 路由器以太網卡上的 IP 地址
User Access Verification
Password:
Router>enable
Password:
Router#exit
//輸入 vty 的密碼 CISCO、輸入 enable 的密碼 CISCO,能正常進入路由器的特權模式。