路由器基本配置导航--
使用console线配置路由器:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
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 ProtocolEthernet0 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>
<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />
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
<?xml:namespace prefix = w ns = "urn:schemas-microsoft-com:office:word" />
配置以太网口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