特權視圖 router# /在普通模式下輸入enable 全局視圖 router(config)# /在特權模式下輸入config t 接口視圖 router(config-if)# /在全局模式下輸入int 接口名稱 例如int s0或int e0 路由協議視 " />
2024年3月18日發(作者:策劃活動方案)

CISCO命令全集 - 思科命令匯總
各個視圖模式介紹:
普通視圖 router>
特權視圖 router# /在普通模式下輸入enable
全局視圖 router(config)# /在特權模式下輸入config t
接口視圖 router(config-if)# /在全局模式下輸入int 接口名稱 例如int s0或int e0
路由協議視圖 router(config-route)# /在全局模式下輸入router 動態路由協議
名稱
1、基本配置:
router>enable /進入特權模式
router#conf t /進入全局配置模式
router(config)# hostname xxx /設置設備名稱就好像給我們的計算機起個名字
router(config)#enable password /設置特權口令
router(config)#no ip domain lookup /不允許路由器缺省使用DNS解析命令
router(config)# Service password-encrypt /對所有在路由器上輸入的口令進行暗
文加密
router(config)#line vty 0 4 /進入設置telnet服務模式
router(config-line)#password xxx /設置telnet的密碼
router(config-line)#login /使能可以登陸
router(config)#line con 0 /進入控制口的服務模式
router(config-line)#password xxx /要設置console的密碼
router(config-line)#login /使能可以登陸
2、接口配置:
router(config)#int s0 /進入接口配置模式 rial 0 端口配置(如果是模塊化的路由
器前面加上槽位編號,例如rial0/0 代表這個路由器的0槽位上的第一個接口)
router(config-if)#ip add /添加ip 地址和掩碼
router(config-if)#enca hdlc/ppp 捆綁鏈路協議 hdlc 或者 ppp 思科缺省串口封
裝的鏈路層協議是HDLC所以在show run配置的時候接口上的配置沒有,如果要封裝為
別的鏈路層協議例如PPP/FR/X25就是看到接口下的enca ppp或者enca fr
本文發布于:2024-03-18 13:36:31,感謝您對本站的認可!
本文鏈接:http://www.newhan.cn/zhishi/a/1710740191164908.html
版權聲明:本站內容均來自互聯網,僅供演示用,請勿用于商業和其他非法用途。如果侵犯了您的權益請與我們聯系,我們將在24小時內刪除。
本文word下載地址:思科命令全集匯總.doc
本文 PDF 下載地址:思科命令全集匯總.pdf
| 留言與評論(共有 0 條評論) |