cisco2600路由器常用操作項

Cisco 2600路由器的基本操作:

從用戶模式進入特權模式
router>enable
router#
從特權模式進入全局配置模式
router#config terminal
router(config)#
爲路由器配置主機名
router(config)#hostname A
A(config)#
進入路由器的以太口配置模式
A(config)#interface fastethernet 0/0
A(config-if)#

l       查看Cisco 2600路由器的串口狀態
router#show interface serial 0/0
serial 0/0 is up
line protocol is up
可操作狀態………serial 0/0 is up
line protocol is up
連接問題…………serial 0/0 is up
line protocol is down
接口問題…………serial 0/0 is down
line protocol is down
禁用狀態…………serial 0/0 is administratively down line protocol is down

192.168.1.1
192.168.2.2
192.168.2.1
192.168.3.1
192.168.1.10
192.168.3.10
l       靜態路由的實現
router(config)#hostname A
A(config)#interface f0/0
A(config-if)#ip address ip地址 子網掩碼

A
(config-if)#no shutdown
B(config)#interface
f0/1
B(config-if)#ip address ip地址 子網掩碼

B
(config-if)#no shutdown
A(config)#ip route 目標網絡地址 子網掩碼 下一跳地址
B(config)#ip route 目標網絡地址 子網掩碼 下一跳地址
l       配置默認路由
route(config)#ip route 0.0.0.0  0.0.0.0
下一跳地址

l       查看路由表
router#show ip route
其中C代表直連的網絡,S代表靜態的路由,S*代表默認的路由

●    在路由器上顯示ARP緩存表
   router#show ip arp
●     查看路由器的版本信息
   router#show version
 
Cisco 2600路由器配置密碼:

l       配置控制檯密碼
router (config)#line console 0
router (config-line)#login
router (config-line)#password cisco

l       配置特權模式密碼
router (config)#enable password cisco

l       配置安全的加密密碼
router (config)#enable secret 1234

l       配置路由器標識
router(config)#banner motd  $This is ***** company
s Router! Please dont change the configuration whithout permissions$

l       對所有密碼進行加密
router (config)#service password-encryption

l       配置超時
router(config)#line console 0
router(config-line)#exec-timeout 0 0    //
第一個0代表分鐘,第二個0代表秒   此處0 0爲永不超時

l       顯示同步
router(config)#line console 0
router(config-line)#logging synchronous

l       配置禁用DNS
router(config)#no ip domain-lookup

l       利用三臺路由器實現靜態路由和默認路由

  假設從左往右依次有a b c 3個路由器


routerB(config)#ip route 目標網段 子網掩碼 下一跳地址

  routerA(config)#ip route 0.0.0.0 0.0.0.0 下一跳地址

如果router之間用S線連接的話,要注意設置時鐘

Routerconfig-if#clock rate

l路由器密碼恢復
重啓路由器按Ctrl+Break鍵進入ROM Monitor 模式
rommon 1>confreg 0x2142
rommon 2>reset
重啓後選擇no
router>enable
router#copy startup-config running-config
router#config terminal
router(config)#enable password
cisco
router(config)#config-register 0x2102
router#copy running-config startup-config
router#reloa
 
l   上傳路由器上的IOS

Router#show flash

Router#copy flash tftp

 Source filenema []? c2600-ipbase-mz.123-6e.bin

 Address or name of remote host []?192.168.1.100    //主機地址

 Destination filename [c2600-ipbase-mz.123-6e.bin]?

 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!........

l   下載IOS到路由器

Router#copy tftp flash

l        上傳路由器上的配置文件

Router#copy nvram:startup-config tftp:

Address or name of remote host []? 192.168.1.100

Destination filename [router-config]?

!!

l       下載配置文件到路由器

Router#copy tftp:startup-config nvram

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章