{"id":461,"date":"2022-09-22T13:04:51","date_gmt":"2022-09-22T18:04:51","guid":{"rendered":"https:\/\/cloudlearning365.com\/?p=461"},"modified":"2024-01-19T23:05:51","modified_gmt":"2024-01-20T04:05:51","slug":"packet-capture-on-cisco-isr","status":"publish","type":"post","link":"https:\/\/cloudlearning365.com\/?p=461","title":{"rendered":"Packet capture on Cisco ISR\/CSR"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Learned this from my friend <a href=\"https:\/\/www.linkedin.com\/in\/rtrentin73\/\">Ricardo<\/a> today, no longer running blind trying to figure out if a specific packet is received and what the router did with it.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">To check if packet capture is already enabled:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show debugging<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To enable capture from specific IP<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>debug platform condition ipv4 &lt;ip\/cidr&gt; both<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To start the capture and tell it the max packet to be captured<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>debug platform condition start\ndebug platform packet-trace packet 1024<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To check the capture result<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show platform packet-trace summary<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example output of above command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Pkt   Input             Output            State  Reason\n0     Gi0\/0\/0.703       Gi0\/0\/1.32        FWD    \n1     Gi0\/0\/0.703       Gi0\/0\/1.32        FWD    \n2     Gi0\/0\/0.703       Gi0\/0\/1.32        FWD    \n3     Gi0\/0\/0.703       Gi0\/0\/1.32        FWD    \n4     Gi0\/0\/0.703       Gi0\/0\/1.32        FWD   <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To check the detail of specific packet, eg packet 3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show platform packet-trace packet 3<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example of above command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Packet: 3           CBUG ID: 18\nSummary\n  Input     : GigabitEthernet0\/0\/0.703\n  Output    : GigabitEthernet0\/0\/1.32\n  State     : FWD \n  Timestamp\n    Start   : 90348958754799 ns (09\/22\/2022 18:40:07.21077 UTC)\n    Stop    : 90348958764809 ns (09\/22\/2022 18:40:07.21087 UTC)\nPath Trace\n  Feature: IPV4(Input)\n    Input       : GigabitEthernet0\/0\/0.703\n    Output      : &lt;unknown&gt;\n    Source      : 10.64.0.73\n    Destination : 10.1.32.100\n    Protocol    : 1 (ICMP)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br><br>To reset <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>clear platform condition all\nclear platform packet-trace statistics\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Another method<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Create access list named CAPTURE<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>conf t\nip access-list extended CAPTURE\npermit ip any any\nend<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Enable and setup capture name &#8216;CAP&#8217; using access list named CAPTURE, add interface g1, specify both directions, and running circular buffer (new override old when filled up)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>monitor capture CAP access-list CAPTURE interface g1 both buffer circular<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It&#8217;s possible to add additional interfaces to be captured, eg following adds Tunnel 1 to be captured<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>monitor cap CAP interface Tunnel 1 both<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To check current capture setting<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show monitor cap CAP<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Start\/Stop\/Clear capture<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>monitor cap CAP start\nmonitor cap CAP stop\nmonitor cap CAP clear<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To view the capture<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show monitor cap CAP buffer brief<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To view the capture for specific IP:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show monitor cap CAP buffer brief | inc 33.33.33.33<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Learned this from my friend Ricardo today, no longer running blind trying to figure out if a specific packet is received and what the router did with it.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-461","post","type-post","status-publish","format-standard","hentry","category-cisco"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Learned this from my friend Ricardo today, no longer running blind trying to figure out if a specific packet is received and what the router did with it. To check if packet capture is already enabled: show debugging To enable capture from specific IP debug platform condition ipv4 both To start the capture and\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Jun Ye\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/cloudlearning365.com\/?p=461\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"cloudlearning365 - Cloud Learning 365\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Packet capture on Cisco ISR\/CSR - cloudlearning365\" \/>\n\t\t<meta property=\"og:description\" content=\"Learned this from my friend Ricardo today, no longer running blind trying to figure out if a specific packet is received and what the router did with it. To check if packet capture is already enabled: show debugging To enable capture from specific IP debug platform condition ipv4 both To start the capture and\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/cloudlearning365.com\/?p=461\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-09-22T18:04:51+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-01-20T04:05:51+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Packet capture on Cisco ISR\/CSR - cloudlearning365\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Learned this from my friend Ricardo today, no longer running blind trying to figure out if a specific packet is received and what the router did with it. To check if packet capture is already enabled: show debugging To enable capture from specific IP debug platform condition ipv4 both To start the capture and\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?p=461#blogposting\",\"name\":\"Packet capture on Cisco ISR\\\/CSR - cloudlearning365\",\"headline\":\"Packet capture on Cisco ISR\\\/CSR\",\"author\":{\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/#organization\"},\"datePublished\":\"2022-09-22T13:04:51-05:00\",\"dateModified\":\"2024-01-19T23:05:51-05:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?p=461#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?p=461#webpage\"},\"articleSection\":\"cisco\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?p=461#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cloudlearning365.com\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?cat=11#listItem\",\"name\":\"cisco\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?cat=11#listItem\",\"position\":2,\"name\":\"cisco\",\"item\":\"https:\\\/\\\/cloudlearning365.com\\\/?cat=11\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?p=461#listItem\",\"name\":\"Packet capture on Cisco ISR\\\/CSR\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?p=461#listItem\",\"position\":3,\"name\":\"Packet capture on Cisco ISR\\\/CSR\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?cat=11#listItem\",\"name\":\"cisco\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/#organization\",\"name\":\"cloudlearning365\",\"description\":\"Cloud Learning 365\",\"url\":\"https:\\\/\\\/cloudlearning365.com\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?author=2#author\",\"url\":\"https:\\\/\\\/cloudlearning365.com\\\/?author=2\",\"name\":\"Jun Ye\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?p=461#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7466a2c255038bbc3f25d69c0a3064fbee426fc68053479ec307b1ef08f822d7?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Jun Ye\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?p=461#webpage\",\"url\":\"https:\\\/\\\/cloudlearning365.com\\\/?p=461\",\"name\":\"Packet capture on Cisco ISR\\\/CSR - cloudlearning365\",\"description\":\"Learned this from my friend Ricardo today, no longer running blind trying to figure out if a specific packet is received and what the router did with it. To check if packet capture is already enabled: show debugging To enable capture from specific IP debug platform condition ipv4 both To start the capture and\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?p=461#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/?author=2#author\"},\"datePublished\":\"2022-09-22T13:04:51-05:00\",\"dateModified\":\"2024-01-19T23:05:51-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/#website\",\"url\":\"https:\\\/\\\/cloudlearning365.com\\\/\",\"name\":\"cloudlearning365\",\"description\":\"Cloud Learning 365\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/cloudlearning365.com\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Packet capture on Cisco ISR\/CSR - cloudlearning365","description":"Learned this from my friend Ricardo today, no longer running blind trying to figure out if a specific packet is received and what the router did with it. To check if packet capture is already enabled: show debugging To enable capture from specific IP debug platform condition ipv4 both To start the capture and","canonical_url":"https:\/\/cloudlearning365.com\/?p=461","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/cloudlearning365.com\/?p=461#blogposting","name":"Packet capture on Cisco ISR\/CSR - cloudlearning365","headline":"Packet capture on Cisco ISR\/CSR","author":{"@id":"https:\/\/cloudlearning365.com\/?author=2#author"},"publisher":{"@id":"https:\/\/cloudlearning365.com\/#organization"},"datePublished":"2022-09-22T13:04:51-05:00","dateModified":"2024-01-19T23:05:51-05:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/cloudlearning365.com\/?p=461#webpage"},"isPartOf":{"@id":"https:\/\/cloudlearning365.com\/?p=461#webpage"},"articleSection":"cisco"},{"@type":"BreadcrumbList","@id":"https:\/\/cloudlearning365.com\/?p=461#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/cloudlearning365.com\/#listItem","position":1,"name":"Home","item":"https:\/\/cloudlearning365.com\/","nextItem":{"@type":"ListItem","@id":"https:\/\/cloudlearning365.com\/?cat=11#listItem","name":"cisco"}},{"@type":"ListItem","@id":"https:\/\/cloudlearning365.com\/?cat=11#listItem","position":2,"name":"cisco","item":"https:\/\/cloudlearning365.com\/?cat=11","nextItem":{"@type":"ListItem","@id":"https:\/\/cloudlearning365.com\/?p=461#listItem","name":"Packet capture on Cisco ISR\/CSR"},"previousItem":{"@type":"ListItem","@id":"https:\/\/cloudlearning365.com\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/cloudlearning365.com\/?p=461#listItem","position":3,"name":"Packet capture on Cisco ISR\/CSR","previousItem":{"@type":"ListItem","@id":"https:\/\/cloudlearning365.com\/?cat=11#listItem","name":"cisco"}}]},{"@type":"Organization","@id":"https:\/\/cloudlearning365.com\/#organization","name":"cloudlearning365","description":"Cloud Learning 365","url":"https:\/\/cloudlearning365.com\/"},{"@type":"Person","@id":"https:\/\/cloudlearning365.com\/?author=2#author","url":"https:\/\/cloudlearning365.com\/?author=2","name":"Jun Ye","image":{"@type":"ImageObject","@id":"https:\/\/cloudlearning365.com\/?p=461#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/7466a2c255038bbc3f25d69c0a3064fbee426fc68053479ec307b1ef08f822d7?s=96&d=mm&r=g","width":96,"height":96,"caption":"Jun Ye"}},{"@type":"WebPage","@id":"https:\/\/cloudlearning365.com\/?p=461#webpage","url":"https:\/\/cloudlearning365.com\/?p=461","name":"Packet capture on Cisco ISR\/CSR - cloudlearning365","description":"Learned this from my friend Ricardo today, no longer running blind trying to figure out if a specific packet is received and what the router did with it. To check if packet capture is already enabled: show debugging To enable capture from specific IP debug platform condition ipv4 both To start the capture and","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/cloudlearning365.com\/#website"},"breadcrumb":{"@id":"https:\/\/cloudlearning365.com\/?p=461#breadcrumblist"},"author":{"@id":"https:\/\/cloudlearning365.com\/?author=2#author"},"creator":{"@id":"https:\/\/cloudlearning365.com\/?author=2#author"},"datePublished":"2022-09-22T13:04:51-05:00","dateModified":"2024-01-19T23:05:51-05:00"},{"@type":"WebSite","@id":"https:\/\/cloudlearning365.com\/#website","url":"https:\/\/cloudlearning365.com\/","name":"cloudlearning365","description":"Cloud Learning 365","inLanguage":"en-US","publisher":{"@id":"https:\/\/cloudlearning365.com\/#organization"}}]},"og:locale":"en_US","og:site_name":"cloudlearning365 - Cloud Learning 365","og:type":"article","og:title":"Packet capture on Cisco ISR\/CSR - cloudlearning365","og:description":"Learned this from my friend Ricardo today, no longer running blind trying to figure out if a specific packet is received and what the router did with it. To check if packet capture is already enabled: show debugging To enable capture from specific IP debug platform condition ipv4 both To start the capture and","og:url":"https:\/\/cloudlearning365.com\/?p=461","article:published_time":"2022-09-22T18:04:51+00:00","article:modified_time":"2024-01-20T04:05:51+00:00","twitter:card":"summary_large_image","twitter:title":"Packet capture on Cisco ISR\/CSR - cloudlearning365","twitter:description":"Learned this from my friend Ricardo today, no longer running blind trying to figure out if a specific packet is received and what the router did with it. To check if packet capture is already enabled: show debugging To enable capture from specific IP debug platform condition ipv4 both To start the capture and"},"aioseo_meta_data":{"post_id":"461","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2023-04-07 16:51:23","updated":"2026-10-22 22:55:02","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cloudlearning365.com\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cloudlearning365.com\/?cat=11\" title=\"cisco\">cisco<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPacket capture on Cisco ISR\/CSR\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/cloudlearning365.com\/"},{"label":"cisco","link":"https:\/\/cloudlearning365.com\/?cat=11"},{"label":"Packet capture on Cisco ISR\/CSR","link":"https:\/\/cloudlearning365.com\/?p=461"}],"_links":{"self":[{"href":"https:\/\/cloudlearning365.com\/index.php?rest_route=\/wp\/v2\/posts\/461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudlearning365.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudlearning365.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudlearning365.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudlearning365.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=461"}],"version-history":[{"count":5,"href":"https:\/\/cloudlearning365.com\/index.php?rest_route=\/wp\/v2\/posts\/461\/revisions"}],"predecessor-version":[{"id":1666,"href":"https:\/\/cloudlearning365.com\/index.php?rest_route=\/wp\/v2\/posts\/461\/revisions\/1666"}],"wp:attachment":[{"href":"https:\/\/cloudlearning365.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudlearning365.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudlearning365.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}