路由器基本操作

 

版權聲明:原創作品,謝絕轉載!否則將追究法律責任。
路由器基本配置導航--
 
使用console線配置路由器:
1.       將console線連接主機到路由器
2.       新建終端通訊
a)         所有程序
b)         附件
c)         通訊
d)         超級終端
3.       填入新建連接名稱
4.       “連接時使用”中選擇com口
5.       點擊還原成默認值
6.       按確定後敲“回車”鍵可開始進行配置
 
路由器模式 :
用戶模式:對路由器進行有限的檢查,遠程訪問
Router>
 
特權模式:可對路由器進行詳細的檢查和測試,文件處理,遠程訪問。
Router#
 
通用配置模式--簡單的配置命令
Router(config)#
用戶模式進入特權模式
Router>enable
Router#
特權模式進入通用配置模式
Router# configure terminal
退出到上一模式
Router#exit
 
配置它的一般參數,包括:
修改主機名 :hostname  
特權口令 :enable  password
 
其中 Console 的secret、 password的設置:
Router(config)# enable  secret  <######>
Router(config)# enable password  <#######>
 
Virtual Terminor 的password的設置:
Router(config)#line  console  0
Router(config)# Line  vty  0  4
Router(config-line)#Password  <######>
 
Host name的設置:
Router(config)#hostname <hostname>
 
查看現在的配置:
Router#show  running-config
 
查看端口狀態:
Router#sho ip interface brief
Interface                  IP-Address      OK? Method Status                Protocol
Ethernet0                 192.168.100.2   YES NVRAM  up                    up     
Loopback0                172.16.1.1      YES manual up                      up     
Serial0                     172.16.0.5      YES manual up                        up     
Serial1                    unassigned      YES NVRAM  administratively down down   
 
查看串口是DCE還是DTE
Router#show controllers serial <0-1>
prasit#show controllers serial 0
HD unit 0, idb = 0x1D3A2C, driver structure at 0x1DAFE8
buffer size 1524 HD unit 0, V.35 DCE cable, clockrate 64000
spicey#show controllers serial 1
HD unit 1, idb = 0x153E94, driver structure at 0x15A1F8
buffer size 1524 HD unit 1, V.35 DTE cable
 
 
配置以太網口IP地址:
Router>enable
Router# configure terminal
Router(config)#interface ethernet 0
Router(config-if)#no shutdown
Router(config-if)#ip address 192.168.2.50-55 255.255.255.0
 
配置串口地址
Router>enable
Router#configure terminal
Router(config)#interface serial 0
Router(config-if)#no shutdown
Router(config-if)#ip address 192.168.0.1 255.255.255.0
Router(config-if)#encapsulation ppp
Router(config-if)#clock rate 9600
(如果是DCE端需要配置時鐘速率)
 
檢查路由器的狀態:
show version 系統硬件配置,軟件版本,引導映像
isco2621xm#show version
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-I-M), Version 12.3(5d), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Wed 09-Jun-04 00:05 by kellythw
Image text-base: 0x80008098, data-base: 0x80CA63B4

ROM: System Bootstrap, Version 12.2(8r) [cmong 8r], RELEASE SOFTWARE (fc1)

cisco2621xm uptime is 4 hours, 53 minutes
System returned to ROM by power-on
System restarted at 15:40:05 UTC Tue Dec 7 2004
System image file is "flash:c2600-i-mz.123-5d.bin"

cisco 2621XM (MPC860P) processor (revision 0x301) with 126976K/4096K bytes of me
mory.
Processor board ID FOC08382DBW (3885486175)
M860 processor: part number 5, mask 2
Bridging software.
X.25 software, Version 3.0.0.
2 FastEthernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.
32768K bytes of processor board System flash (Read/Write)

Configuration register is 0x2102
 
show process 顯示激活的進程信息
主要查看CPU的使用狀態
CPU使用率一旦超過70%,就說明路由器的CPU負荷較大
如果CPU使用率超過90%,網內一定存在病毒
 
路由器時間設置
Router#show clock 查看現在路由器時間
Router#clock set <日期>
 
一月         Jan.         January
二月         Feb.         February
三月         Mar.         March
四月         Apr.         April
五月         May.         May
六月         June.         June
七月         July.         July
八月         Aug.         August
九月         Sept.         September
十月         Oct.         October
十一月       Nov.         November
十二月       Dec.         December
 
路由器配置存儲:
Router#copy running-config startup-config
Router#write
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章