Cisco Route IOS設定 (一)

一、Cisco 路由器四種設定模式

使用者模式:  >
管理者模式:  #
組態模式:   (config)#
介面管理模式:(config-if)#
            (config-router)#

二、路由器有三種密碼可以設定即:console(使用者)密碼、管理者模式密碼、遠端登入密碼。
    1)設定console密碼
Router>en
Router#conf t
Router(config)#line console 0
Router(config-line)#password ccna
Router(config-line)#login

   2)設定管理者密碼
Router>en
Router#conf t
Router(config)# enable password ccna12
不用下login使密碼生效,即可離開。
預設情況在show run會看到沒有加密密碼,可用secret來加密管理者密碼
Router(config)# enable secret ccna34
Router(config)# exit   二次
   注意此時我們是對ccna34這個新管理者密碼加密,舊的管理者密碼仍然存在,但登入是以新的加密管理者密碼登入

   3)其他密碼加密:可使用service password-encryption 來對組態檔中全部密碼加密
Router(config)# service password-encryption
Router(config)# exit
Router# show run
   可發現密碼全部加密了

三、設定路由器IP
   查詢路由器所有網路介面狀態
Router# show ip int brief
   設定ip假設只有fastethernet0/0   fastethernet0/1
Router(config)# int fa0/0
Router(config-if)# ip address 192.168.1.254 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# int fa0/1
Router(config-if)# ip address 192.168.2.254 255.255.255.0
Router(config-if)# no shutdown
   中間會看到網路介面啟動訊息,記得下no shutdown才會啟動介面,預設是不啟動。

四、

0 意見:

張貼留言