
一、場景一
路由器先關機,插入
HWIC-8A
裝置
然後接八爪線(綠色)
1、基本配置
hostname xxx // 伺服器主機名
enable secret tequanmima // 特權模式加密密碼
no ip domain-lookup // 關閉域名解析,防止長等待
2、配置環回接口
interface loopback0
ip address 1.1.1.1 255.255.255.0 // 建立環回口
3、了解TTY編号
show line
根據編号進行下一步
4、配置tty線路
line tty 最小編号 最大編号 // 配置線路
password ttymima // 配置登入密碼
login // 登入密碼檢驗【no login 取消登入檢查】
logging synchronous // 開啟日志輸出同步,避免使用者的資料中途被日志資訊隔開
exec-timeout 0 0 // 抑制登入逾時
5、配置主機名到線路的映射
exit // 退出線路模式
ip host 主機名 端口号 1.1.1.1 // 端口号 = 線路号 + 2000
【ip host r1 2019 1.1.1.1】
6、檢視映射關系
show hosts
7、接入終端伺服器
從終端登入伺服器登入到調試裝置:
以下三種方法都行
telnet ip address 端口号
telnet 主機名
主機名
從調試裝置傳回終端伺服器:
同時按Ctrl+Shift+6,松手,再按X【此時線路會話保留,并未釋放】
清除tty線路到空閑狀态:
clear line tty 線路号
檢視任何線路的狀态資訊:
show line