<?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>Das Blinken Lichten</title>
	<atom:link href="http://www.dasblinkenlichten.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.dasblinkenlichten.com</link>
	<description>Cisco, VMware, Storage, MS, etc...</description>
	<lastBuildDate>Fri, 30 Jul 2010 13:15:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Showing and logging off VPN sessions via the ASA CLI</title>
		<link>http://www.dasblinkenlichten.com/?p=261</link>
		<comments>http://www.dasblinkenlichten.com/?p=261#comments</comments>
		<pubDate>Fri, 30 Jul 2010 02:17:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[ASA]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.dasblinkenlichten.com/?p=261</guid>
		<description><![CDATA[You could add this to my ‘Commands I always forget’ post, but since I’m going to turn this into a little bit of a walk through I decided to make it into it’s own post.&#160; Most admins use two commands to verify IPSec VPN security associations.&#160; Those, of course, are…
ASA# show crypto isakmp sa
and
ASA# show [...]]]></description>
			<content:encoded><![CDATA[<p>You could add this to my ‘Commands I always forget’ post, but since I’m going to turn this into a little bit of a walk through I decided to make it into it’s own post.&#160; Most admins use two commands to verify IPSec VPN security associations.&#160; Those, of course, are…</p>
<p><font color="#008000">ASA#</font> show crypto isakmp sa</p>
<p>and</p>
<p><font color="#008000">ASA#</font> show crypto ipsec sa</p>
<p>Both of these commands provide you with a wealth of information about the IPSec connection.&#160; However, what about if you start talking about SSL VPN sessions?&#160; Or WebVPN sessions?&#160; Since these technically aren’t IPSec connections, they don&#8217;t show up in the ‘show crpypto’ commands.&#160; Below I’ll walk through a couple of commands which show you some more information about all types of VPN connections.</p>
<p><strong><font size="4">How to see current WebVPN Sessions        <br /></font></strong><font color="#008000">ASA#</font> show vpn-sessiondb webvpn     <br /><font color="#008000">Session Type: WebVPN      <br />Username&#160;&#160;&#160;&#160; : langemakj&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Index&#160;&#160;&#160;&#160;&#160;&#160;&#160; : 13       <br />Public IP&#160;&#160;&#160; : 10.20.30.78       <br />Protocol&#160;&#160;&#160;&#160; : Clientless       <br />License&#160;&#160;&#160;&#160;&#160; : SSL VPN       <br />Encryption&#160;&#160; : RC4&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Hashing&#160;&#160;&#160;&#160;&#160; : SHA1       <br />Bytes Tx&#160;&#160;&#160;&#160; : 147092&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Bytes Rx&#160;&#160;&#160;&#160; : 31993       <br />Group Policy : GP_SSLVPN&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Tunnel Group : TG_SSLVPN       <br />Login Time&#160;&#160; : 14:04:01 CST Thu Jul 29 2010       <br />Duration&#160;&#160;&#160;&#160; : 0h:00m:11s       <br />NAC Result&#160;&#160; : Unknown       <br />VLAN Mapping : N/A&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; VLAN&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : none       <br /></font><font size="1"><em>Notes: So as you can see, this gives you a ton of info on the connection including the users group policy, tunnel group, and their public IP (Note: I&#8217;m testing off of the internal ASA interface hence the RFC 1918 addressing).</em></font></p>
<p><strong><font size="4">How to log off current WebVPN Sessions        <br /></font></strong><font color="#008000">ASA#</font> vpn-sessiondb logoff name langemakj     <br /><font color="#008000">Do you want to logoff the VPN session(s)? [confirm]      <br />INFO: Number of sessions with name &quot;langemakj&quot; logged off : 1       <br /></font><font size="1"><em>Notes: What’s interesting about the log off procedure is that its done by tunnel group or username.&#160; Note in this instance, I don’t even have to note that it’s a WebVPN session that I want to log off.&#160; Conversely, if I wanted to log off all of the WebVPN sessions I could just input ‘vpn-sessiondb logoff webvpn’ which would log off all users connected to WebVPN.</em></font></p>
<p><font size="4"><strong>Wrap up        <br /></strong></font>So now that we have an idea of how it works with WebVPN connections, let’s use the trusty ‘?’ to see what else we can do with the ‘vpn-sessiondb’. </p>
<p><font color="#008000">ASA# show vpn-sessiondb ?      <br />&#160; detail&#160;&#160;&#160;&#160;&#160;&#160; Show detailed output       <br />&#160; email-proxy&#160; Email-Proxy sessions       <br />&#160; full&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Output formatted for data management programs       <br />&#160; index&#160;&#160;&#160;&#160;&#160;&#160;&#160; Index of session       <br />&#160; l2l&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; IPsec LAN-to-LAN sessions       <br />&#160; ratio&#160;&#160;&#160;&#160;&#160;&#160;&#160; Show VPN Session protocol or encryption ratios       <br />&#160; remote&#160;&#160;&#160;&#160;&#160;&#160; IPsec Remote Access sessions       <br />&#160; summary&#160;&#160;&#160;&#160;&#160; Show VPN Session summary       <br />&#160; svc&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; SSL VPN Client sessions       <br />&#160; vpn-lb&#160;&#160;&#160;&#160;&#160;&#160; VPN Load Balancing Mgmt sessions       <br />&#160; webvpn&#160;&#160;&#160;&#160;&#160;&#160; WebVPN sessions       <br />&#160; |&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Output modifiers       <br />&#160; &lt;cr&gt;</font></p>
<p>As you can see, you can use the vpn-sessiondb command to look at each type of VPN connection.&#160; While I usually still use the ‘show crypto’ commands for IPSec connections, you HAVE to use the vpn-sessiondb for AnyConnect and WebVPN.&#160; Play around with it, remember, the ‘?’ is your best friend!<font size="4">      <br /></font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasblinkenlichten.com/?feed=rss2&amp;p=261</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare VMX files, snapshots, and VMDKs &#8211; The parent virtual disk has been modified since the child was created</title>
		<link>http://www.dasblinkenlichten.com/?p=258</link>
		<comments>http://www.dasblinkenlichten.com/?p=258#comments</comments>
		<pubDate>Fri, 16 Jul 2010 02:08:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Snapshots]]></category>

		<guid isPermaLink="false">http://www.dasblinkenlichten.com/?p=258</guid>
		<description><![CDATA[I had a bit of misfortune last night with VMWare and seeing as I&#8217;m big into learning from my mistakes, I thought I’d share my mistake with everyone.&#160; I had been working on an issue on a VMWare ESX 3.5 server and after speaking with VMWare support they recommended that I rebuild the guest’s VMX [...]]]></description>
			<content:encoded><![CDATA[<p>I had a bit of misfortune last night with VMWare and seeing as I&#8217;m big into learning from my mistakes, I thought I’d share my mistake with everyone.&#160; I had been working on an issue on a VMWare ESX 3.5 server and after speaking with VMWare support they recommended that I rebuild the guest’s VMX file.&#160; For those of you who don&#8217;t know, a VMX is essentially the guest configuration file.&#160; This isn&#8217;t a big deal to do and I have done it several times in the past successfully.&#160; However this time was different.&#160; I waited until 6pm, shut down the VM, removed it from inventory, copied the current VMX file out of the guest’s VM folder for backup, renamed it, and then began creating the new virtual machine.&#160; Creating the new virtual machine is much like how you create any other sort of VMWare guest, the only difference is that you exactly replicate the original guest’s configuration settings and you chose the ‘use existing disks option’ pointing the new guest configuration to the servers existing disks.&#160; Pretty easy right?&#160; I thought so.&#160; So I ensured the new VMX saved and booted up the guest machine.&#160; Immediately I found a problem.&#160; I couldn&#8217;t log in and I was getting domain controller errors which forced me to log in as the local admin.&#160; Upon logging in I realized that things looked drastically different.&#160; Starting to freak out (since this was a production exchange server) I checked the mail databases to find the last edited date to be over 3 months ago.&#160; What had gone wrong?!?!?</p>
<p>After I managed to calm down a bit, I shut down the guest, and put my original VMX file back in place hoping I could get the server to boot with its initial configuration.&#160; After moving the new VMX file out, and putting the old one back in, I tried to boot the server and I was greeted with an error message that looked like this….    <br /><a href="http://dasblinkenlichten.com/wp-content/uploads/2010/07/image.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://dasblinkenlichten.com/wp-content/uploads/2010/07/image_thumb.png" width="537" height="235" /></a>&#160;</p>
<p>At this point I immediately realized what had happened and was in absolute horror.&#160; Someone had created a snapshot of the server 3 months ago, and never merged it back into the VM.&#160; When I created the new guest, I had pointed to the disks to original VMDK files (which is your only option) and when I booted the server with them the file became modified which broke the snapshot chain.&#160; I thought I had lost the system.</p>
<p>Before I go any further, I want to point out how I got to this point and things that should have been done to avoid such a catastrophic problem.</p>
<p><strong>Issue -</strong> When you create the new VMX file and are asked to select the existing disk, the wizard only shows you the base VMDK file rather than all of the snapshots (even though they end in VMDK as well).&#160; <br /><strong>Lesson Learned –</strong> Check the snapshot manager before making ANY changes.&#160; A more thorough look in the data store browser would have point out the snapshot files to me as well</p>
<p><strong>Issue</strong> – I had wanted to make a local copy of the guests folder on the data store prior to making ANY changes but was unable due to lack of space.&#160; <br /><strong>Lesson Learned</strong> – If you are using local storage, ALWAYS have enough space to make a complete backup of any guest on that system.&#160; If its a SAN, you might be able to get away with just taking a snapshot at the storage level.</p>
<p><strong>Issue </strong>– The snapshots in general     <br /><strong>Lesson Learned</strong> – As a rule, I don&#8217;t usually take snapshots in VMWare.&#160; And if I do, I don’t let them hang out there for more than a day.&#160; Keep an eye on the snapshots!</p>
<p><font color="#008000">Green</font> – Console output     <br /><font color="#0000ff">Blue</font> – My values, you’ll need to insert your own     <br />Normal text – What I entered     <br /><strong>Bold – </strong>Parts I’m trying to point out in the output</p>
<p><strong><font size="4">How I got out of this mess        <br /></font></strong>After doing some research, I determined that the issue was with what VMWare calls the CID chain.&#160; The CID value is used to link snapshots to parent VMDK files and when you load the parent file when there are snapshots present, you screw up this chain.&#160; I didn&#8217;t have a backup of the system (at the <strong>VMW</strong>are level) and even though I had found steps online on how to try to fix this.&#160; I let the experts at VMWare do it for me.&#160; Afterwards, I recreated the scenario at home for the purpose of making this blog entry.&#160; The steps below are offered at your own risk and there is no guarantee that they will work.</p>
<p><strong>Step 1      <br /></strong>BACKUP EVERYTHING.&#160; Backup as much as you can, these steps will outline making direct edits to VMDK files which ,if done incorrectly, can cause corruption.&#160; Also, try not to make ANY changes on the VMWare guest when you boot the parent VMDK.&#160; I realized my mistake, and shut it down as soon as I could.</p>
<p><strong>Step 2</strong>&#160; <br />If you haven&#8217;t done so already, put the original VMX file back in place.&#160; We’ll be using it to try to boot the system.&#160; If you deleted it (for some silly reason) you may be able to make a new one but I haven&#8217;t tried that.</p>
<p><strong>Step 3      <br /></strong>Enable SSH on the ESX box if you haven&#8217;t already.&#160; I’m running ESXi 3.5 in this test but you can very easily google how to enable SSH on your ESX version.&#160; Using SSH just makes this a lot easier (especially if you are remote as I was).&#160; In this example I’ll actually be using telnet.</p>
<p><strong>Step 4      <br /></strong>Figure out what the CID values are for each of the snapshots.&#160; To do this we need to log in to the console (via SSH) and find the value on each of the files.&#160; To do this, I entered the following commands.&#160; Note the server I am running this test on is called UberServ01.&#160; <br /><strong>     <br />Change to the guest directory       <br /></strong><font color="#008000">~ #</font> cd /vmfs/volumes     <br /><font color="#008000">/vmfs/volumes #</font> ls     <br /><font color="#008000">0016047d-c4d39b6a-ec38-631130484fa9&#160; Hypervisor1      <br />3abb47ef-875ea67c-c948-7bf6ff8d3c38&#160; Hypervisor2       <br />4af76f09-2611a4b1-ea7e-000f1ff86fb0&#160; Hypervisor3       <br />4af76f0b-0ba64946-17d8-000f1ff86fb0&#160; <strong>datastore1        <br /></strong>931ac070-8437760b-9dcc-b0a7dbce2d74       <br />/vmfs/volumes #</font> cd ./<font color="#0000ff">datastore1</font>/     <br /><font color="#008000">/vmfs/volumes/4af76f0b-0ba64946-17d8-000f1ff86fb0 #</font> ls     <br /><font color="#008000">ISO&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>UberServ01&#160; </strong>      <br />/vmfs/volumes/4af76f0b-0ba64946-17d8-000f1ff86fb0 #</font> cd ./UberServ01/     <br /><font color="#008000">/vmfs/volumes/4af76f0b-0ba64946-17d8-000f1ff86fb0/UberServ01 #</font> ls -ltr *.vmdk     <br /><font color="#008000">-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 255 Jul 15 21:34 <strong>UberServ01-000001.vmdk</strong>       <br />-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160; 67131904 Jul 15 21:36 UberServ01-000001-delta.vmdk       <br />-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 262 Jul 15 21:42 <strong>UberServ01-000002.vmdk</strong>       <br />-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160; 67131904 Jul 15 21:44 UberServ01-000002-delta.vmdk       <br />-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 532 Jul 15 21:48 <strong>UberServ01.vmdk</strong>       <br />-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160; 10758666240 Jul 15 21:52 UberServ01-flat.vmdk</font></p>
<p>The last command outputs the name of all of the files in the directory with the VMDK file extension.&#160; As you can see, we have two snapshot files here.&#160; One called UberServer01-000001.vmdk and the other UberServ02-000002.vmdk.&#160; To return the CID values enter the following commands.</p>
<p><font color="#008000">/vmfs/volumes/4af76f0b-0ba64946-17d8-000f1ff86fb0/UberServ01 #</font> grep CID ./<font color="#0000ff">UberServ01-000001</font>.vmdk     <br /><font color="#008000"><strong>CID=986a79c0        <br /></strong>parentCID=4fc239f6</font></p>
<p><font color="#008000">/vmfs/volumes/4af76f0b-0ba64946-17d8-000f1ff86fb0/UberServ01 #</font> grep CID ./<font color="#0000ff">UberServ01-000002</font>.vmdk     <br /><font color="#008000"><strong>CID=1df04fbb</strong>       <br />parentCID=986a79c0</font></p>
<p><font color="#008000">/vmfs/volumes/4af76f0b-0ba64946-17d8-000f1ff86fb0/UberServ01 #</font> grep CID ./<font color="#0000ff">UberServ01</font>.vmdk     <br /><font color="#008000"><strong>CID=0db4eee2        <br /></strong>parentCID=ffffffff</font></p>
<p>Note that the parent file (the original VMDK) will always have the parentCID value of ‘ffffffff’ since its the parent.</p>
<p>So as of right now here is the info we have….    <br />Correct Parent CID – <strong>0db4eee2</strong>     <br />Snapshot 1 Parent CID – <strong>4fc239f6      <br /></strong>Snapshot 1 CID<strong> -986a79c0</strong>     <br />Snapshot 2 Parent CID – <strong>986a79c0      <br /></strong>Snapshot 2 CID <strong>- 1df04fbb</strong></p>
<p>The issue should be apparent at this point.&#160; The CIDs need to reference each other in the correct order.&#160; So this is what we currently have…..</p>
<p><a href="http://dasblinkenlichten.com/wp-content/uploads/2010/07/image1.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://dasblinkenlichten.com/wp-content/uploads/2010/07/image_thumb1.png" width="313" height="591" /></a></p>
<p>Do you see the issue?&#160; The 1st snapshot references the wrong CID value for the parent.&#160; To fix this, we need to edit the parent VMDK file to reference the new CID value of 4fc239f6.&#160; To to do this, enter the following commands….</p>
<p><font color="#008000">/vmfs/volumes/4af76f0b-0ba64946-17d8-000f1ff86fb0/UberServ01 #</font> vi ./<font color="#0000ff">UberServ01</font>.vmdk</p>
<p>Now this is the tricky part.&#160; I absolutely hate vi, I just can’t seem to get the hang of it.&#160; But here’s what I did to edit the file.&#160; Keep in mind that if the file is large, it can take some time to load, so if you get a black screen for a period of time, just hang tight.</p>
<p>-Use the arrow keys to arrow down to the beginning of the line that starts with ‘CID=’.&#160; This line should list the incorrect SID which you pulled earlier.&#160; Rather than deleting the value we are just going to comment it out.    <br />-Press the insert key once     <br />-Press enter to insert a new line     <br />-Type a # to comment out the original CID line     <br />-Arrow up one to start entering text on your new blank line     <br />-Type in the new CID value prefaced by ‘CID=’     <br />-When you are done, the lines should look something like this….</p>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://dasblinkenlichten.com/wp-content/uploads/2010/07/image_thumb2.png" width="618" height="386" />     <br />-Press the escape key once.&#160; <br />-Type in ‘:wq’ (minus the single quotes)     <br />-This should kick you back out to the command line</p>
<p>At this point I would verify the chain one more time to ensure that you have the CIDs correct.</p>
<p><font color="#008000">/vmfs/volumes/4af76f0b-0ba64946-17d8-000f1ff86fb0/UberServ01 #</font> grep CID ./<font color="#0000ff">UberServ01</font>.vmdk     <br /><font color="#008000"><strong>CID=4fc239f6        <br />#CID=0db4eee2         <br />parentCID=ffffffff</strong></font>     <br /><font color="#008000">/vmfs/volumes/4af76f0b-0ba64946-17d8-000f1ff86fb0/UberServ01 #</font> grep CID ./<font color="#0000ff">UberServ01</font>-000001.vmdk     <br /><font color="#008000"><strong>CID=986a79c0        <br />parentCID=4fc239f6</strong>       <br />/vmfs/volumes/4af76f0b-0ba64946-17d8-000f1ff86fb0/UberServ01 #</font> grep CID ./<font color="#0000ff">UberServ01</font>-000002.vmdk     <br /><font color="#008000"><strong>CID=1df04fbb        <br />parentCID=986a79c0</strong></font></p>
<p>So now it looks like….</p>
<p><a href="http://dasblinkenlichten.com/wp-content/uploads/2010/07/image2.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://dasblinkenlichten.com/wp-content/uploads/2010/07/image_thumb3.png" width="323" height="610" /></a>&#160; <br />If you are confident with your changes, try to fire up the VM now.&#160; With any luck, it will boot correctly and your current data will be back where it should be.&#160; After you make sure that it boots correctly, I would shut it down and delete the snapshots to merge everything back into one file.&#160; If you booted up the parent file and made changes the chances that some sort of corruption occurred is high.&#160; In my case, I had to rebuild the server WMI namespace which wasn&#8217;t that big of a deal.&#160; But all I did was boot the server up!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasblinkenlichten.com/?feed=rss2&amp;p=258</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring ISP failover on a Cisco ASA</title>
		<link>http://www.dasblinkenlichten.com/?p=255</link>
		<comments>http://www.dasblinkenlichten.com/?p=255#comments</comments>
		<pubDate>Sat, 26 Jun 2010 02:17:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[ASA]]></category>

		<guid isPermaLink="false">http://www.dasblinkenlichten.com/?p=255</guid>
		<description><![CDATA[I had the opportunity to configure ISP failover on an ASA the other day and I thought I’d share the configuration as well as a couple of tips on using it.&#160; I recall that when I started working on ASA’s I would always read that ‘dual ISP’ support was a feature of the Security Plus [...]]]></description>
			<content:encoded><![CDATA[<p>I had the opportunity to configure ISP failover on an ASA the other day and I thought I’d share the configuration as well as a couple of tips on using it.&#160; I recall that when I started working on ASA’s I would always read that ‘dual ISP’ support was a feature of the Security Plus (Sec+) licensing set.&#160; To me, that always meant that it was its own feature and had its own configuration commands.&#160; As it turns out, that&#8217;s not the case.&#160; In fact, the only reason you really need Sec+ to accomplish this is so that you have can have an additional ‘full’ interface.&#160; The rest of the configuration is really just a SLA monitor, tracked default routes, and a extra global NAT pool.&#160; Let’s walk through the configuration on a 5505.&#160; I&#8217;m going to only touch the major parts of this so please don&#8217;t consider this a full build. </p>
<p>Notes    <br />-Insert your relevant information between <font color="#ff0000">&lt;&gt;</font>     <br />-Console prompts are show in <font color="#008000">green</font>     <br />-Text in <font color="#0000ff">blue</font><em> </em>are variable names I made up, feel free to change them</p>
<p><strong><font size="4">Configure your interfaces</font>       <br />Inside Interface</strong>     <br /><font color="#008000">ASA(config)#</font> interface Vlan1     <br /><font color="#008000">ASA(config-if)#</font>description <font color="#0000ff">Inside Interface</font>     <br /><font color="#008000">ASA(config-if)#</font> nameif inside     <br /><font color="#008000">ASA(config-if)#</font> ip address <font color="#ff0000">&lt;Inside IP&gt; &lt;Inside Mask&gt;</font></p>
<p><strong>Outside Interface      <br /></strong><font color="#008000">ASA(config)#</font> interface Vlan2     <br /><font color="#008000">ASA(config-if)#</font><strong> </strong>description <font color="#0000ff">Primary ISP</font>     <br /><font color="#008000">ASA(config-if)#</font><strong> </strong>nameif outside     <br /><font color="#008000">ASA(config-if)#</font> ip address <font color="#ff0000">&lt;ISP 1 IP&gt; &lt;ISP 1 Mask&gt;</font></p>
<p><strong>Backup ISP Interface</strong>     <br /><font color="#008000">ASA(config)#</font> interface Vlan3     <br /><font color="#008000">ASA(config-if)#</font> description <font color="#0000ff">Backup ISP</font>     <br /><font color="#008000">ASA(config-if)#</font> nameif <font color="#0000ff">backupisp</font>     <br /><font color="#008000">ASA(config-if)#</font> security-level 0     <br /><font color="#008000">ASA(config-if)#</font> ip address <font color="#ff0000">&lt;ISP 2 IP&gt; &lt;ISP 2 Mask&gt;      <br /></font>    <br /><strong>Assign them to switchports</strong>     <br /><font color="#008000">ASA(config)#</font> interface Ethernet0/0     <br /><font color="#008000">ASA(config-if)#</font> switchport access vlan 2     <br /><font color="#008000">ASA(config)#</font> interface Ethernet0/1     <br /><font color="#008000">ASA(config-if)#</font> switchport access vlan 3     <br /><font size="1"><em>Notes: VLAN 1 is the default so I&#8217;m not assigning it, just use one of the other ports for it.</em></font></p>
<p><strong><font size="4">Configure NAT        <br /></font>Define your Global pools       <br /></strong><font color="#008000">ASA(config)#</font> global (outside) 1<font color="#ff0000"> &lt;An IP in your Primary ISPs pool that you want to use for NAT/PAT&gt;      <br /></font><font color="#008000">ASA(config)#</font> global (backupisp) 1 <font color="#ff0000">&lt;An IP in your Backup ISPs pool that you want to use for NAT/PAT&gt;      <br /></font><font size="1"><em>Notes: You need to define both the primary and backup address as global pools to match up against the NAT pool.&#160; I totally forgot about that during the install and couldn&#8217;t figure out why I wasn&#8217;t passing traffic.</em></font></p>
<p><strong>Define your inside NAT      <br /></strong><font color="#008000">ASA(config)#</font> nat (inside) 1 0.0.0.0 0.0.0.0<font color="#ff0000">      <br /></font><font size="1"><em>Notes: Some people use a specific network here, I always just use 0 0 if its a small setup</em></font></p>
<p><font size="4"><strong>Configure the SLA Monitor        <br /></strong></font><font color="#008000">ASA(config)#</font> sla monitor<font color="#0000ff"> 10</font>     <br /><font color="#008000">ASA(config-sla-monitor)# </font>type echo protocol ipIcmpEcho <font color="#0000ff">4.2.2.2</font> interface outside     <br /><font color="#008000">ASA(config-sla-monitor-echo)# </font>num-packets <font color="#0000ff">3</font>     <br /><font color="#008000">ASA(config-sla-monitor-echo)# </font>timeout <font color="#0000ff">1000      <br /></font><font color="#008000">ASA(config-sla-monitor-echo)# </font>frequency <font color="#0000ff">3</font>     <br /><font color="#008000">ASA(config)#</font> sla monitor schedule <font color="#0000ff">10</font> life forever start-time now     <br /><font size="1"><em>Notes: Ok, so here is the actual ‘failover’ piece of all of this. So I’ll break it down piece by piece.&#160; <br />Line 1 &#8211; Configures a SLA monitor with the ID of 10         <br />Line 2 &#8211; Configures the monitoring protocol and the target of the monitoring probe.&#160; In this case I chose 4.2.2.2 since I have been able to ping that magical IP address since the beginning of time.&#160; You also need to tell it which interface to source the ICMP traffic from.&#160; In this case, it would be the outside interface.&#160; <br />Line 3 &#8211; Sets the number of packets to be sent in each probe.         <br />Line 4 &#8211; Configures the timeout period in milliseconds.&#160; <br />Line 5 &#8211; Configures the frequency of the probe in seconds.&#160; <br />Line 6 – Instructs the ASA to start SLA monitor 10 now and let it run for forever.</em></font>&#160;</p>
<p><strong><font size="4">Configure the Route tracking</font>       <br /></strong><font color="#008000">ASA(config)#</font>route outside 0.0.0.0 0.0.0.0 <font color="#ff0000">&lt;ISP 1 Default route&gt;</font> 1 track <font color="#0000ff">1      <br /></font><font color="#008000">ASA(config)#</font>route backupisp 0.0.0.0 0.0.0.0 <font color="#ff0000">&lt;ISP 2 Default route&gt;</font> 254     <br /><font size="1"><em>Notes: Here we define the default network routes out to the internet.&#160; Notice that we define out normal default route with an administrative distance of 1.&#160; However, we also add the ‘track 1’ statement at the end.&#160; This means that this route being in the routing table is dependant on tracked item 1 (If you don&#8217;t know what that means hold on, we’ll get there soon enough).&#160; We also install a second route for the backup ISP which HAS to have a higher administrative distance than the primary ISP’s default route.</em></font>&#160;</p>
<p><font color="#008000">ASA(config)#</font> track<font color="#0000ff"> 1</font> rtr <font color="#0000ff">10</font> reachability     <br /><font size="1"><em>Notes: This is where the magic happens.&#160; The above statement reads like this in plain English.&#160; “Keep an eye on SLA monitor 10 and when it fails any routes associated with me also fail”.&#160; So what happens is when the SLA monitor fails, the tracked route gets removed from the routing table, and the route with the higher administrative distance comes in and takes its place since its the best available route.</em></font>&#160;</p>
<p><strong><font size="4">Summary        <br /></font></strong>So it’s a pretty cool setup if you are ONLY looking for outbound internet failover.&#160; Keep in mind that all of your static NATs, external DNS entries, VPNs, etc won’t work when your primary ISP fails (assuming that&#8217;s the IP they are all assigned on).&#160; This particular client had me make a primary and a backup PCF file for their Cisco VPN clients so that they could access the VPN when they were in a failover state.&#160; Then I just added the backup ISP interface to the crypto map for their client VPN and turned on ISAKMP on the backup ISP interface.&#160; Keep in mind though that the backup VPN will only work when the backup ISP circuit is live and the primary VPN will only work when the primary ISP circuit is live.&#160; Both will never work at the same time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasblinkenlichten.com/?feed=rss2&amp;p=255</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nifty shortcuts for Server 08</title>
		<link>http://www.dasblinkenlichten.com/?p=254</link>
		<comments>http://www.dasblinkenlichten.com/?p=254#comments</comments>
		<pubDate>Thu, 03 Jun 2010 02:29:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Commands]]></category>

		<guid isPermaLink="false">http://www.dasblinkenlichten.com/?p=254</guid>
		<description><![CDATA[I had the glorious opportunity today of making a Microsoft support call.&#160; Im not sure how many of you out there have made one before, but I have to say its getting WAY better.&#160; I had a call back in less than an hour, and the tech was very knowledgeable.&#160; All said and done, they [...]]]></description>
			<content:encoded><![CDATA[<p>I had the glorious opportunity today of making a Microsoft support call.&#160; Im not sure how many of you out there have made one before, but I have to say its getting WAY better.&#160; I had a call back in less than an hour, and the tech was very knowledgeable.&#160; All said and done, they had the issue fixed in 30 minutes.&#160; Whenever I watch another tech work (this time remotely) I like watching what shortcuts they use when they are doing their work.&#160; I picked up a couple from this support call that I thought were worth sharing.&#160; The first one, in my opinion is enough by itself.</p>
<p><strong><font size="4">Display your network adapters (Without going to the network and sharing center first!!!)</font>      <br /></strong>My biggest pet peeve with server 08 is that it takes more than 2 clicks to see your actual adapters. Not anymore, this shortcut loads the adapter screen in one command!    <br /><strong>Command:</strong> <font color="#008000">ncpa.cpl</font>    <br /><strong>Usage:</strong> Start Menu,&#160; Run, Type&#160; ‘<font color="#008000">ncpa.cpl</font>’ &#8211; Press &lt;Enter&gt;</p>
<p><strong><font size="4">Display Add/Remove Program (program and features)</font>      <br /></strong>Not a huge breakthrough, but it saves time all the same    <br /><strong>Command:</strong> <font color="#008000">appwiz</font><font color="#008000">.cpl</font>    <br /><strong>Usage:</strong> Start Menu,&#160; Run, Type&#160; ‘<font color="#008000">appwiz.cpl</font>’ &#8211; Press &lt;Enter&gt;</p>
<p><strong><font size="4">Show IIS (7)</font>      <br /></strong>Another time savor    <br /><strong>Command:</strong> <font color="#008000">inetmgr</font>    <br /><strong>Usage:</strong> Start Menu,&#160; Run, Type&#160; ‘<font color="#008000">inetmgr</font>’ &#8211; Press &lt;Enter&gt;</p>
<p>I&#8217;m mostly on the network side, so the first command is most useful to me.&#160; Nonetheless its useful to know some shortcuts even with a GUI OS like Windows.&#160; As a side note you can also run all of these commands out of command prompt but for shortcuts that don&#8217;t have the ‘.cpl’ extension you need to preface the command with the word ‘start’ (EG: ‘start inetmgr’)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasblinkenlichten.com/?feed=rss2&amp;p=254</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Demystifying the svchost.exe process (and finding out what process is actually running under it)</title>
		<link>http://www.dasblinkenlichten.com/?p=253</link>
		<comments>http://www.dasblinkenlichten.com/?p=253#comments</comments>
		<pubDate>Wed, 26 May 2010 00:44:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Server 2008]]></category>

		<guid isPermaLink="false">http://www.dasblinkenlichten.com/?p=253</guid>
		<description><![CDATA[ I ran into this the other day at work and thought I would share.&#160; Hopefully this will save you some time.&#160; I had a service on a windows box that locked up during a standard service restart.&#160; Seeing as most people don&#8217;t like having their server rebooted during the day I had to come [...]]]></description>
			<content:encoded><![CDATA[<p> I ran into this the other day at work and thought I would share.&#160; Hopefully this will save you some time.&#160; I had a service on a windows box that locked up during a standard service restart.&#160; Seeing as most people don&#8217;t like having their server rebooted during the day I had to come up with a way to deal with this.&#160; My usual fix for this was to determine what exe the service was running, hunt it down in task manager, manually kill it, and start the service again.&#160; However, when I looked at the service I saw that the listed executable was ‘svchost.exe’.&#160; Knowing that I would encounter more than one svchost.exe process when I opened task manager I decided to spend some time and figure out exactly what the exe was.&#160; </p>
<p><font size="4"><strong>What is svchost.exe?        <br /></strong></font>As it turns out, not all applications and services in windows have the ‘exe’ file extension.&#160; Some of them are actually DLLs (Dynamic-Link Library) files that need a means to run.&#160; Windows (unlike other operating systems) doesn&#8217;t have a way to run a DLL directly as a service.&#160; Svchost acts as a platform (a separate EXE) from which to launch these DLLs are services.&#160; So when you see a ton of svchost.exe processes running under task manager, they aren&#8217;t actually the same program.&#160; </p>
<p><strong><font size="4">So which one is which?        <br /></font></strong>So lets walk through an example of how to determine which svchost process is linked to a particular program.&#160; So lets say that the DHCP client service on my windows server locked up and during the service restart the service hung in the dreaded ‘Attempting to stop’ state (Yes, I realize its highly unlikely that your DHCP client service would be a critical service on a server with a static IP, just bear with me as the concept is the same for any service).&#160; So I open up the services MMC and check the properties of the service to find out what EXE the service is running.&#160; The properties screen looks like this…     </p>
<p align="left"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://dasblinkenlichten.com/wp-content/uploads/2010/05/image_thumb.png" width="364" height="408" /></p>
<p align="left">As you can see, the service runs under the svchost.exe process.&#160; A look at my task manager on the server gives me this…    <br />&#160;</p>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://dasblinkenlichten.com/wp-content/uploads/2010/05/image_thumb1.png" width="376" height="450" /></p>
<p>Notice that I have not one, but fifteen svchost.exe processes running.&#160; So which one do I kill?&#160; After some googling I found the answer.&#160; The key to making this determination is the PID (Process ID).&#160; If you cant see the PID in your task manager go to View – Select Columns – And Select PID (For Server 08).&#160;&#160; You should now see the PID listed next to each process.&#160; Now go to the command prompt and enter in this magic command…</p>
<p>tasklist /svc</p>
<p>Or if you just want to see the svchost.exe processes…</p>
<p>tasklist /svc /fi &quot;imagename eq svchost.exe&quot;</p>
<p>The output from the second command looks like this…</p>
<p><a href="http://dasblinkenlichten.com/wp-content/uploads/2010/05/image.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://dasblinkenlichten.com/wp-content/uploads/2010/05/image_thumb2.png" width="589" height="306" /></a>&#160;</p>
<p>A quick review of the output reveals that DHCP is running over svchost.exe at PID 956.&#160; Taking a look back at the task manager I locate PID 956 and kill the process.&#160; Pretty slick huh?</p>
<p><strong><font size="4">Beware!        <br /></font></strong>I view this way of starting and stopping windows services as a last resort.&#160; Often times multiple services run under the same svchost which can cause issues if you start killing them.&#160; Additionally, a lot of windows services that run as svchost.exe don&#8217;t like being killed.&#160; For instance, the DHCP client I used in this example when killed just started right back up again.&#160; If you can do a server reboot to clear the hung process that&#8217;s usually the best approach.&#160; But if you can’t, and need a quick fix, use this with caution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasblinkenlichten.com/?feed=rss2&amp;p=253</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Password and Config Recovery on a Cisco router</title>
		<link>http://www.dasblinkenlichten.com/?p=252</link>
		<comments>http://www.dasblinkenlichten.com/?p=252#comments</comments>
		<pubDate>Thu, 13 May 2010 03:24:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Routers]]></category>

		<guid isPermaLink="false">http://www.dasblinkenlichten.com/?p=252</guid>
		<description><![CDATA[I have recently been purchasing some new routers for my lab and I find myself having to do the password recovery procedure to gain access.&#160; In all truthfulness, its more of a “get access and wipe the router” sort of procedure however I usually copy off the config off before wiping just out of pure [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently been purchasing some new routers for my lab and I find myself having to do the password recovery procedure to gain access.&#160; In all truthfulness, its more of a “get access and wipe the router” sort of procedure however I usually copy off the config off before wiping just out of pure curiosity.&#160; So here’s what I do….</p>
<p>1 – Connect to the router with your console cable</p>
<p>2 – Power up the router and start pressing the ‘Break’ key on your keyboard</p>
<p>3 – If the router detects you pushing the ‘Break’ key it should put the router into ROMMON</p>
<p>4 – When the router enters ROMMON mode you should be presented with a ‘rommon’ numbered prompt.&#160; Enter the following commands…</p>
<p><font color="#008000">monitor: command &quot;boot&quot; aborted due to user interrupt     <br />rommon 1 &gt;</font> confreg 0&#215;2142 </p>
<p><font color="#008000">You must reset or power cycle for new config to take effect     </p>
<p>rommon 2 &gt;</font> reset</p>
<p>Essentially this tells the router to ignore its startup-config when booting.&#160; The reset command reboots the router.</p>
<p>5 – When the router finishes loading you should receive the standard ‘first boot’ prompts asking you about entering the initial configuration dialog.&#160; Say no to any prompts. </p>
<p>6 – At this point, I usually plug a ethernet interface on the router into my network and configure an IP address on the router so that I can copy the current config off.&#160; Its important to note here that all we did was tell the router to ignore it’s startup config.&#160; Its still fully intact at this point.</p>
<p><font color="#008000">Router&gt; </font>enable    <br /><font color="#008000">Router# </font>config t<font color="#008000">     <br />Enter configuration commands, one per line.&#160; End with CNTL/Z.      <br />Router(config)# </font>int faste0/0    <br /><font color="#008000">Router(config-if)#</font> ip address 10.20.30.23 255.255.255.0<font color="#008000">     <br />Router(config-if)# </font>no shut    <br /><font color="#008000">Router(config-if)# </font>exit    <br /><font color="#008000">Router(config)# </font>exit    <br /><font color="#008000">Router# </font>copy startup-config tftp    <br /><font color="#008000">Address or name of remote host []? </font>10.20.30.51 <font color="#008000">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />Destination filename [8772106002209363-confg]? </font>1841-Original-Config <font color="#008000">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />.!!&#160;&#160; <br />2666 bytes copied in 3.104 secs (859 bytes/sec)</font></p>
<p>7 – Now that we have a good copy of the original config I reset the config register, wipe nvram, and reload the router.&#160; When it comes back online it will be like a brand new router.</p>
<p><font color="#008000">Router# </font>config t<font color="#008000">     <br />Router(config)# </font>config-register 0&#215;2102 <font color="#008000">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />Router(config)# </font>exit&#160; <font color="#008000">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />Router(config)# </font>write erase<font color="#008000">     <br />*May 12 23:00:00.891: %SYS-5-CONFIG_I: Configured from console by console      <br />Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]&#160;&#160;&#160;&#160; <br />[OK]&#160;&#160;&#160; <br />Erase of nvram: complete&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />*May 12 23:00:10.531: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvr&#160;&#160;&#160; <br />Router# </font>reload&#160;&#160;&#160; <font color="#008000">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </font></p>
<p><font color="#008000">System configuration has been modified. Save? [yes/no]: </font>n <font color="#008000">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />Proceed with reload? [confirm]</font>&#160;&#160;&#160;&#160; </p>
<p><strong>Summary</strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />Im sure there are tons of documents out there that tell you how to do this, it just helps me remember when I write it all down.&#160; It should be noted that this is usually used as a password recovery procedure.&#160; In that case the startup-config is copied in the running-config after you enter enable mode.&#160; Once the startup-config is loaded you can enter config mode and reset the enable and line passwords since you were in enable mode prior to loading the original config.&#160; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasblinkenlichten.com/?feed=rss2&amp;p=252</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASA DMZ implementations</title>
		<link>http://www.dasblinkenlichten.com/?p=251</link>
		<comments>http://www.dasblinkenlichten.com/?p=251#comments</comments>
		<pubDate>Tue, 11 May 2010 01:31:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[ASA]]></category>

		<guid isPermaLink="false">http://www.dasblinkenlichten.com/?p=251</guid>
		<description><![CDATA[I’ve been trying to spend some time lately playing with my ASA again.&#160; I’ve recently found myself playing with NAT and DMZ functionality.&#160; I have to admit that for what appears to be&#160; simple concept there is a lot material to digest.&#160; I’m also trying to look into the new ASA code release and get [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been trying to spend some time lately playing with my ASA again.&#160; I’ve recently found myself playing with NAT and DMZ functionality.&#160; I have to admit that for what appears to be&#160; simple concept there is a lot material to digest.&#160; I’m also trying to look into the new ASA code release and get up to speed on the new NAT config commands.&#160; Unfortunately my ASA doesn’t have a Security Plus license so I don&#8217;t have full DMZ functionality.</p>
<p>So if someone from Cisco is reading this and wants to send me a Security Plus activation code so I can blog about it that would be cool : )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasblinkenlichten.com/?feed=rss2&amp;p=251</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show commands I always forget about&#8230;.</title>
		<link>http://www.dasblinkenlichten.com/?p=249</link>
		<comments>http://www.dasblinkenlichten.com/?p=249#comments</comments>
		<pubDate>Sat, 17 Apr 2010 15:36:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>

		<guid isPermaLink="false">http://www.dasblinkenlichten.com/?p=249</guid>
		<description><![CDATA[For some reason there are some show commands that I just can’t remember on the spot.&#160; The majority of the time I&#8217;m just looking for one specific piece of info and I just cant find it.&#160; I’m sure I’ll be adding to this list as I encounter others.
Determine the number of inside hosts being used [...]]]></description>
			<content:encoded><![CDATA[<p>For some reason there are some show commands that I just can’t remember on the spot.&#160; The majority of the time I&#8217;m just looking for one specific piece of info and I just cant find it.&#160; I’m sure I’ll be adding to this list as I encounter others.</p>
<p><strong>Determine the number of inside hosts being used on a ASA     <br /></strong><font color="#008000">ASA# </font>show local-host brief<font color="#008000">     <br />Detected interface &#8216;outside&#8217; as the Internet interface. Host limit applies to all other interfaces.      <br />Current host count: <strong>2</strong>, towards licensed host limit of: <strong>50       <br /></strong>&lt;output ommitted&gt;</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasblinkenlichten.com/?feed=rss2&amp;p=249</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wild Card Masks &#8211; How to</title>
		<link>http://www.dasblinkenlichten.com/?p=243</link>
		<comments>http://www.dasblinkenlichten.com/?p=243#comments</comments>
		<pubDate>Fri, 16 Apr 2010 01:16:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Subnetting]]></category>

		<guid isPermaLink="false">http://www.dasblinkenlichten.com/?p=243</guid>
		<description><![CDATA[One of the concepts that I initially struggled with was wild card masks.&#160; They just didn’t make any sense to me.&#160; I couldn’t understand them and the examples in the Cisco press book just pushed that frustration further.&#160; And then one day, while studying for the CCNA, it just clicked.&#160; I thought I’d try to [...]]]></description>
			<content:encoded><![CDATA[<p>One of the concepts that I initially struggled with was wild card masks.&#160; They just didn’t make any sense to me.&#160; I couldn’t understand them and the examples in the Cisco press book just pushed that frustration further.&#160; And then one day, while studying for the CCNA, it just clicked.&#160; I thought I’d try to explain them in my own words so that other people might be able to benefit from, what I think is, a simpler way to look at them.</p>
<p><strong>What is a wild card mask?      <br /></strong>Wild card masks are used for a variety of different tasks.&#160; OSPF area definitions and some access lists use them to define a certain part of the network.&#160; They work much like subnet masks but in reverse.&#160; For instance, take this Class C subnet.</p>
<p><font color="#008000">192.168.127.1 /24</font>     <br />Network – <font color="#008000">192.168.127.1</font>     <br />Subnet mask – <font color="#008000">255.255.255.0</font>     <br />Wild Card Mask – <font color="#008000">0.0.0.255</font></p>
<p>Pretty straightforward right?&#160; The wild card mask is essentially the reverse of the subnet mask.&#160; So if the binary subnet mask looked like……</p>
<p><font color="#008000">11111111.11111111.11111111.00000000</font></p>
<p>The wild card mask would look like this…..</p>
<p><font color="#008000">00000000.00000000.00000000.11111111</font></p>
<p>That&#8217;s all fairly easy to understand, however when you start using VLSM it can get a little trickier.&#160; For instance, take this class C subnet.</p>
<p><font color="#008000">192.168.127.1 /27</font>     <br />Network – <font color="#008000">192.168.127.1      <br /></font>Subnet mask –<font color="#008000"> 255.255.255.224</font>     <br />Wild Card Mask – <font color="#008000">0.0.0.31</font></p>
<p>The binary would look like this…..</p>
<p><font color="#008000">11111111.11111111.11111111.11100000</font></p>
<p>The wild card mask would look like this…..</p>
<p><font color="#008000">00000000.00000000.00000000.00011111</font></p>
<p>Now that’s a little more confusing isn’t it?&#160; What might even be harder to understand is if you were simply given this…</p>
<p><font color="#008000">access-list 1 permit 192.168.127.1 0.0.0.31</font></p>
<p>The Cisco book I read suggested that you do the binary conversion to figure out what exact network that ACL represented.&#160; That seems like a waste of time to me.&#160; Why not just subtract the wild card octets from 255.255.255.255.&#160; In other words….</p>
<p><font color="#008000">&#160;&#160;&#160;&#160; 255.255.255.255      <br /></font>&#160;&#160; &#8211; <font color="#008000">&#160;&#160;&#160; 0.&#160;&#160;&#160;&#160; 0.&#160;&#160;&#160;&#160; 0.&#160; 31</font>     <br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;     <br /><font color="#008000">&#160;&#160;&#160;&#160; 255.255.255.224</font></p>
<p>Then to convert a mask from standard notation to wild card you simply subtract the subnet mask from 255.255.255.255.&#160; </p>
<p><font color="#008000">&#160;&#160;&#160; </font><font color="#008000"> 255.255.255.255&#160; <br /></font> -&#160; <font color="#008000"> 255.255.255.224     <br /></font>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#160; <br /><font color="#008000">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="#008000">0.&#160;&#160;&#160;&#160; 0.&#160;&#160;&#160;&#160; 0.&#160; 31</font> </font></p>
<p>Wasn’t that easy?&#160; Now I know some of you sitting out there reading this are thinking to yourself “Wow, we all knew that already”.&#160; But for someone who has just be introduced to wild card masks this could be a huge help.&#160; If someone would have just told me that I could just subtract as shown above it would have saved me one or two nights of frustration.&#160; I think the Cisco press books meant well by trying to show you the full binary math behind wild card masks &#8211; and I’m not saying you should learn the binary way of doing this as well &#8211; but knowing the quickest way to do something is often far more helpful (especially on exams!).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasblinkenlichten.com/?feed=rss2&amp;p=243</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using auto-MDIX on Cisco Switches (mdix auto)</title>
		<link>http://www.dasblinkenlichten.com/?p=240</link>
		<comments>http://www.dasblinkenlichten.com/?p=240#comments</comments>
		<pubDate>Wed, 14 Apr 2010 02:23:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://www.dasblinkenlichten.com/?p=240</guid>
		<description><![CDATA[For those of you who don’t know what MDIX is, it stands for Media Dependant Interface Crossover.&#160; In other words, it’s the feature on switches that allows you to use a patch (straight through) cable rather than a crossover cable to interconnect switches.&#160; It’s a great feature to have but there is some debate in [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who don’t know what MDIX is, it stands for Media Dependant Interface Crossover.&#160; In other words, it’s the feature on switches that allows you to use a patch (straight through) cable rather than a crossover cable to interconnect switches.&#160; It’s a great feature to have but there is some debate in regards to whether or not it should be used. </p>
<p>Personally I never use it.&#160; Why?&#160; Since I started Cisco it has been beaten into my head that trunks use crossover cables.&#160; That’s just how it was.&#160; Truthfully, most trunk links these days are going to be fiber but if we do run across a copper trunk we’ll use a crossover cable.</p>
<p>So why would we still mess around with using crossover cables when managed switches can flip the pairs for us?&#160; Because there are a few things that you might not know about the auto-mdix feature on Cisco switches that can leave you perplexed if you don’t fully understand it. </p>
<p>The one big problem with auto-mdix is that you HAVE to use auto duplex and auto speed settings on the trunk ports.&#160; Let’s take a look at an example of an auto-mdix configuration. </p>
<p><font color="#008000">2940# </font>config t<font color="#008000">      <br />Enter configuration commands, one per line.&#160; End with CNTL/Z.       <br />2940(config)# </font>int faste0/4<font color="#008000">      <br />2940(config-if)# </font>mdix auto     <br /><font color="#008000">2940(config-if)#      <br />1w6d: %LINK-3-UPDOWN: Interface FastEthernet0/4, changed state to up       <br />1w6d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up       <br />2940(config-if)# </font>duplex full<font color="#008000">      <br />1w6d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down       <br />1w6d: %LINK-3-UPDOWN: Interface FastEthernet0/4, changed state to down       <br />2940(config-if)#</font></p>
<p>I start by configuring the port for auto-mdix.&#160; As you can see, the instant I configure the option, the interface loads and comes up.&#160; However, the instant I hard code the port to a duplex of full, the interface goes down.&#160; A documented requirement of the auto-mdix feature is that you have to let both sides do auto duplex and speed negotiation.&#160; So, if your company standard is to hard code speed and duplex on trunk ports, then you’ll be using a cross over cable. </p>
<p>I will admit that it’s a great feature to use in a pinch.&#160; Sometime I just don&#8217;t have a crossover cable with me and in those cases I’ll use it temporarily.&#160; But I always go back and put a crossover cable in its place.&#160; That&#8217;s just me though.&#160; I know some people that use it religiously, and other that won’t touch it.&#160; I see it as an unnecessary complication that can cause issues down the road.&#160; If an engineer doesn&#8217;t see the auto-mdix configuration and sets the speed or duplex they can end up stumped for days.&#160; You should be aware that its an option, but be aware of its limitations.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasblinkenlichten.com/?feed=rss2&amp;p=240</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
