43
Chapter 3: Using Maintenance &T bl h ti & Troubleshooting Tools and Applications Applications CCNP TSHOOT: Maintaining and Troubleshooting IP Networks CCNP TSHOOT: Maintaining and Troubleshooting IP Networks © 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public Course v6 Chapter # 1

Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Chapter 3:Using Maintenance & T bl h ti& Troubleshooting Tools and ApplicationsApplications

CCNP TSHOOT: Maintaining and Troubleshooting IP NetworksCCNP TSHOOT: Maintaining and Troubleshooting IP Networks

© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco PublicCourse v6 Chapter #

1

Page 2: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Chapter 3 Objectives

Use Cisco IOS commands to gather information in support of diagnostic processes. Identify tools used for specific maintenance and

troubleshooting processes.

Chapter #2© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 3: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Using Cisco IOS S ft fSoftware for Maintenance and Troubleshootingg

Chapter #3© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 4: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Collecting and Filtering Information Using IOS show Commandsshow CommandsFiltering show ip route command output

R1# show ip route 10.1.193.2Routing entry for 10.1.193.0/30Known via "connected", distance 0, metric 0 (connected, via

interface)interface)Redistributing via eigrp 1Routing Descriptor Blocks:* directly connected, via Serial0/0/1

Route metric is 0, traffic share count is 1Route metric is 0, traffic share count is 1

R1# show ip route 10.1.193.10% subnet not in table

Chapter #4© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 5: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Collecting and Filtering Information Using IOS show Commands Contshow Commands – Cont.Using show ip route with network addresses

R1# show ip route< output omitted >

192.168.1.0/30 is subnetted, 1 subnets,C 192.168.1.0 is directly connected, Loopback0

R1# show ip route 192.168.1.0Routing entry for 192.168.1.0/30, 1 known subnets

Attached (1 connections)

C 192.168.1.0 is directly connected, Loopback0

R1# show ip route 192.168.1.0 255.255.255.252Routing entry for 192.168.1.0/30

Known via "connected", distance 0, metric 0 (connected, via interface)Routing Descriptor Blocks:* di tl t d i L b k0

Chapter #5© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

* directly connected, via Loopback0Route metric is 0, traffic share count is 1

Page 6: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Collecting and Filtering Information Using IOS show Commands Contshow Commands – Cont.Using the longer-prefixes keyword with show ip routeR1# show ip route 10.1.193.0 255.255.255.0 longer-prefixes < output omitted >Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 46 subnets, 6 masks/ / /C 10.1.193.2/32 is directly connected, Serial0/0/1

C 10.1.193.0/30 is directly connected, Serial0/0/1D 10.1.193.6/32 [90/20517120] via 10.1.192.9, 2d01h, FastEthernet0/1

[90/20517120] via 10.1.192.1, 2d01h, FastEthernet0/0D 10.1.193.4/30 [90/20517120] via 10.1.192.9, 2d01h, FastEthernet0/1/ [ / ] , , /

[90/20517120] via 10.1.192.1, 2d01h, FastEthernet0/0D 10.1.193.5/32 [90/41024000] via 10.1.194.6, 2d01h, Serial0/0/0.122

Chapter #6© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 7: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Collecting and Filtering Information Using IOS show Commands Contshow Commands – Cont.Using pipes with include, exclude and begin

R1# show processes cpu | include IP Input71 3149172 7922812 397 0.24% 0.15% 0.05% 0 IP Input

S1# show ip interface brief | exclude unassignedInterface IP-Address OK? Method Status ProtocolVlan128 10.1.156.1 YES NVRAM up up

S1# show running-config | begin line vtyline vty 0 4ytransport input telnet ssh

line vty 5 15transport input telnet ssh

!EndEnd

R1# show processes cpu| include IP Input ^

% Invalid input detected at '^' marker.

Chapter #7© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 8: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Collecting and Filtering Information Using IOS show Commands Contshow Commands – Cont.Using pipes with section and ^

R1# show running-config | section router eigrprouter eigrp 1network 10.1.192.2 0.0.0.0network 10.1.192.10 0.0.0.0network 10.1.193.1 0.0.0.0no auto-summary

R1# show processes cpu | include ^CPU|IP InputCPU utilization for five seconds: 1%/0%; one minute: 1%; five minutes: 1%/ ; ;

71 3149424 7923898 397 0.24% 0.04% 0.00% 0 IP Input

Chapter #8© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 9: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Collecting and Filtering Information Using IOS show Commands Contshow Commands – Cont.Using the redirect and tee options

R1# show tech-support | redirect tftp://192.168.37.2/show-tech.txt

