八宝书库 > 文学其他电子书 > 路由器基本知识及应用实例(DOC格式) >

第7部分

路由器基本知识及应用实例(DOC格式)-第7部分

小说: 路由器基本知识及应用实例(DOC格式) 字数: 每页4000字

按键盘上方向键 ← 或 → 可快速上下翻页,按键盘上的 Enter 键可回到本书目录页,按键盘上方向键 ↑ 可回到本页顶部!
————未阅读完?加入书签已便下次继续阅读!



Router(config…if)#
00:02:14: %LINK…3…UPDOWN: Interface Ethernet0/0; changed state to up
00:02:15: %LINEPROTO…5…UPDOWN: Line protocol on Interface Ethernet0/0; changed state to up
Router(config…if)#interface BRI0/0
Router(config…if)#no shutdown
Router(config…if)#
00:02:26: %LINK…3…UPDOWN: Interface BRI0/0:1; changed state to down
00:02:26: %LINK…3…UPDOWN: Interface BRI0/0:2; changed state to down
00:02:26: %LINK…3…UPDOWN: Interface BRI0/0; changed state to up
00:02:115964116991: %ISDN…6…LAYER2UP: Layer 2 for Interface BR0/0; TEI 68 changed to up
Router(config…if)#^Z
Router#
00:02:35: %SYS…5…CONFIG_I: Configured from console by console
Router#copy running…config startup…config
Destination filename 'startup…config'?
Building configuration。。。
'OK'
Router#show version
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600…I…M); Version 12。3(3a); RELEASE SOFTWARE (fc2)
Copyright (c) 1986…2003 by cisco Systems; Inc。
piled wed 15…Oct…03 02:21 by phanguye
Image text…base: 0x80008088; data…base: 0x80C524F8

ROM: System Bootstrap; Version 11。3(2)XA4; RELEASE SOFTWARE (fc1)

Router uptime is 3 minutes
System returned to ROM by abort at PC 0x802D0B60
System image file is 〃flash:c2600…i…mz。123…3a。bin〃

cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory。
Processor board ID JAB031202NK (3878188963)
M860 processor: part number 0; mask 49
Bridging software。
X。25 software; Version 3。0。0。
Basic Rate ISDN software; Version 1。1。
2 Ethernet/IEEE 802。3 interface(s)
2 Serial(sync/async) network interface(s)
1 ISDN Basic Rate interface(s)
32K bytes of non…volatile configuration memory。
8192K bytes of processor board System flash partition 1 (Read/Write)
8192K bytes of processor board System flash partition 2 (Read/Write)

Configuration register is 0x2142

Router#configure terminal
Enter configuration mands; one per line。 End with CNTL/Z。
Router(config)#config…register 0x2102
Router(config)#^Z
00:03:20: %SYS…5…CONFIG_I: Configured from console by console

Router#show version
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600…I…M); Version 12。S ; RELEASE SOFTWARE (fc2)
Copyright (c) 1986…2003 by cisco Systems; Inc。
piled wed 15…Oct…03 02:21 by phanguye
Image text…base: 0x80008088; data…base: 0x80C524F8

ROM: System Bootstrap; Version 11。3(2)XA4; RELEASE SOFTWARE (fc1)

Router uptime is 3 minutes
System returned to ROM by abort at PC 0x802D0B60
System image file is 〃flash:c2600…i…mz。123…3a。bin〃

cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory。
Processor board ID JAB031202NK (3878188963)
M860 processor: part number 0; mask 49
Bridging software。
X。25 software; Version 3。0。0。
Basic Rate ISDN software; Version 1。1。
2 Ethernet/IEEE 802。3 interface(s)
2 Serial(sync/async) network interface(s)
1 ISDN Basic Rate interface(s)
32K bytes of non…volatile configuration memory。
8192K bytes of processor board System flash partition 1 (Read/Write)
8192K bytes of processor board System flash partition 2 (Read/Write)

Configuration register is 0x2142 (will be 0x2102 at next reload)

Router#

