<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>yurisk.info &#187; IOS Cisco</title>
	<atom:link href="http://yurisk.info/tag/ios-cisco/feed/" rel="self" type="application/rss+xml" />
	<link>http://yurisk.info</link>
	<description>Yuri Slobodyanyuk&#039;s blog on IT Security and Networking</description>
	<lastBuildDate>Tue, 31 Jan 2012 11:28:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Archive IOS running configuration automatically for possible rollback</title>
		<link>http://yurisk.info/2011/09/23/archive-ios-running-configuration-automatically-for-possible-rollback/</link>
		<comments>http://yurisk.info/2011/09/23/archive-ios-running-configuration-automatically-for-possible-rollback/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 18:56:22 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS Cisco]]></category>
		<category><![CDATA[Video How-to]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1697</guid>
		<description><![CDATA[Here is a feature that will save you time and frustration in many possible scenarios &#8211; especially when managing Cisco routers in multi-user environment. Once enabled archiving saves periodically copy of the running configuration of IOS router to the flash or remote server. So next time something stops working after changes and you don&#8217;t know [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a feature that will save you time and frustration in many possible scenarios &#8211; especially when managing Cisco routers in multi-user environment. Once enabled archiving saves periodically copy of the running configuration of IOS router to the flash or remote server. So<br />
next time something stops working after changes and you don&#8217;t know which one caused this &#8211; just revert back to the working configuration that is readily available.</p>
<p><iframe src="http://player.vimeo.com/video/29482850" width="500" height="281" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/09/23/archive-ios-running-configuration-automatically-for-possible-rollback/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Encrypting preshared keys stored on the cisco IOS router</title>
		<link>http://yurisk.info/2011/07/15/encypting-preshared-keys-stored-on-the-cisco-ios-router/</link>
		<comments>http://yurisk.info/2011/07/15/encypting-preshared-keys-stored-on-the-cisco-ios-router/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 08:37:19 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS Cisco]]></category>
		<category><![CDATA[Video How-to]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1668</guid>
		<description><![CDATA[You never know where your router may end up . It may be RMA&#8217;ed without proper wiping the configuration first, it may be plain simple stolen. In any of these or other unfortunate cases the last thing you would want is for the attacker get passwords or other security information stored on the router. One [...]]]></description>
			<content:encoded><![CDATA[<p>You never know where your router may end up . It may be RMA&#8217;ed without proper wiping the configuration first, it may be plain simple stolen. In any of these or other unfortunate cases the last thing you would want is for the attacker get passwords or other security information stored on the router.<br />
One piece of such information is preshared key(s) , that by default are stored in clear text.<br />
To address this potential threat Cisco, starting IOS 12.3, provide AES encryption feature on IOS routers to encrypt the stored preshared keys. In video below I recorded you can see the walkthrough to enable and manage this security feature.<br />
Enjoy. As always suggestions, critics, comments are welcome .<br />
NB &#8211; Narration is in English.</p>
<p><iframe src="http://player.vimeo.com/video/26338845" width="500" height="306" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/07/15/encypting-preshared-keys-stored-on-the-cisco-ios-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco – how to schedule an unattended reload with EEM</title>
		<link>http://yurisk.info/2011/06/22/cisco-how-to-schedule-an-unattended-reload-with-eem/</link>
		<comments>http://yurisk.info/2011/06/22/cisco-how-to-schedule-an-unattended-reload-with-eem/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 18:34:06 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS Cisco]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1658</guid>
		<description><![CDATA[Good evening everyone, Today a colleague of mine asked if I had a ready-to-use template to schedule a reload of Cisco IOS router . -    &#8220;Of course, piece of cake, there should be millions of hits on it in Google&#8221; , was my thought. So, after 30 minutes of searching the mighty G and being [...]]]></description>
			<content:encoded><![CDATA[<p>Good evening everyone,<br />
Today a colleague of mine asked if I had a ready-to-use template to schedule a reload of Cisco IOS router .<br />
-    &#8220;Of course, piece of cake, there should be millions of hits on it in Google&#8221; , was my thought. So, after 30 minutes of searching the mighty G and being surprised to have found nothing I dragged from my notes this recipe dated 2007 but still valid as ever.<br />
Enjoy.<br /><strong>NB </strong>Word of warning to those trying to do it with built in KRON service of IOS – rebooting a router requires to answer  “yes” at the CLI prompt and therefore will NOT work with KRON, only EEM can do it.<br />
IOS used and tested – IOS 12.4T</p>
<div class="cmd">conf t<br />
Edge(config)#event manager applet ReloadMe<br />
Edge(config-applet)#event timer cron name ReloadMe cron-entry &#8220;05 09 * * *&#8221;<br />
Edge(config-applet)#action 33 reload<br />
wr mem </div>
<p>This will reload router every day at 09:05, for other formats see man page for cron in Linux</p>
<div class="cmdout">sh run<br />
&#8230;.<br />
event manager applet ReloadMe<br />
event timer cron name ReloadMe cron-entry &#8220;05 09 * * *&#8221;<br />
action 33 reload</div>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/06/22/cisco-how-to-schedule-an-unattended-reload-with-eem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco Netflow performance data</title>
		<link>http://yurisk.info/2011/03/13/cisco-netflow-performance-data/</link>
		<comments>http://yurisk.info/2011/03/13/cisco-netflow-performance-data/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 10:45:06 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS Cisco]]></category>
		<category><![CDATA[Netflow]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1529</guid>
		<description><![CDATA[Not much of a post but link to the Cisco site stating how much Netflow loads the Cisco routers: Netflow data sheet I, personally, do a lot of Netflow monitoring and can say that on unloaded routers , passing 2-5 mbits/sec of traffic, the additional load will be some 1-2% of CPU cycles. For the [...]]]></description>
			<content:encoded><![CDATA[<p>Not much of a post but link to the Cisco site stating how much Netflow loads the Cisco routers:<br />
<a href="http://www.cisco.com/en/US/technologies/tk543/tk812/technologies_white_paper0900aecd802a0eb9.html" target=_blank> Netflow data sheet</a><br />
I, personally, do a lot of Netflow monitoring and can say that on unloaded routers , passing 2-5 mbits/sec of traffic, the additional load will be some 1-2% of CPU cycles.  For the most loaded pair of routers I do monitoring for , two Cisco 2800 passing about 70 Mbits/sec of traffic and creating about 900 Mbytes of Netflow data a day each,  enabling Netflow added 8% of CPU load and they cope with it perfectly well.</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/03/13/cisco-netflow-performance-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Amazon book list for CCIE Security Lab exam</title>
		<link>http://yurisk.info/2011/02/18/my-amazon-book-list-for-ccie-security-lab-exam/</link>
		<comments>http://yurisk.info/2011/02/18/my-amazon-book-list-for-ccie-security-lab-exam/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 11:24:40 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[ASA/PIX Cisco]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS Cisco]]></category>
		<category><![CDATA[Cisco ASA]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1527</guid>
		<description><![CDATA[Not limited to CCIE Security Lab only, of course, here is the list of books I find really useful in preparing for the Lab . Amazon Listmania list]]></description>
			<content:encoded><![CDATA[<p>Not limited to CCIE Security Lab only, of course, here is the list of books I find really useful in preparing for the Lab .<br />
<a href="http://www.amazon.com/lm/R3OGPQZ5TKRS1I/ref=cm_sw_r_tw_lm_QqLxnb0FB4ZS3"target=_blank> Amazon Listmania list </a></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/02/18/my-amazon-book-list-for-ccie-security-lab-exam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The easiest way to disclose Cisco routers on the network and how to fix it</title>
		<link>http://yurisk.info/2010/10/29/the-easiest-way-to-disclose-cisco-route-on-the-network-and-how-to-fix-it/</link>
		<comments>http://yurisk.info/2010/10/29/the-easiest-way-to-disclose-cisco-route-on-the-network-and-how-to-fix-it/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 15:43:10 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS Cisco]]></category>
		<category><![CDATA[Scan of the week]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1376</guid>
		<description><![CDATA[Cisco gear has a well-known behaviour pattern that when you telnet to some weird and positively closed port on Cisco you get the uniform response of “Connection refused” . To add more precision it happens when a terminal line management access is enabled on the Cisco but your IP is not in the access-list allowing [...]]]></description>
			<content:encoded><![CDATA[<p>Cisco gear has a well-known behaviour pattern that when you telnet to some weird and positively closed port on Cisco you get the uniform response of “Connection refused” . To add more precision it happens when a terminal line management access is enabled on the Cisco but your IP is not in the access-list allowing access to the device. The funny thing about that is that only Cisco seem to do it , and given so, it makes exposing a Cisco device a no-brainer. I tested it on few dozens of Cisco routers (I don’t talk about other equipment from the Golden Gate folks) and it only confirmed this observation. Also I tested telnetting to the other vendors’ equipment and always got back time out. So far I’ve tried Juniper, Brocade, IBM, Huawei. To somehow fix this situation Cisco  actually have a feature in their Control Plane Protection toolbox just for that. Below I bring the configuration from IOS router that causes the router to time out connection attempts to the closed ports.</p>
<div class="cmdout">
class-map type port-filter match-any CLOSED_PORTS<br />
 match  closed-ports<br />
policy-map type port-filter FILTER_CLOSED_PORTS<br />
 class CLOSED_PORTS<br />
   drop<br />
control-plane host<br />
 service-policy type port-filter input FILTER_CLOSED_PORTS</div>
<p><strong>Testing.</strong><br />
Before the configuration:</p>
<div class="cmd"># telnet 19.6.24.51 444<br />
Trying 19.6.24.51&#8230;<br />
telnet: connect to address 19.6.24.51: Connection refused</div>
<p>After the configuration:</p>
<div class="cmd">[root@darkstar ~]# telnet 19.6.24.51 444<br />
Trying 19.6.24.51&#8230;<br />
telnet: connect to address 19.6.24.51: Connection timed out<br />
telnet: Unable to connect to remote host: Connection timed out</div>
<p>NB Unfortunately it is a half-solution cause if telnet access is enabled on the Cisco then connection attempts to the port 23 will elicit the same “Connection refused” . To close even this disclosure hole , disable telnet as the management protocol and switch to SSH.<br />
NB2 The good news for the pentesters out there is that rare ISP implement such protections</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2010/10/29/the-easiest-way-to-disclose-cisco-route-on-the-network-and-how-to-fix-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How come   assigning VPN user to specific group takes just one command but no one does it ?</title>
		<link>http://yurisk.info/2010/10/04/how-come-assigning-vpn-user-to-specific-group-takes-just-one-command-but-no-one-does-it/</link>
		<comments>http://yurisk.info/2010/10/04/how-come-assigning-vpn-user-to-specific-group-takes-just-one-command-but-no-one-does-it/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 10:36:29 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[ASA/PIX Cisco]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS Cisco]]></category>
		<category><![CDATA[Cisco ASA]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1171</guid>
		<description><![CDATA[Group locking, as Cisco call it, has been available since ancient IOS 12.2(13)T (circa 2003) and still – most of the set ups I see of clients’ VPN servers at most use different VPN groups for different privilege access requirements and blissfully ignore the fact that all it takes to get more enabled access is [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Group locking</strong>, as Cisco call it, has been available since ancient IOS 12.2(13)T (circa 2003) and still – most of the set ups I see of clients’ VPN servers at most use different VPN groups for different privilege access requirements and blissfully ignore the fact that all it takes to get more enabled access is to know the pre-shared key of the other VPN group. And believe me &#8211; it is not that hard when group pre-share key (PSK) is known to half of the company. So if you happen to stumble on this post bear with me and let’s fast forward from accepted practices of 90’s to 2010.<br />
Below are possible ways to lock users connecting to Cisco device (IOS router and ASA to be precise) to predefined VPN groups and do it forcefully so that even if the end user knows the PSK of other VPN group(s) she won’t be able to connect with it.</p>
<p><strong>Case 1. Cisco IOS router acting as Ezvpn server , users are authenticated locally by the router.</strong> Let&#8217;s name it &#8211; group is JUNIPER , and the local user is John.Chambers and we want to confine this user to this group for ever.<br />
Enable group locking for specific group (don&#8217;t forget to do the same for all VPN groups)</p>
<div class="cmd">R1(config)#crypto isakmp client configuration group JUNIPER<br />
R1(config-isakmp-group)#group-lock</div>
<p>Now restrict user to be able to use this group only. For that you have to reconfigure user to look like username followed by delimeter (that can be any of @, %, /, \) and then group name , to be concrete</p>
<div class="cmd">R1(config)#username John.Chambers@JUNIPER secret Idontworkforsalaryanymore</div>
<p>from now on user John.Chambers will be able to authenticate with Cisco only using John.Chambers@JUNIPER . It overrides any user for VPN connection that already exists, that is if there is already user John.Chambers it will not be able to connect with the group JUNIPER . On the other hand anyone getting PSK of the VPN group JUNIPER will fail authentication if the user is not explicitly reconfigured in the new format.<br />
<strong>Case 2 . Cisco IOS router users are authenticated using external Radius server.</strong> Unlike local authentication, with Radius you create the user as usual – John.Chambers but then assign it in the Settings cisco-av-pair attribute called user-vpn-group, like this:<br />
<strong>ipsec:user-vpn-group=JUNIPER</strong><br />
<strong>Case 3.ASA Local username authentication.</strong><br />
No fancy username/group configuration here, you just lock username to a group under general attributes of the user.</p>
<div class="cmd">ASA1(config)# username John.Chambers password Idontworkforsalaryanymore<br />
ASA1(config)# username John.Chambers attributes<br />
ASA1(config-username)# group-lock value JUNIPER</div>
<p><strong>Case 4. ASA Radius authentication . </strong><br />
Here also the VPn group is forced for the user settings using the following attribute:<br />
<strong>[3076\085] Tunnel-Group-Lock JUNIPER</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2010/10/04/how-come-assigning-vpn-user-to-specific-group-takes-just-one-command-but-no-one-does-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between ebgp-multihop and ttl-security.</title>
		<link>http://yurisk.info/2010/02/26/difference-between-ebgp-multihop-and-ttl-security/</link>
		<comments>http://yurisk.info/2010/02/26/difference-between-ebgp-multihop-and-ttl-security/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 18:39:12 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Fortigate]]></category>
		<category><![CDATA[IOS Cisco]]></category>
		<category><![CDATA[Stories from the trenches]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=512</guid>
		<description><![CDATA[Once upon a time reading some CCIE paper at work I asked myself a question : “Why would someone bother to invent ttl-security and even write RFC http://tools.ietf.org/html/rfc5082 on it when multi-hop EBGP feature provides the same end result ?” . The results of my busy/doing-nothing activity I present here.First some background. For some (unknown [...]]]></description>
			<content:encoded><![CDATA[<p>Once upon a time reading some CCIE paper at work I asked myself a question : “Why would someone bother to invent ttl-security and even write RFC http://tools.ietf.org/html/rfc5082 on it when multi-hop EBGP feature provides the same end result ?” .<br />
The results of my busy/doing-nothing activity I present here.<br />First some background. For some (unknown to me) reasons BGP peering was envisioned as TCP connection between directly connected routers, by default. To proceed with this design (worth checking BGP RFCs if it was actually an obligation)  vendors (Cisco,Juniper and even Fortinet) implemented all BGP protocol communication using  TTL=1 in TCP packets being exchanged. As the logical consequence of this if a router was placed more than 1 hop away from its peer  BGP session could  not be established. To provide for such set ups when peers are many hops away the ebgp-multihop term was coined – on configuration level you can specify that BGP peer is that hops far away . <br />What happens in fact is that when you specify such multi-hop BGP peer the router starts sending BGP packets with TTL being equal to the number of hops you set . That means if I set peer to be 3 hops away and some attacker tries to spoof legit peer’s IP but is 4 hops away – such attack won’t succeed cause my router will receive spoofed BGP packets ok but will send replies with TTL of 3 which will expire just 1 hop away from the attacker.<br />
Questionable , but security .  So why ttl security?<br />
This feature indeed enforces that BGP peer is no more than given hops away . And here comes the difference – it enforces it inbound . It works this way – after you enable ttl security on the BGP peer session and specify how many hops away this peer is allowed to be, your router<br />
checks incoming TCP packets from this peer and does this simple calculation &#59; configured value &lt;= 255 – hops-away-to-peer , if it holds true your router goes on with establishing BGP session , if not – session is shut down. Regarding outgoing TTL values – may be it is Cisco-only thing, may be not , but the moment you enable ttl security for some BGP peer on Cisco the router itself starts sending BGP-related packets to this peer with initial ttl being equal to 255. I guess it is logical that if you enforce on your side ttl security the peering side will want to do the same.<br />
<br />When ttl rule is broken we see in the debug session:<br />
Dec 27 19:08:04.103: %BGP-4-INCORRECT_TTL: Discarded message with TTL 1 from 124.2.11.15<br />
And neighbor status is:<br />
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd<br />
124.2.11.15   4 13462      33      63        0    0    0 00:04:31 Idle</p>
<p>#sh ip bgp neighbors 124.2.11.15<br />
BGP neighbor is 124.2.11.15,  remote AS 13462, external link<br />
  BGP version 4, remote router ID 0.0.0.0<br />
  BGP state = Closing</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2010/02/26/difference-between-ebgp-multihop-and-ttl-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Capture packets at IOS Cisco router or finally we have a sniffer</title>
		<link>http://yurisk.info/2010/02/01/capture-packets-at-ios-cisco-router-or-finally-we-have-a-sniffer/</link>
		<comments>http://yurisk.info/2010/02/01/capture-packets-at-ios-cisco-router-or-finally-we-have-a-sniffer/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 07:33:06 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS Cisco]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=466</guid>
		<description><![CDATA[Finally it is here – built-in sniffer on the Cisco IOS platform ! Starting IOS 12.4(20) release Cisco introduces brand new feature called Embedded Packet Capture (EPC) that allows us to capture raw packets on the Cisco router and then later analyze it offline. It can capture any traffic passing through the router, destined to [...]]]></description>
			<content:encoded><![CDATA[<p>Finally it is here – built-in sniffer on the Cisco IOS platform ! Starting IOS 12.4(20) release Cisco introduces  brand new feature<br />
called <strong>Embedded Packet Capture (EPC)</strong> that allows us to capture raw packets on the Cisco router and then later analyze it offline.<br />
It can capture any traffic passing through the router, destined to it, or originated from it . The captured packets are stored in DRAM<br />
of the router from where you can upload the capture file using HTTP/SCP/HTTPS/TFTP/FTP anywhere and then dissect it. The capture<br />
is stored using PCAP format , so any protocol dissector will understand this file, including the favorite one WIreshark/Ethereal.<br />
Now some limitations:<br />
 &#8211; CEF has to be enabled on the router;<br />
 &#8211; The capture is stored in the DRAM , so you’d better have enough of it;<br />
 &#8211; While no maximum capture buffer or packet size is stated I guess it depends on the platform (see tests below);<br />
 &#8211; IOS has to be 12.4(20) or higher.<br />
Let&#8217;s now look at steps to configure the capture on the router and then look at the results.<br />
Configuration involves 5 steps:</p>
<ol>
<li> Create named capture buffer in router memory (including filters what to capture and what not to). Multiple buffers simultaneously are supported;</li>
<li>  Create named capture point , again, multiple capture points active at the same time are possible. Using multiple capture buffers and capture points gives us full flexibility in the process – I can say capture packets at the same time inbound on incoming interface and<br />
store it to the memory buffer A while the same traffic going outbound on outgoing interface capture to another buffer B and have this<br />
way capture of the same traffic at 2 distinct points on the router. Your imagination is the limit here.</li>
<li> Associate capture buffers with capture points;</li>
<li> Start/stop capture;</li>
<li>  Export captured packets as PCAP file elsewhere or see it in raw format on the router itself (in case binary is your first language).</li>
</ol>
<p>Now I will walk through configuring,all this is being done on Cisco 2821 (250 Mb of DRAM). IOS is being Cisco IOS Software, 2800 Software (C2800NM-IPBASEK9-M), Version 12.4(24)T1, RELEASE SOFTWARE (fc3)<br />
    1)  Create named capture buffer in memory. Packets are stored there, as this is DRAM storage if router does restart all capture data will be lost. You also  specify filter for which  packets are to be captured , if none given it will capture ALL packets at the<br />
capture point. Not surprisingly for filtering you use access-lists, standard or extended, named or numbered.</p>
<p>  In my testing I am trying to capture all SMTP traffic passing through the interface Giga0/1. Accordingly the ACL for it will be:</p>
<div class="cmd">Eldorado(config)#ip access-list extended MAIL_TEST<br />
 Eldorado (config-ext-nacl)# permit tcp any any eq smtp </div>
<p>Now I create capture buffer in the memory:</p>
<div class="cmd">Eldorado #monitor capture buffer MAIL filter access-list MAIL_TEST </div>
<p>NOTE: Fo the particular platform (cisco 2821) the limits and defaults for the buffer are these:</p>
<div class="cmd">Eldorado#monitor capture buffer MAIL  size ?<br />
  &lt;1-5127gt;  Buffer size in Kbytes : 512K or less (default is 256K)</div>
<p>NOTE 2: In Cisco.com documentation this and other commands related to capture have options that trying to use them gave error.<br />
For example Command reference gives option to configure length of the packet to be captured (instead of default 68 bytes) :</p>
<div class="cmd">Eldorado #monitor capture buffer MAIL length<br />
                                      ^<br />
% Invalid input detected at &#8216;^&#8217; marker. </div>
<p>2) Creating capture point (i.e. where to capture packets on the router):</p>
<div class="cmd">Eldorado# monitor capture point ip cef GIGA  GigabitEthernet0/1 both</div>
<p>Here I specify interface GigabitEthernet0/1 as point of capture and also set that traffic is to be captured in both directions (or you can use in/out instead)</p>
<p>3) Associate capture buffer with capture point (it does not start capture yet):</p>
<div class="cmd">Eldorado#monitor capture point associate GIGA MAIL</div>
<p>4) Start  capturing packets:</p>
<div class="cmd">Eldorado#monitor capture point start GIGA</div>
<p>4.1)Stop capture (optional) , you can export capture in the next step without stopping it:</p>
<div class="cmd">Eldorado# monitor capture point stop GIGA</div>
<p>5)	Export  captured packets as file to external server , here I use SCP as protocol:</p>
<div class="cmd">Eldorado#monitor capture  buffer MAIL export scp://rumba@216.163.142.1:/capture.cap<br />Writing capture.cap<br />
Password:<br />
 Sink: C0644 309346 capture.cap<br />
!!<br />
Eldorado#</div>
<p>-  Now you can see the capture file with Wireshark .<br />
There is it to it.</p>
<p>Verifying.<br />
  &#8211; To see  parameters of the capture:</p>
<div class="cmd">Eldorado#show monitor capture buffer all parameters</div>
<pre> Capture buffer size (linear buffer)
Buffer Size : 262144 bytes, Max Element Size : 68 bytes, Packets : 0
Allow-nth-pak : 0, Duration : 0 (seconds), Max packets : 0, pps : 0
Associated Capture Points:
Configuration:
monitor capture buffer siz
Capture buffer MAIL (circular buffer)
Buffer Size : 512000 bytes, Max Element Size : 1024 bytes, Packets : 363
Allow-nth-pak : 0, Duration : 0 (seconds), Max packets : 0, pps : 0
Associated Capture Points:
Name : GIGA, Status : Inactive
Configuration:
monitor capture buffer MAIL size 500 max-size 1024 circular
monitor capture point associate GIGA MAIL
monitor capture buffer MAIL filter access-list MAIL_TEST
Eldorado#  </pre>
<p>- Seeing contents of the captured packets on the router :</p>
<div class="cmd">#   show monitor capture buffer MAIL dump </div>
<pre>08:18:59.995 UTC Jan 25 2010 : IPv4 LES CEF    : Gi0/1 None

45514C50:                            002414F7              .$.w
45514C60: 2723001F 9E4cd37F 03e4cda dd379aaa  'A...F&#038;...E..0W.
45514C70: dd379aaa dd379aaa  dd379aaa dd379aaa @.-.Eב#X.3,,.M%
45514C80: 03e4cda 03e4cda 03e4cda  03e4cda  ../..&#038;....s@yh
45514C90: 00000204 23ee3444 000000             .....d.....

08:19:00.699 UTC Jan 25 2010 : IPv4 LES CEF    : Gi0/1 None

45514C50:                            002414F7              .$.w
45514C60: 03e4cda 03e4cda 03e4cda 03e4cda 'A...F&#038;...E..KYj
45514C70: 03e4cda 03e4cda 03e4cda 03e4cda @.-.#4$f.%%
45514C80: 03e4cda 03e4cda 03e4cda 03e4cda../..'|S^^^0])
45514C90: 03e4cda 03e4cda 03e4cda 03e4cda..EHLO smtp02.bi
45514CA0: 03e4cda 03e4cda 03e4cda 03e4cda s.eu.blackberry.
45514CB0: 636F6D0D 0A00                        com... </pre>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2010/02/01/capture-packets-at-ios-cisco-router-or-finally-we-have-a-sniffer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cisco log: Missing cef table for tableid 65535 during CEF samecable event</title>
		<link>http://yurisk.info/2010/01/21/cisco-log-missing-cef-table-for-tableid-65535-during-cef-samecable-event/</link>
		<comments>http://yurisk.info/2010/01/21/cisco-log-missing-cef-table-for-tableid-65535-during-cef-samecable-event/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 10:39:19 +0000</pubDate>
		<dc:creator>Chen</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS Cisco]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=412</guid>
		<description><![CDATA[Today I&#8217;ve noticed some strange error on my Cisco 1841 router : %FIB-4-FIBCBLK: Missing cef table for tableid 65535 during CEF samecable event After searching the net, i&#8217;ve found some Cisco bug that describes this. &#8220;FIB-4-FIBCBLK errors with dns view Symptoms Message &#8220;%FIB-4-FIBCBLK: Missing cef table for tableid 65535 during CEF samecable event&#8221; displayed on [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ve noticed some strange error on my Cisco 1841 router :</p>
<div class="cmd"> %FIB-4-FIBCBLK: Missing cef table for tableid 65535 during CEF samecable event</div>
<p>After searching the net, i&#8217;ve found some Cisco bug that describes this.<br />
&#8220;FIB-4-FIBCBLK errors with dns view<br />
Symptoms</p>
<p>Message &#8220;%FIB-4-FIBCBLK: Missing cef table for tableid 65535 during CEF samecable event&#8221; displayed on the console logs.</p>
<p>Conditions</p>
<p>The message seems to be generated anytime a dns request is made to the router where the router then has to use the dns forwarder</p>
<p>Workaround<br />
No workaround&#8221;<br />
	(<a href="http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&amp;bugId=CSCsx53968">Source</a>)</p>
<p>This happens when you have DNS server on the device and it needs to grab the answer from the device configured DNS server (A.K.A DNS Forwarder), and each request will cause this error log.</p>
<p>According to Cisco, the affected device list does not include my MD release &#8211; 12.4(25b), however i do see it . (<a href="http://tools.cisco.com/Support/BugToolKit/search/knownAffectedVersions.do?method=fetchKnownAffectedVersions&amp;bugId=CSCsx53968">List</a>)</p>
<p>List of IOS with the Fix :<br />
12.2(33)XNE<br />
12.4(24.6)T1<br />
12.4(15)T9<br />
12.2(32.8.11)SR183<br />
12.2(32.8.1)REC186<br />
12.4(20)T3<br />
12.2(33.1.3)MCP5<br />
15.0(1)M<br />
12.4(24)T1<br />
12.2(32.8.1)REE186<br />
12.4(22)T2<br />
12.4(22)MDA1<br />
12.4(24)YG<br />
12.4(24)GC1<br />
12.4(22)XR<br />
12.4(24)MD<br />
12.4(22)YE2</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2010/01/21/cisco-log-missing-cef-table-for-tableid-65535-during-cef-samecable-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