R1# show ip interface brief | tee flash:show-int-brief.txtInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 10.1.192.2 YES manual up upFastEthernet0/1 10.1.192.10 YES manual up upLoopback0 10.1.220.1 YES manual up up

R1# dir flash:Directory of flash:/1 -rw- 23361156 Mar 2 2009 16:25:54 -08:00 c1841-advipservicesk9mz.1243.bin2 -rw- 680 Mar 7 2010 02:16:56 -08:00 show-int-brief.txt

Chapter #9© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 10: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Collecting and Filtering Information Using IOS show Commands Contshow Commands – Cont.Using the append option and the more command

R1# show version | append flash:show-commands.txt

R1# show ip interface brief | append flash:show-commands.txt

#R1# more flash:show-commands.txtCisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(23), RELEASE SOFTWARE (fc1)Technical Support: http://www.cisco.com/techsupportCopyright (c) 1986-2008 by Cisco Systems, Inc.py g ( ) y y ,Compiled Sat 08-Nov-08 20:07 by prod_rel_teamROM: System Bootstrap, Version 12.3(8r)T9, RELEASE SOFTWARE (fc1)R1 uptime is 3 days, 1 hour, 22 minutes< output omitted >Inte face IP Add ess OK? Method Stat sInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 10.1.192.2 YES manual up upFastEthernet0/1 10.1.192.10 YES manual up up

Chapter #10© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 11: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Collecting and Filtering Information Using IOS show Commands Contshow Commands – Cont.