2。2。4。2 控制口的操作
每个路由器都有一个控制口,控制口的线号通常为0。使用标准的RS232线连接控制口进行配置工作,如 Figure 4…1。 通常每个路由器都带有一根控制口线。 
Figure 4…1。 控制口线的连接


可以使用VT100终端模拟器来连接路由器,连接的默认配置如下:
9600 baud rate?
No parity
8 data bits
1 stop bit 
No flow control
 使用line命令;设置对控制口的访问。下面是基本配置: 
Router#config terminal
Router(config)#service linenumber
Router(config)#line console 0
Router(config…line)#location Building…2A
Router(config…line)#exec…timeout 30 0

其中location 命令定义了设备的位置,service linenumber 命令向用户显示设备的位置信息。exec…timeout 30 0的作用是:如果控制口空闲超过30分钟,则自动关闭这次会话。
还可以为控制口的访问设定用户名和口令,并强制使用本地用户。 
Router(config)#username bob password letmein
Router(config)#line console 0
Router(config…line)#login local

2。2。5 常见故障分析
2。2。5。1  CPU 利用率过高
 高CPU利用率征兆
下面列出了一些CPU利用率过高的通常的征兆。如果你注意有这些征兆出现,请遵照该文件中差错的步骤消除故障。
show processes cpu 命令输出中的过高的百分比
比较低的性能
路由器上的服务不能响应,例如:
* 对Telnet响应慢或不响应
* 对控制台console响应慢
* 对ping响应慢或不响应
* 路由器不向其他路由器发送路由更新

初始 Troubleshooting
一旦你注意出现了以上的征兆:
检查可能的安全问题。通常,高CPU利用率会由一个安全问题引起,例如网络中的蠕虫病毒等。如果最近你的网络中没有做任何的变化,那么更有可能是由它引起。经常,配置的变化,如在访问控制列表中增加几行可以减轻这一问题的影响。 Cisco Product Security Advisories and Notices 包含检测问题的起因和特定的解决方案。
确认所有debug 命令都已关闭( 使用命令undebug all 或 no debug all ) 
你还可以在路由器上使用 show 命令吗? 如果可以,立即使用show命令收集更多的信息。
确定起因
使用命令 show processes cpu 检查CPU利用率过高的起因。
show processes cpu 命令
这是show processes cpu 命令的例子:
 CPU utilization for five seconds: X%/Y%; one minute: Z%; five minutes: W% 
  PID  Runtime(ms)  Invoked  uSecs    5Sec   1Min   5Min TTY Process 
This table describes the fields in the header:
Field
Description
X
过去5秒钟的平均使用率 (interrupts + processes)
Y
过去5秒钟中断(interrupts)的使用率
Z
过去1分钟CPU使用率
W
过去5分钟平均使用率
PID
进程 ID
Runtime
进程使用的CPU 时间(毫秒- milliseconds)
Invoked
进程被调用的次数
Usecs
每次调用的CPU时间(微秒)
5Sec
过去5秒CPU 使用率
1Min
过去1分钟CPU 使用率
5Min
过去5分钟CPU 使用率
TTY
控制进程的Terminal
Process
进程的名称
2。2。5。2 分配内存失败
什么是分配内存失败?
* 路由器使用了所有的可用内存(临时或永久地); 或
* 内存碎片导致路由器无法找到合适的可用内存块。
征兆
内存分配失败的征兆包括但不仅仅是以下几点:
* 控制台(console)或 log 信息: 〃%SYS…2…MALLOCFAIL: Memory allocation of 1028 bytes failed from 0x6015EC84; Pool Processor; alignment 0〃
* 拒绝 Telnet 会话
* 控制台只显示show processor memory 命令,无论你键入任何命令
* 无 show 的输出
* 〃Low on memory〃 信息
* 控制台(console)信息 〃Unable to create EXEC no memory or too many processes〃
1。 路由器挂起,没有控制台响应
理解出错信息
当你使用show logging 命令; 你可以看到如下的信息:
%SYS…2…MALLOCFAIL: Memory allocation of 'X' bytes failed from
0x6015EC84; pool 'Pool'; alignment 0 …Process= 
〃'Process'〃 ipl= 6; pid=5
'X' = 路由器试图分配的字节大小; 但不能找到合适的足够的可用内存
'Pool' 指示是处理器内存 ('Pool Processor') 还是数据包内存 ('pool I/O') 收到影响。 
查错总结
按照以下步骤查错:
* 检查所用的Cisco IOS 软件版本和特性集所需要的内存大小。
* 如果可能,升级你的IOS版本。
* 检查正常和非正常的进程是否需要大量的内存,如果需要,增加更多内存。
* 检查是否有内存泄露或碎片 (buffer leak on high…end routers)。
* 收集相关的信息,并联系Cisco 技术支持中心(Cisco TAC)。

