1、進入特權模式 enable
router > enable
router #
2、進入全局配置模式 configure terminal
router > enable
router #configure terminal
router (conf)#
3、交換機命名 hostname routera 以routerA為例
router > enable
router #configure terminal
router(conf)#hostname routerA
routera (conf)#
4、配置使能口令 enable password cisco 以cisco為例
router > enable
router #configure terminal
router(conf)#hostname routerA
routerA (conf)# enable password cisco
5、配置使能密碼 enable secret ciscolab 以cicsolab為例
router > enable
router #configure terminal
router(conf)#hostname routerA
routerA (conf)# enable secret ciscolab
6、進入路由器某一端口 interface fastehernet 0/17 以17端口為例
router > enable
router #configure terminal
router(conf)#hostname routerA
routerA (conf)# interface fastehernet 0/17
routerA (conf-if)#
進入路由器的'某一子端口 interface fastethernet 0/17.1 以17端口的1子端口為例
router > enable
router #configure terminal
router(conf)#hostname routerA
routerA (conf)# interface fastehernet 0/17.1
7、設置端口ip地址信息
router > enable
router #configure terminal
router(conf)#hostname routerA
routerA(conf)# interface fastehernet 0/17 以17端口為例
routerA (conf-if)#ip address 配置交換機端口ip和子網掩碼
routerA (conf-if)#no shut 是配置處於運行中
routerA (conf-if)#exit
8、查看命令 show
router > enable
router # show version 察看系統中的所有版本信息
show interface vlan 1 查看交換機有關ip 協議的配置信息
show running-configure 查看交換機當前起作用的配置信息
show interface fastethernet 0/1 察看交換機1接口具體配置和統計信息
show mac-address-table 查看mac地址表
show mac-address-table aging-time 查看mac地址表自動老化時間
show controllers serial + 編號 查看串口類型 show ip router 查看路由器的路由表
9、路由器telnet遠程登錄設置
router>enable
router #configure terminal
router (conf)#hostname routerA
routerA (conf)#enable password cisco 以cisco為特權模式密碼
routerA (conf)#interface fastethernet 0/1 以17端口為telnet遠程登錄端口
routerA (conf-if)#ip address
routerA (conf-if)#no shut
routerA (conf-if)#exit
routerA (conf)line vty 0 4 設置0-4 個用户可以telnet遠程登陸
routerA (conf-line)#login
routerA (conf-line)#password edge 以edge為遠程登錄的用户密碼
10、配置串口參數
兩台路由器通過串口連接需要一個做為DTE,一個做為DCE。DCE設備要向DTE設備提供時鐘頻率和帶寬。
DCE配置:
router>enable
router #configure terminal
router (conf)#hostname routerA
routerA(conf)#interface serial 0/0
routerA(conf_if)#clock rate 64000 提供時鐘頻率為64000
routerA(conf_if)#bandwidth 64 提供帶寬為64
DTE配置:路由器串口配置ip地址
router>en
router #configure terminal
router (conf)#hostname routerB
routerB(conf)#interface serial 0/0
routerB(conf_if)#ip address