ping ip-address | hostname [repeat repeat-count size

Router#

Parameter Description

ping ip address | hostname [repeat repeat count size datagram-size source [address | interface] df-bit]

repeat repeat-count

Number of ping packets that are sent to the destination address. The default is 5.

size datagram-size Size of the ping packet (in bytes). Default: 100 bytes.

source [address | The interface or IP address of the router to use as asource [address | interface]

The interface or IP address of the router to use as a source address for the probes.

df-bit Enables the "do-not-fragment" bit in the IP header.

Chapter #11© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 12: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Testing Network Connectivity Using Cisco IOS Commands ContCommands – Cont.Using the ping extended option: source

R1# ping 10.1.156.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.1.156.1, timeout is 2 seconds:!!!!!!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

R1# ping 10.1.156.1 source FastEthernet 0/0Type escape sequence to abort.Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.1.156.1, timeout is 2 seconds:Packet sent with a source address of 10.1.192.2 .....Success rate is 0 percent (0/5)Success rate is 0 percent (0/5)

Chapter #12© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 13: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Testing Network Connectivity Using Cisco IOS Commands ContCommands – Cont.Using the ping extended option: df-bit

R1# ping 10.1.221.1 size 1476 df-bitType escape sequence to abort.Sending 5, 1476-byte ICMP Echos to 10.1.221.1, timeout is 2 seconds:Packet sent with the DF bit set!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 184/189/193 ms

R1# ping 10.1.221.1 size 1477 df-bitType escape sequence to abort.yp p qSending 5, 1477-byte ICMP Echos to 10.1.221.1, timeout is 2 seconds:Packet sent with the DF bit setM.M.MSuccess rate is 0 percent (0/5)

Chapter #13© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 14: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Testing Network Connectivity Using Cisco IOS Commands ContCommands – Cont.Explanation of ping results characters ! Each exclamation point indicates receipt of a reply.p p p y . Each period indicates a timeout waiting for a reply. U A destination unreachable ICMP message was received. Q Source quench (destination too busy). M Could not fragment (MTU related). ? Unknown packet type ? Unknown packet type. & Packet lifetime exceeded

Chapter #14© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 15: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Testing Network Connectivity Using Cisco IOS Commands ContCommands – Cont.Using the ping extended prompt mode

R1# ping Protocol [ip]: Target IP address: 10.1.221.1Repeat count [5]: 1Datagram size [100]: Timeout in seconds [2]: Extended commands [n]: ySource address or interface: Type of service [0]: yp [ ]Set DF bit in IP header? [no]: yesValidate reply data? [no]: Data pattern [0xABCD]: Loose, Strict, Record, Timestamp, Verbose[none]: S eep ange of si es [n] ySweep range of sizes [n]: ySweep min size [36]: 1400Sweep max size [18024]: 1500Sweep interval [1]: Type escape sequence to abort.

Chapter #15© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Sending 101, [1400..1500]-byte ICMP Echos to 10.1.221.1, timeout is 2 seconds:<output omitted>

Page 16: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Testing Network Connectivity Using Cisco IOS Commands ContCommands – Cont.Using Telnet to test the Transport and Application Layer

R1# telnet 192.168.37.2 80Trying 192.168.37.2, 80 ... OpenGET<html><body><h1>It works!</h1></body></html><html><body><h1>It works!</h1></body></html>[Connection to 192.168.37.2 closed by foreign host]

R1# telnet 192.168.37.2 25R1# telnet 192.168.37.2 25Trying 192.168.37.2, 25 ... % Connection refused by remote host

Chapter #16© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 17: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Collecting Real-time Information Using Cisco IOS debug CommandsIOS debug CommandsThe debug ip packet command output

R1# debug ip packetIP: s=172.69.13.44 (Fddi0), d=10.125.254.1 (Serial2), g=172.69.16.2, forwardIP: s=172.69.1.57 (Ethernet4), d=10.36.125.2 (Serial2),IP: s 172.69.1.57 (Ethernet4), d 10.36.125.2 (Serial2), g=172.69.16.2, forwardIP: s=172.69.1.6 (Ethernet4), d=255.255.255.255, rcvd 2IP: s=172.69.1.55 (Ethernet4), d=172.69.2.42 (Fddi0), g=172.69.13.6, forwardforwardIP: s=172.69.89.33 (Ethernet2), d=10.130.2.156 (Serial2), g=172.69.16.2, forwardIP: s=172.69.1.27 (Ethernet4), d=172.69.43.126 (Fddi1), g=172.69.23.5, forwardg 172.69.23.5, forwardIP: s=172.69.1.27 (Ethernet4), d=172.69.43.126 (Fddi0), g=172.69.13.6, forwardIP: s=172.69.20.32 (Ethernet2), d=255.255.255.255, rcvd 2IP: s=172.69.1.57 (Ethernet4), d=10.36.125.2 (Serial2),

Chapter #17© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

IP: s 172.69.1.57 (Ethernet4), d 10.36.125.2 (Serial2), g=172.69.16.2, access denied

Page 18: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Collecting Real-time Information Using Cisco IOS debug Commands ContIOS debug Commands – Cont.The debug ip rip command output

R1# debug ip ripRIP: received v2 update from 10.1.1.2 on Serial0/0/0

30.0.0.0/8 via 0.0.0.0 in 1 hopsRIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (20.1.1.1)RIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (20.1.1.1)RIP: build update entries

10.0.0.0/8 via 0.0.0.0, metric 1, tag 030.0.0.0/8 via 0.0.0.0, metric 2, tag 0

RIP: sending v2 update to 224.0.0.9 via Serial0/0/0 (10.1.1.1)RIP: sending v2 update to 224.0.0.9 via Serial0/0/0 (10.1.1.1)RIP: build update entries

20.0.0.0/8 via 0.0.0.0, metric 1, tag 0RIP: received v2 update from 10.1.1.2 on Serial0/0/0

30.0.0.0/8 via 0.0.0.0 in 1 hops30.0.0.0/8 via 0.0.0.0 in 1 hopsRIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (20.1.1.1)

Chapter #18© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 19: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Collecting Real-time Information Using Cisco IOS debug Commands ContIOS debug Commands – Cont.Using the debug condition command

R2# debug ip ripRIP: received v2 update from 10.0.23.3 on FastEthernet0/1

10.0.3.0/24 via 0.0.0.0 in 1 hopsRIP: received v2 update from 10.0.12.1 on FastEthernet0/0

/10.0.1.0/24 via 0.0.0.0 in 1 hopsRIP: sending v2 update to 224.0.0.9 via FastEthernet0/1 (10.0.23.2)<output omitted>

R2# debug condition interface fa0/1# g /Condition 1 setRIP: sending v2 update to 224.0.0.9 via FastEthernet0/1 (10.0.23.2)RIP: build update entries

10.0.1.0/24 via 0.0.0.0, metric 2, tag 010 0 2 0/24 ia 0 0 0 0 met ic 1 tag 010.0.2.0/24 via 0.0.0.0, metric 1, tag 010.0.12.0/24 via 0.0.0.0, metric 1, tag 0

RIP: received v2 update from 10.0.23.3 on FastEthernet0/110.0.3.0/24 via 0.0.0.0 in 1 hops

<output omitted>

Chapter #19© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 20: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Diagnosing Hardware Issues Using Cisco IOS CommandsCommandsChecking CPU utilization with show processes cpu

Chapter #20© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 21: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Diagnosing Hardware Issues Using Cisco IOS Commands ContCommands – Cont.Checking memory utilization with the show memory commandR1# show memory

Head Total(b) Used(b) Free(b) Lowest(b) Largest(b)Processor 820B1DB4 26534476 19686964 6847512 6288260 6712884

I/O 3A00000 6291456 3702900 2588556 2511168 2577468

Chapter #21© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 22: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Diagnosing Hardware Issues Using Cisco IOS Commands ContCommands – Cont.Checking interfaces with the show interfaces command

R1# show interfaces FastEthernet 0/0FastEthernet0/0 is up, line protocol is up <output omitted>

Last input 00:00:00, output 00:00:01, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/1120/0 (size/max/drops/flushes); Total output drops: 0Queueing strategy: fifoOutput queue: 0/40 (size/max)5 minute input rate 2000 bits/sec, 3 packets/secp / , p /5 minute output rate 0 bits/sec, 1 packets/sec

110834589 packets input, 1698341767 bytesReceived 61734527 broadcasts, 0 runts, 0 giants, 565 throttles30 input errors, 5 CRC, 1 frame, 0 overrun, 25 ignored0 atchdog0 watchdog0 input packets with dribble condition detected35616938 packets output, 526385834 bytes, 0 underruns0 output errors, 0 collisions, 1 interface resets0 babbles, 0 late collision, 0 deferred

Chapter #22© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

0 lost carrier, 0 no carrier0 output buffer failures, 0 output buffers swapped out

Page 23: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Diagnosing Hardware Issues Using Cisco IOS Commands ContCommands – Cont.Additional hardware commands and tools: show controllers show platform show inventory show diag

Generic Online Diagnostics (GOLD) Time Domain Reflectometer

Chapter #23© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 24: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Using Specialized M i t dMaintenance and Troubleshooting Tools

Chapter #24© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 25: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Using Traffic Capturing Tools

Sample screen shot from a protocol analyzer

Chapter #25© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 26: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Using Traffic Capturing Tools – Cont.

Switched Port Analyzer (SPAN)

Chapter #26© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 27: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Using Traffic Capturing Tools – Cont.

Remote Switched Port Analyzer (RSPAN)

Chapter #27© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 28: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Using Traffic Capturing Tools – Cont.

Remote Switched Port Analyzer (RSPAN) – Cont.

Chapter #28© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 29: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Gathering Information with SNMP

A Simple SNMP Configuration Example

Chapter #29© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 30: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Gathering Information with NetFlow

A Simple NetFlow Configuration Example

Chapter #30© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 31: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Gathering Information with NetFlow

show ip cache flow command output

R1# show ip cache flow<output omitted>SrcIf SrcIPaddress DstIF DstIPaddress Pr SrcP DstP PktsSe0/0/0.121 10.1.194.10 Null 224.0.0.10 58 0000 0000 27

/ /Se0/0/0.121 10.1.194.14 Null 224.0.0.10 58 0000 0000 28Fa0/0 10.1.192.5 Null 224.0.0.10 58 0000 0000 28Fa0/1 10.1.192.13 Null 224.0.0.10 58 0000 0000 27Fa0/1 10.1.152.1 Local 10.1.220.2 01 0000 0303 1Se0/0/1 10.1.193.6 Null 224.0.0.10 58 0000 0000 28/ /Fa0/1 10.1.152.1 Se0/0/1 10.1.163.193 11 0666 E75E 1906Se0/0/1 10.1.163.193 Fa0/0 10.1.152.1 11 E75E 0666 1905

Chapter #31© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 32: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

SNMP and NetFlow Comparison Both are used to gather statistics from Cisco switches and

routers. SNMP’s focus is primarily on the collection of various statistics SNMP s focus is primarily on the collection of various statistics

from components within network devices. A NetFlow enabled device collects information about the IP traffic

flowing through the device. g g NetFlow uses a “push” based model – devices send data to a

collector. SNMP is considered pull-based – the NMS queries SNMP p q

Agents. NetFlow only gathers traffic statistics. SNMP can also collect many other performance indicators such y

as interface errors, CPU usage, and memory usage. Statistics collected using NetFlow have more granularity. NetFlow is currently supported on most Cisco IOS routers but

l th 4500 d 6500 i it h

Chapter #32© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

only the 4500 and 6500 series switches

Page 33: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Enabling Network Event Notification

A key element of a proactive network management strategy is fault notification. SNMP and syslog - two popular protocols that are used for

the purpose of event notification.E b dd d E t M (EEM) Ci IOS f t th t Embedded Event Manager (EEM) - Cisco IOS feature that provides an advanced method to create custom events and define actions to be taken in response to those events.p

Chapter #33© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 34: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Enabling Network Event Notification – SNMP

Enabling SNMP trap notification

Chapter #34© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 35: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Enabling Network Event Notification – Embedded Event Manager (EEM)Event Manager (EEM) Enables custom policies that trigger actions based on

events: • syslog messages• Cisco IOS counter changes• SNMP MIB object changes• SNMP MIB object changes• SNMP traps• CLI command execution• Timers and many other options

Actions can consist of:• Sending SNMP traps or syslog messages• Sending SNMP traps or syslog messages• Executing CLI commands• Sending email

Chapter #35© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

• Running tool command language (TCL) scripts

Page 36: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Enabling Network Event Notification – EEM

A sample EEM Configuration

R1(config)# event manager applet CONFIG-STARTED

R1(config-applet)# event cli pattern "configure terminal" sync no skip no occurs 1

R1(config-applet)# action 1.0 syslog priority critical msg "Configuration mode was entered"

R1(config-applet)# action 2.0 syslog priority informational msg "Change ( g pp )# y g p y g gcontrol policies apply. Authorized access only."

Chapter #36© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 37: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Enabling Network Event Notification – EEM

A sample EEM policy result

R1# conf tEnter configuration commands, one per line. End with CNTL/Z.

R1(config)#Jul 13 03:24:41.473 PDT: %HA_EM-2-LOG: CONFIG-STARTED: Configuration mode was enteredJul 13 03:24:41.473 PDT: %HA_EM-6-LOG: CONFIG-STARTED: Change control policies apply. Authorized access only

For more information, visit http://cisco.com/go/instrumentation

Chapter #37© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 38: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Chapter 3 Summary

Filtering using Cisco IOS commands can be accomplished by:• Specifying an IP address as an option with the show ip route command.• Specifying a prefix as an option with the show ip route command followed by the longer-prefixes keyword.

• Appending a pipe operator “|” to the show command followed by one of the keywords include, exclude, or begin and then a regular expression. , , g g p

• Selecting specific portions of the configuration output with any associated lines. For example, the command show running-config | section router.

Command output can be redirected, copied or appended to a file by yusing the pipe operator “|” and the following options:• The redirect option - Output will not be displayed on the screen, but redirected to a

text file that can be stored locally in flash memory or on a TFTP or FTP server.• The tee option - Displays output on the screen and copies it to a text file.• The append option – Similar to the redirect option, but allows appending output to a file

instead of replacing that file.

Chapter #38© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 39: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Chapter 3 Summary – Cont.

Ping is an excellent connectivity-testing tool, especially when used with its options such as repeat, size, source, and df-bit. If you type ping with no IP address and press Enter, the extended ping dialog allows you to choose more options such as sweep sizeschoose more options such as sweep sizes. Telnet allows Transport Layer and partial Application Layer

testing using a session to any TCP port of an IP device. If the port is active you will get a response such as “Open”. A “no” response or refusal indicates that either the port is not active on the target IP device or that security features don’t g yallow you to connect to that port.

Chapter #39© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 40: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Chapter 3 Summary – Cont. Cisco IOS Software includes commands to diagnose hardware operation.

Commands that are common to both routers and switches are:• show processes cpu• show processes cpu

• show memory

• show interfaces

Other commands that can be useful in troubleshooting hardware related Other commands that can be useful in troubleshooting hardware related problems are:• show controllers

• show platformshow platform

• show inventory

• show diag

Some features that can be used to diagnose interface hardware or cablingSome features that can be used to diagnose interface hardware or cabling issues are:• Generic Online Diagnostics (GOLD)• Time Domain Reflectometer (TDR)

Chapter #40© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

( )

Page 41: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Chapter 3 Summary – Cont.

Examples of network monitoring and event reporting tools are:• Logging system messages to syslog• Event notification using SNMP• Event notification using the Embedded Event Manager (EEM) Examples of incident related information gathering tools are SPAN and p g g

RSPAN (used for traffic capturing). Examples of baseline creation and traffic accounting tools are:

• Statistics gathering using SNMPStatistics gathering using SNMP• Traffic accounting using NetFlow Packet sniffers can be used to capture packets in order to allow detailed

analysis of packet flows Taking packet captures at various points in theanalysis of packet flows. Taking packet captures at various points in the network allows you to spot potential differences.

Two main technologies that can be used to create a baseline of network usage and performance are SNMP and NetFlow

Chapter #41© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

usage and performance are SNMP and NetFlow.

Page 42: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Chapter 3 Labs

Lab 3-1 Assembling Maintenance and Troubleshooting Tools

Chapter #42© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public

Page 43: Chapter 3: Using Maintenance &T bl h ti& Troubleshooting Tools … · 2016-03-14 · Collecting and Filtering Information Using IOS show Commandsshow Commands Filtering show ip route

Chapter #43© 2007 – 2010, Cisco Systems, Inc. All rights reserved. Cisco Public