1 Introduction
As a network engineer, it is very important to locate the fault and solve the fault in time when a fault occurs in the network environment. This document describes how to use a diagnostic tool to diagnose a CISCO Router Based on a Cisco router. The content and examples we introduced are mainly based on IP packets. The diagnostic technology based on protocols such as IPX and Appletalk is similar to this.
2Features and architecture of vro
Before learning about the various troubleshooting and diagnostic tools available on the Cisco router, it is very important to understand the basic architecture of the router. Network engineers should understand the role of diagnostic command execution and the impact on router performance.
Switching and routing are frequently used in network interconnection. The exchange mentioned here is totally different from the frame-level exchange in the LAN. The exchange process refers to how the router transmits packets between two different interfaces.
For example, a router receives a packet at Ethernet interface 0. The router first obtains the MAC header information from the packet, and then checks the packet header at the network layer. The router checks whether the route table matches the destination address of the packet. Assume that the route table contains matching items and the next hop address is another vro. The vro1 can be reached through Ethernet interface 1. Then the router needs to check the second-layer address of the next hop. If the IP address does not exist, an ARP broadcast packet must be sent on the Ethernet interface 1. If no ARP response is received, the router discards the packet. If there is a response, the router establishes an Ethernet frame to the next hop router.
In this example, the entire process from receiving an Ethernet frame to establishing and sending an Ethernet frame is called the switching process. It should be noted that the ARP parsing process is generally not considered as part of the exchange process. In the above process, the route table query is executed to find the next hop address, which indicates that the exchange process is used. This is the simplest packet exchange method, so it has a large overhead and latency. All routing protocols ultimately depend on the establishment of the route table. The router updates the corresponding route table by receiving the route update packets sent from neighboring Routers running the same protocol, we call it a routing process, which is mainly completed by the routing processor.
Cisco routers that are widely used in China include the 2500 series, 4000 Series, 7000 Series, and 7500 series. These routers perform similar routing, however, the exchange process varies according to the system structure.
The 7000 Series supports process switching, fast switching, autonomous switching, and Silicon Switching. Compared with the 7500 series, the Cisco 7000 Series routers have many improvements in architecture. The functions of the Route Processor and exchange processor are integrated into the router exchange processor (RSP. This new architecture reduces the load on the system bus during fast switching. The integrated functions optimize the performance, stability, scalability, and security of both the Route Processor and switch processor. Vrouters of the 7500 series do not support autonomous switching or Silicon Switching, and support more flexible optimization and switching.
The hardware structure of the Cisco 4000/2500 series router is simpler than that of the 7000/7500 series router. These devices share the memory only during the SWAp process. All the message caches and caches are in the shared storage. Therefore, they only support fast switching or process switching.
You need to know that process switching requires you to query the route table to make route selection, and other exchange technologies use cache to increase the switching speed, because their cache locations are different and called different technologies.
3Troubleshooting command
The Cisco ISO operating system software provides a rich set of functions for troubleshooting, problem diagnosis, and performance testing. Commands can be roughly divided into two types: show commands and debug commands. It also contains a set of clear commands used to connect these two types of commands.
Next we will explain the commands separately
3.1 show command
In this section, we will describe the most common show commands, describe the output of these commands and the types of faults that these commands apply to solve. For clarity, these commands are classified into global system commands, interface-related commands, and protocol-related commands. We only discuss the most commonly used commands.
Global System commands
This section lists the output commands related to the vro software and hardware, including the storage area and power supply. The show version command is one of the most basic commands. It displays the basic information about the vro itself and the software and hardware it uses. The show hardware command is similar to the show version command.
Command output information includes: IOS version, vro running time about 23 weeks, reason for the last re-start, size of the primary router, size of the shared storage, size of flash, and IOS image file name, and where the router starts. The show version command displays a lot of useful information about the vro. Generally, data should be collected from this command when solving the problem.
If multiple interfaces of the vro。 lose packets at the same time, the vro memory may be insufficient or the CPU is overloaded. You can use the show memory command to check the memory usage (as shown below ). You can run the show process command to check the CPU usage.
YH-Router # show memory
Head Total (B) Used (B) Free (B) Lowest (B) Largest (B)
Processor 60DB19C0 19195456 6162924 13032532 11615164
Fast 60DB19C0 131072 128344 2728 2728 2684
The first two lines of show memory display the general information of memory, which indicates that the system has enough available memory. It also shows that there are no fragments in the memory, because the maximum number of available blocks in the 13.03 MB memory is close to 11.25 MB. Memory fragments indicate that the memory is divided into many discontinuous blocks. It will reduce the memory usage. In severe cases, memory errors may occur, seriously affecting the performance of the router.
Now let's take a look at the situation where the vro has many memory fragments (as shown below ). At this time, we have enough available memory (8.4 MB), but the maximum block is only 0.5 Mb. The continuous memory does not have enough available blocks, which may cause serious memory allocation problems. These problems sometimes result in intermittent packet loss for one or more interfaces. In this case, the vro generates a memory fragment error message.
HX-Router # sh mem
Head Total (B) Used (B) Free (B) Lowest (B) Largest (B)
Processor 60DB19C0 19195456 10713712 8481744 192680
Fast 60DB19C0 131072 90936 40136 40136 40092
Run the show memory free command to show that the available memory is divided into many small fragments. Note that a certain number of memory fragments exist in the vro. Although there is no strict boundary to divide the acceptable degree of memory fragmentation, the size of the available block should be at least half of the available memory. You can restart the vro to solve this problem. During the restart, the system allocates memory and cache space. In this case, you should monitor the memory allocation process. If a similar situation occurs again, consult Cisco TAC.
You can use the show process cpu command to check whether the CPU of the router is overloaded. This command shows the CPU usage of the vro。 and the CPU usage of different processes in the vro. In the following example, the CPU of the vro works normally. Generally, it is acceptable that the average CPU usage is less than 60% within five minutes. If you suspect that there is a problem with CPU usage, You need to constantly monitor this parameter because it may change in a short time. It is best to use this command every 10 seconds. By using this method, you can clearly understand the fluctuations in CPU usage.
YH-Router # sh process cpu
CPU utilization for five seconds: 15%/4%; one minute: 175; five minutes: 19%
PID Runtime (MS) Invoked uSecs 5Sec 1 Min 5 Min TTY Process
1 460184 5380085 85 0.00% 0.00% 0.00% 0 NTP
2 252749536 2384205 106010 0.00% 2.35% 2.65% 0 Check Heaps
......
13 26155236 9135958 2862 0.32% 0.25% 0 IP Background
14 317720 150150 2116 0.00% 0.00% 0 IP Cache ager
......
23 51598380 135094851 381 0.32% 0.24% 0.28% 0 IPX Input
24 86792124 23662071 3667 0.98% 0.87% 0.89% 0 IPX RIP
25 438480948 123384161 3553 7.94% 3.31% 0 IPX SAP
......
If the average CPU usage exceeds 80%, the router is overloaded. The next step is to check that some processes cause high CPU utilization. In the above display, we can see that the process ipx sap occupies most of the CPU processing capacity, but it is still acceptable. In some cases, if the parameters of the Server Load balancer background continue to be too high, it indicates that a route bridge storm occurs.
The show process memory command can be used to give general information about available memory of the router, and then display the details of the memory space occupied by each process.
If the router crashes completely due to a temporary restart, the corresponding error message will be included in the output of the show version command. The show stack command is used to trace the stack of A vro and provide the reason for the temporary restart of the vro. If a restart occurs due to an error, the stack record is displayed at the end of the output. Stack records must be decoded to extract fault-related information. This work is usually done by Cisco TAC engineers. In addition, users with the corresponding CCO logon ID can obtain the decoding information by sending the output of the show stack command to CCO. The result of stack record decoding is sometimes related to a Cisco router bug.
When a user reports a fault to Cisco TAC, the Support Technician usually asks the user to send the output result of the show tech_support command. This command causes the following commands to be executed in sequence: Show version, Show controllers, Show buffers, Show interface, Show stack, Show process cpu, Show process memory, and Show running-config. The combination of these commands provides detailed information about the vro configuration and most key performance parameters. The output of the show tech_support command is very useful for Cisco TAC technicians to solve complex network problems.
Interface-related commands
The following describes some commands directly related to the active router interface. Show ip interface brief displays the ip address information of each router interface and the status information of Layer 2 (as shown below ). The correlation information of other protocols corresponding to IP addresses can be obtained through the corresponding command attributes, such as show ipx interface brief.
YH-Router # sh ip in brief
Interface IP-Address OK? Method Status Protocol
TokenRing0/0 172.26.12.3 yes nvram up
TokenRing0/1 172.27.12.3 yes nvram up
TokenRing0/2 172.28.12.3 yes nvram up
[1] [2] [3] [4] Next page
Article entry: csh responsible editor: csh
TokenRing0/3 unassigned yes nvram administratively down
Ethernet1/0 172.30.12.3 yes nvram up
Ethernet1/0 172.31.12.3 yes nvram up
Ethernet1/0 172.32.12.3 yes nvram up
Ethernet1/0 172.33.12.3 yes nvram up
The show interface command can get more information. We use Ethernet as an example to discuss these general interface parameters.
YH-Router # sh int e1/0
Ethernet1/0 is up, line protcol is up
Hardware is cxBus Ethernet, address is 00e0. f78a. 6d40 (bia 00e0. f78a. 6d40)
Description: seg = E2 LAB SRV1
Internet address is 172.30.12.3/16
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set, keepalive set (10sec)
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Queueing strategy: fifo
Output queue 0/40, 44 drops; input queue 0/75, 66114 drops
5 minute input rate 181000 bits/sec, 23 packets/sec
5 minute output rate 43000 bits/sec, 26 packets/sec
525599659 packets input, 2042735431 bytes, 0 no buffer
Received 4004547 broadcasts, 10 runts, 0 giants
139 input errors, 0 CRC, 129 frame, 0 overrun, 0 ignored, 0 abort
0 input packets with dribble condition detected
481020335 packets output, 1069273018 bytes, 47 underruns
20 output errors, 95880485 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Where:
Ethernet 1/0 is up indicates that the first layer of the OSI model is successfully started.
Line protocol up indicates that the second layer is successfully started.
Description: User-Defined Description. It is very important to use this function to provide an accurate description of the interface. In a large organization, it is difficult for a local network engineer to locate a faulty router.
MTU specifies the maximum transmission unit, which can be configured by the user.
BW, Dly, rely, load (bandwidth, latency, reliability, and load): these parameters are related to the IGRP/VPN standard. The bandwidth and delay configurations can affect the route selection. In interfaces that work normally, the reliability value is 255. Unless it is very busy, the load generally should not exceed 150/255.
Encapsulation refers to the second layer Encapsulation of the interface. In Ethernet, Cisco is set to ARPA by default, while IPX is set to Novell-Ether by default.
What other information can be obtained from the output? As you can see, the ARP cache timeout value is 4 hours (this value is set by default ). The time from router interface input to output is less than 1 second. The output is never suspended. The last time the interface counter was cleared, 0 was five weeks ago. This data is very useful when evaluating the statistics of interfaces. In general, the counter can be cleared to 0 for further monitoring.
The interface uses FIFO queuing rules. The default length of the output queue and input queue is 40 and 75, respectively. Messages are not included in the queue. After the counter is cleared for the last time, many packets are lost in the input queue. However, as we mentioned earlier, the counter has not been cleared for five weeks. Therefore, this value does not indicate that a network fault has occurred. In this case, you should first clear the counter to 0, and then monitor the number of lost packets in the output queue.
At the same time, the command output also displays the average Information volume (in bytes) and the number of packets per second through the router interface. The total number of these parameters and the number of all broadcast packets observed by the router interface are also displayed in the Command output. If the number of broadcast packets increases rapidly, especially if the number of input packets is very high, it indicates that there is a broadcast storm in the LAN segment. Due to the frequent use of broadcast packets, it is very difficult to determine the number of broadcast packets. However, if the number of broadcast packets exceeds 30% of the total number of input packets, you need to use the LAN protocol analyzer to further detect the network.
We can also obtain the following error detection information for the interface:
Runts refers to a packet whose size is smaller than or equal to the minimum value. In the example of Ethernet, the value is 64. The minimum packet size specified in Ethernet is because the workstation in this transmission mode needs to detect collisions. If the Ethernet segment contains an Ethernet repeater and its distance complies with the prescribed standards, the minimum packet size can enable any collision in the workstation Detection Line in this transmission mode.
Giants refers to the maximum packet size that exceeds the line. The MTU of Ethernet is usually 1500 bytes, or the maximum encapsulated data is 1500 bytes.
Input errors indicates an error detected in the message or an error occurs in the network segment.
Output errors indicates an error in the Output message. It may indicate that the router interface has a fault.
The cyclic redundancy check detected by CRCs is incorrect due to incorrect Ethernet checksum. It may be caused by network segment noise, Nic failure, or packet conflict. The CRC frequency should occur every 100000 input packets.
Frame errors indicates that the type of the received Frame does not match that of the router Ethernet Frame (the IP protocol Frame type is ARPA.
Problems caused by excessive retransmission of Aborts in collision detection. In Ethernet, the maximum number of retransmissions cannot exceed 15.
Dribble condition indicates that the received frame is larger than MTU, But Not Giants.
Babble refers to the continuous receipt of suspicious frames.
If the Deferred line is busy, the message will be delayed during transmission.
When too many errors are detected in Interface resets, the router resets the Interface. These errors may exist in LAN segments or interface errors. However, if a large number of output errors occur, it indicates that the router interface is faulty.
In Ethernet, Collisions are divided into two categories: early and late. Early collision is a conflict detected by the sender before the first 64 bytes of the frame enter the line. Early collision is an integral part of the Ethernet CSMA/CD access method. Early collision usually causes small interrupted frames or runts. Late collision conflicts when multiple bytes (greater than 64) of the frame are sent to the line. Theoretically, Ethernet will not produce such conflicts. The causes of late collision include:
; The cable violates the distance rules.
; The NIC card fails to monitor the line correctly.
Lost carrier indicates the failure of the carrier and line protocol after the last time the counter is cleared. Such faults are generally not related to routers. For example, carrier loss may be caused by cable connection interruption between the router and the hub.
The Buffer parameters show interface command also provides fault information related to buffer allocation, including no buffer, overruns, ignored, underruns, Buffer failures, and swapped out buffers.
We have discussed in detail the usage of the show interface command above. The output of these commands provides valuable information related to the router interface and parameters related to the transmission media.
The show controller command provides detailed information about the physical line connecting to the router interface and the transmission media. It also provides historical status information. Some of the details are rarely used. They are generally used only by TAC technicians to solve very complex problems.
YH-Router # debug ip rip events
RIP event debugging is on
YH-Router #
NOV 27 13:55:45 PST: RIP: sending v1 update to 255.255.255.255 via TokenRing1/0 (165.48.65.136)
NOV 27 13:55:45 PST: RIP: Update contains 25 routes
NOV 27 13:55:45 PST: RIP: Update queued
NOV 27 13:55:45 PST: RIP: Update contains 6 routes
NOV 27 13:55:45 PST: RIP: Update queued
NOV 27 13:55:45 PST: RIP: Update sent via TokenRing1/0
......
YH-Router # undeb all
All possible debugging has been turned off
3.2 Ping command
Ping is the most commonly used troubleshooting command. It consists of a group of ICMP response request packets. If the network runs normally, a group of response packets will be returned. ICMP messages are transmitted using IP data packets. Therefore, when an ICMP response message is received, the connections below Layer 3 are working normally.
Cisco's ping command not only supports the IP protocol, but also supports most other desktop protocols, such as ping commands for IPX and AppleTalk protocols. First, let's take a look at the execution of ping commands supporting the IP protocol in user EXEC mode, and then discuss the many powerful functions of the extended ping command in privileged mode.
User Execution Mode
A simple ip ping operation can be performed in user mode or in privileged mode. Under normal circumstances, the command will send back five response requests. The five exclamation points indicate that all requests have successfully received the response. The output also contains the maximum, minimum, and average round-trip time information.
Every "!" Indicates that an echo response is successfully accepted. If it is not "!" The reason why the echo response is not received:
! Response received
· Request timeout
U destination inaccessible
P protocol not reachable
N Network inaccessible
Previous Page [1] [2] [3] [4] Next page
Article entry: csh responsible editor: csh
Q source Suppression
M cannot be segmented
? Unknown Message Type
The ipx ping ipx command can only be executed on routers running IOS v 8.2 and later versions. In user mode, IPX ping is generally only used to test the Cisco router interface. In privileged mode, you can ping a specific NOVELL workstation. The command format is "ping ipx IPX address ".
Appletale ping the command to use Apple Echo Protocol (AEP) to confirm the connectivity between AppleTalk nodes. Note that the current Cisco router only supports the Apple Echo Protocol for Ethernet interfaces. The command format is "ping apple Appletalk address ".
Privileged Execution Mode
In privileged mode, the extended ping command applies to any Desktop Protocol. It contains more functional attributes, so you can obtain more detailed information. Through this information, we can analyze the causes of network performance degradation, not just service loss. The execution method of the extended ping command is also ping. Then the router prompts different attributes.
Use extended ip ping as follows:
YH-Router # ping
Protocol [ip]:
Target IP address: 165.48.183.12
Repeat count [5]: 10
Datemedisize [100]: 1600
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 165.48.48.3
Type of service [0]:
Set DF bit in IP header? [No]:
Data pattern [0 xABCD]:
Loose, Srict, Record, Timestamp, Verbose [none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 10,160 0-byte ICMP Echoes to 165.58.183.12, timeout is 2 seconds:
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 36/39/48 MS
First, we will discuss various available attributes of ping in privileged mode. The default values of each attribute are displayed in brackets.
Protocol to be tested.
Target address: The Target address of the test.
Repeat count indicates the number of times of repeated ping if intermittent failure occurs or the response time is too slow.
Datatesize if the message is suspected to be lost due to long delay or segment failure, the packet size can be increased. For example, we can use a 1600-byte message to force segmentation.
Timeout can be increased if it is suspected that the Timeout is due to slow response rather than packet loss.
Extended commands answered "OK" to obtain the Extended attributes.
Source address must be the address of the router interface.
Type of service is a property defined by RFC 791 TOS. The default value is 0.
Set DF bit in IP header? By setting the DF bit to disable segmentation, even if the packet exceeds the MTU defined by the router, segmentation is prohibited.
Data pattern [0 xABCD] can test the line noise by changing the Data mode.
Loose, Strict, Record, Timestamp, and Verbose [none] are all attributes of the IP packet header. Generally, only the Record attribute and Verbose attribute are used. Other attributes are rarely used. Record can be used to Record the address of each hop of a message. The Verbose attribute specifies the response time of each response ..
Sweep range of sizes [n] This attribute is mainly used to test faults such as the loss of large packets, slow processing speed, or failed segmentation.
Extend ipx ping the extended IPX ping also allows you to modify parameters, such as the packet size and number of duplicates. Another enhancement attribute of ping in user mode is the Novell Standard echo attribute. With this attribute, You can ping the workstation that loads IPX. If this attribute is disabled, the Novell IPX devices do not respond to ping because they do not support the Cisco proprietary IPX ping protocol. You can modify the properties of devices to make them support this feature.
Extended appletalk ping: the EXTENDED AppleTalk ping command is used to enhance the ping in user mode, which is similar to the extended ipx ping command. You can also select Verbose and other attributes like the IP address and IPX extended ping.
3.3 trace command
The trace command provides information about each hop from the router to the destination address. It is implemented by controlling the TTL field of IP packets. ICMP response request packets whose TTL is equal to 1 will be sent first. The first vro in the path will discard the message and send a message that identifies the error message. An error message is usually an ICMP timeout message, indicating the next hop of the packet to reach the path smoothly or the port cannot reach the message, indicating that the message has been received by the destination address but cannot be transferred to the IP protocol stack.
To obtain the round-trip delay time information, trace sends three packets and displays the average delay time. Add the TTL field of the packet to 1 and send three packets. These packets will arrive at the second vro in the path and return a timeout error or a port inaccessible message. This method is used repeatedly to increase the value of the TTL field of the message until the Response Message of the target address is received.
In some cases, using the trace command may cause a fault. Because IOS has a bug related to the trace command. Information about these bugs can be obtained from CCO. Another problem is that some target sites do not respond to ICMP port inaccessible messages. When the command output displays a series of asterisks (*), such sites may be encountered. The user can interrupt command execution by using the Ctrl-Shift-6.
The output of a simple trace command in user execution mode is shown below. The distance to the destination is 3 hops. The Response Message of the three packets whose TTL value is 1 is an ICMP timeout error, and the IP addresses of the returned packets are two. Because vro1 1 and vro2 2 are in the same CIDR Block and the distance between them and vro3 3 is a hop, these vrouters respond to the report.
Router3 # trace 171.144.1.39
Type escape sequence to abort.
Tracing the route to Router9 (171.144.1.39)
1 Router2 (165.48.48.2) 0 msec
Router2 (165.48.48.2) 0 msec
Router1 (165.48.48.1) 0 msec
2 165.48.48.129 12 msec
Router6 (165.48.49.129) 12 msec 12 msec
3 Router4 (171.133.1.2) 12 msec 12 msec
Router9 (171.144.1.39) 12 msec 12 msec
Router3
The following lists the different characters in the output of the IP trace command and their meanings:
The round-trip delay (in milliseconds) of XY msec before receiving the Response Message)
* Message timeout
? The message type cannot be identified.
U port inaccessible
P protocol not reachable
N Network inaccessible
H host inaccessible
Q icmp Source Suppression
In privileged mode, extended Trace can be used to extend many attributes of the ping command. Special attributes of the extended trace command include:
Numeric display by default, the output of the trace command includes both the IP address and the corresponding DNS domain name. If you do not need to display the DNS domain name, you can use this attribute.
The default value of Probe count is 3, which can be adjusted as needed.
TTL value can be changed between the maximum and minimum TTL values.
Port number is a very useful property that enables engineering and technical personnel to track specific transport layer ports. Therefore, you can not only check the IP connectivity between the source end and the target end, but also check whether the high-level service is accessible.
Another problem related to the trace command is that if multiple paths reach the destination, the source address of the returned message may be different. In this case, you need to carefully compare the delay time of different returned packets. If you still cannot obtain clear results, you can remotely access one or more routers in the path and use the trace command to access the Source and Destination addresses.
4. Understand Cisco error messages
4.1 error message format
The format of the system error message is as follows:
% Facility-subfacility-Severity-Mnemonic: Message Text
Facility indicates the device name involved in the error message. The value can be a protocol, hardware device, or system software module.
Subfacility it is only related to the channel interface processor (CIP) card. For more information, see the relevant sections of the Cisco Document.
Severity is a number ranging from 0 to 7. The smaller the number, the higher the severity.
Mnemonic uniquely identifies the single-value code of an error message. This code can usually imply an error type.
Message Text: a brief description of the error Message, including information about the router hardware and software involved.
Below are some examples of error messages. You can refer to the system error messages section in the cco iso document to find the description of these error messages.
% DUAL-3-SIA: Route 171.155.148.192/26 stuck-in-active state in IP-EIGP 211. Cleaning up
% LANCE-3-OWNERR: Unit 0, buffer ownership error
Note that not all messages involve failures or problems. Some messages display status information. For example, the following message only indicates that the isdn bri 0 interface is connected to a specific remote data.
% ISDN-6-CONNECT: Interface BRI0 is now connected to 95551212
4.2 Traceback Report
Some error messages related to internal router errors include traceback information. This information should be added to the error description when reporting errors to Cisco TAC.
5. logs of error messages and events
According to the importance and validity of the error message, the Cisco error message can be recorded in the following locations:
; Console
; Virtual terminal
; Syslog Server
; Internal buffer
The logging on command outputs log messages to the preceding locations. For a Syslog server, you must use the following global configuration command to specify the IP address of the server:
Previous Page [1] [2] [3] [4] Next page
Article entry: csh responsible editor: csh
Logging ip-address
By repeatedly using this command, you can create a list of servers. When managing a large network, you usually need to set up Redundant servers.
The logging buffered command is used to send log information to the internal buffer zone. The buffer must be larger than 4096 bytes. The default value varies depending on the system platform. Select the buffer size suitable for the environment. If the buffer is too small, new messages will overwrite old messages. This may cause problems. However, if the buffer size is too large, the system cache will be wasted. The no logging buffered command will disable messages from being written to the internal cache.
You can use the show logging command to display the content of the internal buffer. If you need information for a certain period of time, use NTP or manually set the clock. The specific operation is as follows:
YH-Router # clock set 11:37:00 December 2000
YH-Router # sh clock
11:37:03. 596 PST Fri Dec 11 2000
You can use the following global configuration command to view the timestamp and debugging information of a log message:
YH-Router (config) # service timestamps log datetime
YH-Router (config) # service timestamps debug datetime
The terminal monitor command displays the debugging logs on the current terminal. This command is not a configuration command. On the contrary, it can be used in command line mode when being telnet to a vrotelnet.
In most cases, you may need to display log information at a certain level. Therefore, log information is divided into eight different levels, sorted from high to low by importance as follows:
; Emergencies
; Alerts
; Critical
; Errors
; Warnings
; Communications
; Informational
; Debugging
For example, to display all logs whose severity is equal to or greater than Warning on the console, you can use the following global configuration command:
Logging console warning
Similarly, when a certain type of log information is sent to the current terminal
Logging monitor level
Or use
Logging trap level
Unlike the terminal monitor command, the logging monitor command is part of the router configuration. The previous command cannot be executed at different security levels.
Note that the system overhead changes greatly when logs are recorded to different locations. The overhead of logging to the console is large, but the overhead of logging to the virtual terminal is small. The consumption of Syslog servers is lower. The write mode with the minimum system overhead is to write logs into the internal buffer zone.
6. Core Dump)
To find out the cause of a router crash, we can use many commands to obtain valid information. Here, we have explained the usage of the show stacks command. The core dump is a copy of the system memory image, which can be written to the TFTP server. From this binary file, we can obtain information related to the router crash or serious misoperation, through which we can eliminate possible faults.
The following configuration command writes the core dump to the TFTP server corresponding to the IP address in the command:
Exception dump ip-address
The write core Command is usually used to save the core image when a router encounters a serious misoperation but does not crash completely.
Only servers running IOS v 9.0 or later can use the core dump. However, it should be noted that it is best to obtain support from experienced engineers or Cisco TAC when using a core dump.
7 conclusion
To successfully diagnose and eliminate network faults, network engineering technicians must master two basic skills. First, you must have a clear understanding of network technologies and protocols. It is the basis for diagnosing and troubleshooting network faults. Without proper knowledge and experience, fault diagnosis and troubleshooting tools such as router diagnostic commands and Network Analyzers cannot play their roles.
The second skill that must be mastered by network engineering technicians is to apply the knowledge to the process of diagnosing and troubleshooting network faults in a organized manner. Although this article only describes some diagnostic commands, it must be emphasized that fault diagnosis and troubleshooting are a structured method. Many engineering and technical personnel think that the fault diagnosis and troubleshooting plan is not as important as the research and application technology itself. In fact, a correct plan often plays a decisive role in fault diagnosis and troubleshooting. In the process of troubleshooting, an accidental action may allow the fault to be solved smoothly, but it cannot replace the structured troubleshooting method.
Troubleshooting of network faults is a system engineering that involves defining problems, collecting facts, considering possibilities based on facts, establishing an action plan, implementing a plan, observing results, and circulating processes, this process is like the waterfall model in the software development process. Its importance is self-evident.
[This post was last edited by ande. wang]
Previous Page [1] [2] [3] [4]
Article entry: csh responsible editor: csh