收集信息,如果需要TAC的支持
如果需要开启一个TAC访问请求,请确认得到以下信息:
在开启服务请求以前所作的差错工作
show technical…support 输出 (在 enable 模式下) 
show log 输出或从控制台获取的信息
show memory allocating…pool totals 或 show memory summary 
如果你怀疑是内存碎片问题,请包括:
show memory free
show memory bigger
如果你怀疑是缓冲区泄露问题,请包括:
show buffer old
show buffer pool (small middle big verybig large huge)
show buffer pool (small middle big verybig large huge) packet
You can attach information to your case by uploading it using the TAC Service Request Tool (registered customers only) 。 If you cannot access the Service Request Tool; you can send the information in an email attachment to attach@cisco。 with your case number in the subject line of your message to attach the relevant information to your case。
注: 在收集以上信息前不要手动重起或开关路由器, TAC 工程师会根据情况建议重起作为诊断的一部分。
2。2。5。3 系统出错信息
本节包括一些Cisco IOS 系统的出错信息。系统会发送出错信息到控制台 (和;可选地; 到记录服务器- logging server) 。并非所有的信息都表明是故障。一些仅仅是一些信息。 
解读系统出错信息
系统信息是按照特定的系统功能块来组织的。这些功能区是按照字母顺序排列的。
系统出错信息以符号 (%)开始并按以下结构排列:
%FACILITY…SUBFACILITY…SEVERITY…MNEMONIC: 信息正文 
FACILITY is a code consisting of two or more uppercase letters that indicate the facility to which the message refers。 A facility can be a hardware device; a protocol; or a module of the system software。 Table 1 lists the system facilities codes。
SUBFACILITY is a code that is relevant only in Channel Interface Processor (CIP) error messages。 There are currently no CIP error messages in this section。
SEVERITY is a single…digit code from 0 to 7 that reflects the severity of the condition。 The lower the number; the more serious the situation。 Table 2 lists the severity levels。
MNEMONIC is a code that uniquely identifies the error message。
Message…text is a text string describing the condition。 This portion of the message sometimes contains detailed information about the event; including terminal port numbers; network addresses; or addresses that correspond to locations in the system memory address space。 Because the information in these variable fields changes from message to message; it is represented here by short strings enclosed in square brackets (' ')。 A decimal number; for example; is represented as 'dec'。 Table 3 lists the representations of variable fields and the type of information in them。

Table  1: Facility Codes 
Code 
Facility 
ALC
ATM Line Card
BGP
Border Gateway Protocol
CM622
Cell Maker 622 (ATM SAR chip on ATM line card)
DRVGRP
Gigabit Route Processor Driver
ENV_MON
Environmental Monitor
FABRIC
Switching Fabric
GRP
Gigabit Route Processor
GRPPOS
Gigabit Route Processor Packet…Over…SONET
LC
Line Card
LCCOREDUMP
Line Card Core Dump
LCINFO
Line Card Information
LCLOG
Line Card Log
LCPLIM
Line Card Physical Layer Interface Module
LCPOS
Line Card Packet…Over…SONET
MBUS
MBus
PAD
Packet Assembler/Disassembler
PARSER
Parser
RADIUS
Radius database
SYS
System
TCP
Transmission Control Protocol
UCODE
Microcode
VIP
Versatile Interface Processor

Table  2: Error Message Severity Levels 
Level 
Description 
0 emergency
System unusable
1 alert
Immediate action needed
2 critical
Critical condition
3 error
Error condition

返回目录 上一页 下一页 回到顶部 0 0

你可能喜欢的