<?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>Aaron&#039;s Worthless Words &#187; monitor</title>
	<atom:link href="http://aconaway.com/tag/monitor/feed/" rel="self" type="application/rss+xml" />
	<link>http://aconaway.com</link>
	<description>It&#039;s possible that someone somewhere needs to see this.</description>
	<lastBuildDate>Fri, 10 Feb 2012 02:36:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>SLA Monitoring on the PIX/ASA</title>
		<link>http://aconaway.com/2010/10/15/sla-monitoring-on-the-pixasa/</link>
		<comments>http://aconaway.com/2010/10/15/sla-monitoring-on-the-pixasa/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 22:45:23 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[asa]]></category>
		<category><![CDATA[icmp]]></category>
		<category><![CDATA[ip sla]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[reliable]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[sla]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=1134</guid>
		<description><![CDATA[We&#39;re working on an data center design for a customer, and they&#39;ve dropped in two ISP links &#8211; each with it&#39;s own managed router and public IP space off one of the Ethernet interfaces. &#160;The idea is that they want to use the Internet links in an active-passive setup without getting their own IP addresses to avoid running BGP with the ISPs. &#160;To top it off, the headend of their control is an ASA cluster, so we wind up with two interface on the Internet to treat with a local security level. &#160;Oh, the joys of doing network design. Your first thought is probably to use the old fashioned floating static route where you have a weighted route that takes over if the primary route is withdrawn from the routing table. &#160;That only works if the next-hop of that route is no longer available&#8230;like when serial interface goes down and the next-hop isn&#39;t directly connected any more. &#160;This is Ethernet, though, so there&#39;s no way for the firewall doesn&#39;t know or doesn&#39;t care if a host on the network isn&#39;t there any more. &#160;This config has another problem, too. &#160;What about a scenario where the ISP&#39;s router is up, but [...]]]></description>
			<content:encoded><![CDATA[<p>We&#39;re working on an data center design for a customer, and they&#39;ve dropped in two ISP links &#8211; each with it&#39;s own managed router and public IP space off one of the Ethernet interfaces. &nbsp;The idea is that they want to use the Internet links in an active-passive setup without getting their own IP addresses to avoid running BGP with the ISPs. &nbsp;To top it off, the headend of their control is an ASA cluster, so we wind up with two interface on the Internet to treat with a local security level. &nbsp;Oh, the joys of doing network design.</p>
<p>Your first thought is probably to use the old fashioned floating static route where you have a weighted route that takes over if the primary route is withdrawn from the routing table. &nbsp;That only works if the next-hop of that route is no longer available&#8230;like when serial interface goes down and the next-hop isn&#39;t directly connected any more. &nbsp;This is Ethernet, though, so there&#39;s no way for the firewall doesn&#39;t know or doesn&#39;t care if a host on the network isn&#39;t there any more. &nbsp;This config has another problem, too. &nbsp;What about a scenario where the ISP&#39;s router is up, but it&#39;s interfaces are down? &nbsp;How about if there are routing issues farther upstream? &nbsp;You surely don&#39;t want to send traffic to a provider&#39;s router is the provider is having issues, right? &nbsp;</p>
<p>If you&#39;ve ever tried to do something similar on an IOS router, then you&#39;ve probably done IP SLA. &nbsp;An ASA has the same functionality, but it&#39;s just called SLA monitoring. &nbsp;You wind up with a config that is a very similar to IP SLA stuff on IOS routers, actually. &nbsp;I wrote <a href="http://aconaway.com/2008/04/23/reliable-static-routing/">a terrible blog post</a> about it a few years back, and several other bloggers talk about it as well, but the idea is that you have a process, called an SLA monitor on the ASA, that monitors an IP address by pinging it. &nbsp;You then create a track object that watches the monitor&#39;s status. &nbsp;This track object is applied to a static route, and, if the SLA monitor fails, the route is removed from the routing table. &nbsp;We&#39;ve all done something like this with HSRP tracking, so this shouldn&#39;t be totally foreign.</p>
<p>Let&#39;s take a look at the test network that I&#39;ve used to simulate the setup at the customer site.</p>
<p><a href="http://aconaway.com/wp-content/uploads/2010/10/asa-ip-sla1.png"><img alt="" class="alignnone size-medium wp-image-1144" height="300" src="http://aconaway.com/wp-content/uploads/2010/10/asa-ip-sla1-258x300.png" title="ASA IP SLA" width="258" /></a></p>
<p>The test is to have INSIDE1 communicate with TARGET. &nbsp;Each ISP knows where TARGET is through a huge EIGRP AS, but we want to detect any routing problems on ISP1. &nbsp;If we find a problem, we want to roll over to ISP2 on the BACKUP interface. &nbsp;What do we monitor, though? &nbsp;We can monitor the IP of the ISP&#39;s router at the data center, but we&#39;d miss any issues upstream. &nbsp;Let&#39;s monitor the IP of the second router on ISP1, which is 10.0.0.2. &nbsp;In the real world, we&#39;d fine a host somewhere deep on the Intertubes that we think won&#39;t go down very often. &nbsp;In our test, 10.0.0.2 is the closest thing we can find to that.</p>
<p>Let&#39;s create a beautiful symphony of ICMP generation. &nbsp;First, we create the SLA monitor.</p>
<blockquote>
<p>sla monitor 1<br />
		&nbsp;type echo protocol ipIcmpEcho 10.0.0.2 interface OUTSIDE<br />
		!<br />
		sla monitor schedule 1 life forever start-time now</p>
</blockquote>
<p>I think you can see that we are creating an ICMP echo process that will ping 10.0.0.2 on the OUTSIDE interface. &nbsp;The third line is what controls the start and stop of the process; in this case, we start now and don&#39;t ever finish thanks to the word <em>forever</em>. &nbsp;We can&#39;t use the SLA monitor directly on our routes, so let&#39;s create a track object.</p>
<blockquote>
<p>track 100 rtr 1 reachability</p>
</blockquote>
<p>Now we have track object 100 that looks to SLA monitor 1 for reachability. &nbsp;We apply this to the route just like we do on IOS. &nbsp;We&#39;ll go ahead and add the weighted route as well.</p>
<blockquote>
<p>route OUTSIDE 0.0.0.0 0.0.0.0 192.0.2.1 1 track 100<br />
		route BACKUP 0.0.0.0 0.0.0.0 192.0.2.129 240</p>
</blockquote>
<p>Now the default will go through 192.0.2.1 until 10.0.0.2 is unreachable. &nbsp;If that happens, the route is removed from the routing table, and the weighted default route will take over. &nbsp;That&#39;s all you need. &nbsp;Of course, I would create another track object for ISP2 so you can at least get a syslog message or SNMP trap if a problem happens over there, but you can probably get away with just the one.</p>
<p>If you&#39;ve ever done IP SLA on a router, you would call me on the fact that there&#39;s some stuff missing. &nbsp;If you don&#39;t force the ICMP packets to ISP1&#39;s router, the state of the SLA monitor will keep flopping; you flip to ISP2, the SLA check is healthy again, you flip back, the SLA check dies again&#8230;ad nauseum. &nbsp;That&#39;s not the case for the ASA, actually. &nbsp;Even though the default route has rolled over to the backup, the monitoring process continues to send requests to the old gateway.</p>
<p>Sometime I like it when my gear knows what I&#39;m trying to do; this is one of those times.</p>
<p>Send any <strike>stray ICMP packets</strike> questions my way.</p>
<p>Audio Commentary</p>
<div class="wp-about-author-containter-around" style="background-color:#ffffff;"><div class="wp-about-author-pic"><img alt='' src='http://1.gravatar.com/avatar/14352aa939196349e4b9f2a272ca5112?s=100&amp;d=&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-about-author-text"><h3><a href='http://aconaway.com/author/jac/' title='Aaron Conaway'>Aaron Conaway</a></h3><p>I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.</p><p><a href='http://aconaway.com' title='Aaron Conaway'>Website</a> - <a href='http://aconaway.com/author/jac/' title='More posts by Aaron Conaway'>More Posts</a> </p></div></div>]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2010/10/15/sla-monitoring-on-the-pixasa/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
<enclosure url="http://aconaway.com/wp-content/uploads/2010/10/SLA-Monitoring-on-the-PIX-ASA.mp3" length="2282126" type="audio/mpeg" />
		</item>
		<item>
		<title>SPANs on Cisco Switches</title>
		<link>http://aconaway.com/2009/03/13/spans-on-cisco-switches/</link>
		<comments>http://aconaway.com/2009/03/13/spans-on-cisco-switches/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 13:49:37 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[span]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[tcpdump]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=263</guid>
		<description><![CDATA[I can&#8217;t believe I haven&#8217;t blogged on this yet.  SPANs are one of my favorite things in the world. The switched port analyzer (SPAN) is a mechanism on Cisco switches that allows you to take traffic on one port and copy it to another.  It&#8217;s generally used to get traffic to a sniffer or IDS for analysis, but it&#8217;s a great tool to use to sample traffic from a host for troubleshooting. Let&#8217;s use a real-world example.  You&#8217;ve told your roommate to quit illegally downloading songs off the Internet, but you suspect he&#8217;s still doing it.  Instead of sneaking into his room at night and checking his machine, you can use a SPAN to copy his traffic to another switch interface where you can use tcpdump to record what&#8217;s happening. Let&#8217;s say you have a 2950, and the roomie is on F0/1.  You have a Linux box plugged into F0/24 ready to capture the traffic.  Here&#8217;s what you do. monitor session 1 source interface F0/1 both monitor session 1 destination interface F0/24 This will create a new monitor session (that is, a SPAN session) that copies traffic from port F0/1 in both directions to port F0/24.  Now, when you run [...]]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t believe I haven&#8217;t blogged on this yet.  SPANs are one of my favorite things in the world.</p>
<p>The switched port analyzer (SPAN) is a mechanism on Cisco switches that allows you to take traffic on one port and copy it to another.  It&#8217;s generally used to get traffic to a sniffer or IDS for analysis, but it&#8217;s a great tool to use to sample traffic from a host for troubleshooting.</p>
<p>Let&#8217;s use a real-world example.  You&#8217;ve told your roommate to quit illegally downloading songs off the Internet, but you suspect he&#8217;s still doing it.  Instead of sneaking into his room at night and checking his machine, you can use a SPAN to copy his traffic to another switch interface where you can use <em>tcpdump </em>to record what&#8217;s happening.</p>
<p>Let&#8217;s say you have a 2950, and the roomie is on F0/1.  You have a Linux box plugged into F0/24 ready to capture the traffic.  Here&#8217;s what you do.</p>
<blockquote>
<pre>monitor session 1 source interface F0/1 both
monitor session 1 destination interface F0/24</pre>
</blockquote>
<p>This will create a new monitor session (that is, a SPAN session) that copies traffic from port F0/1 in both directions to port F0/24.  Now, when you run tcpdump on your Linux box, you see all the traffic coming in and going out of your roommate&#8217;s port.</p>
<p>That&#8217;s pretty easy, right?  You can have multiple sources ports by just adding more source lines or using ranges of ports.  You can also just copy received or transmitted traffic from a source.  Check out the contextual help for a little more info.</p>
<p>To see what&#8217;s going on, you can do a <em>show monitor</em> or a <em>show monitor session 1</em> (depending on the IOS version).  You&#8217;ll see something like this.</p>
<blockquote>
<pre>switch#sh monitor
Session 1
---------
Type              : Local Session
Source Ports      :
Both          : Fa0/1
Destination Ports : Fa0/24
Encapsulation : Native
Ingress : Disabled</pre>
</blockquote>
<p>If you take a look at the destination port when the SPAN is running, you&#8217;ll see it&#8217;s in a state of <em>up/down (monitoring)</em>.  I think you can figure out that this means we&#8217;re monitoring some traffic to this port.  Here&#8217;s what you&#8217;ll see if you look at the port.</p>
<blockquote>
<pre>switch#sh int f0/24
FastEthernet0/24 is up, line protocol is down (monitoring)
...</pre>
</blockquote>
<p>There are two big things to keep in mind when doing SPANs.  The first is that monitoring a port can drive CPU utilization way up (depending on the platform and traffic volume), so you may run into problems if you have a bunch of SPANs going at the same time.  Related to this is the fact that, if your switch has to decide between switching and copying traffic, it will stop copying until there&#8217;s enough CPU headroom to do that safely, and you&#8217;ll lose packets in the meantime.  It&#8217;s a switch &#8212; not a copier.</p>
<p>The second thing to keep in mind involves those little voices in your head called ethics.  What if you see a VOIP phone call from your boss to the HR department?  How about if you find someone in upper management copying a spreadsheet of people to be fired tomorrow?  How about if you find an engineer&#8217;s telnet password to a key system?  These are things that you probably shouldn&#8217;t see, so be careful when looking at the packets.  I would suggest you tell someone in your security when you&#8217;re going to do a packet capture to make sure someone knows you&#8217;re not up to no good.</p>
<p>Send <span style="text-decoration: line-through;">shamrocks</span> questions my way.</p>
<div class="wp-about-author-containter-around" style="background-color:#ffffff;"><div class="wp-about-author-pic"><img alt='' src='http://1.gravatar.com/avatar/14352aa939196349e4b9f2a272ca5112?s=100&amp;d=&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-about-author-text"><h3><a href='http://aconaway.com/author/jac/' title='Aaron Conaway'>Aaron Conaway</a></h3><p>I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.</p><p><a href='http://aconaway.com' title='Aaron Conaway'>Website</a> - <a href='http://aconaway.com/author/jac/' title='More posts by Aaron Conaway'>More Posts</a> </p></div></div>]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2009/03/13/spans-on-cisco-switches/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

