<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>JATB</title>
	<atom:link href="http://jpvh.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jpvh.wordpress.com</link>
	<description>Just Another Tech Blog</description>
	<lastBuildDate>Tue, 11 Aug 2009 03:54:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jpvh.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>JATB</title>
		<link>http://jpvh.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jpvh.wordpress.com/osd.xml" title="JATB" />
	<atom:link rel='hub' href='http://jpvh.wordpress.com/?pushpress=hub'/>
		<item>
		<title>IOS-WebVPN Configuration</title>
		<link>http://jpvh.wordpress.com/2009/08/11/ios-webvpn-configuration/</link>
		<comments>http://jpvh.wordpress.com/2009/08/11/ios-webvpn-configuration/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 03:54:04 +0000</pubDate>
		<dc:creator>jpvh</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[webvpn]]></category>

		<guid isPermaLink="false">http://jpvh.wordpress.com/?p=100</guid>
		<description><![CDATA[Coming Soon&#8230;.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=100&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Coming Soon&#8230;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jpvh.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jpvh.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jpvh.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jpvh.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jpvh.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jpvh.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jpvh.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jpvh.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jpvh.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jpvh.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jpvh.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jpvh.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jpvh.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jpvh.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=100&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jpvh.wordpress.com/2009/08/11/ios-webvpn-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dae7d7b431451e4166f31f6e8a038412?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpvh</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle-SQL-Duplicates with Multiple Key Fields</title>
		<link>http://jpvh.wordpress.com/2009/05/24/oracle-sql-duplicates-with-multiple-key-fields/</link>
		<comments>http://jpvh.wordpress.com/2009/05/24/oracle-sql-duplicates-with-multiple-key-fields/#comments</comments>
		<pubDate>Sun, 24 May 2009 16:51:15 +0000</pubDate>
		<dc:creator>jpvh</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Duplicate]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://jpvh.wordpress.com/?p=95</guid>
		<description><![CDATA[You may have situations where you need to find duplicates in a table, but those duplicates may not be tied to an key, or may be duplicates of only a partial key.  In the following table, every field is a part of the primary key so there can be no duplicates.  However, we only want [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=95&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You may have situations where you need to find duplicates in a table, but those duplicates may not be tied to an key, or may be duplicates of only a partial key.  In the following table, every field is a part of the primary key so there can be no duplicates. </p>
<p><img class="alignnone size-full wp-image-96" title="add_cycle_accts" src="http://jpvh.files.wordpress.com/2009/05/add_cycle_accts.png?w=450" alt="add_cycle_accts"   /></p>
<p>However, we only want records where there is a duplicate across the first four fields.  To do so we construct a query to join the table &#8220;to itself&#8221;, and use the ROWID reserved word, as in:</p>
<pre>SELECT t1.entity_no
,t1.origination_type
,t1.cif_id
,t1.object_id
,t1.acct_id
,t1.acct_type
,t1.acct_number
FROM add_cycle_accts t1
WHERE ROWID &gt;
     (SELECT MIN(ROWID)
     FROM add_cycle_accts t2
     WHERE t1.entity_no = t2.entity_no
     AND t1.origination_type = t2.origination_type
     AND t1.cif_id = t2.cif_id
     AND t1.object_id = t2.object_id)
AND t1.entity_no = '000100'
ORDER BY t1.cif_id</pre>
<p>Notice that the WHERE clause of the inner query creates a join based on the fields we defined as important.  All records with duplicates across those first 4 fields will be returned.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jpvh.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jpvh.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jpvh.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jpvh.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jpvh.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jpvh.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jpvh.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jpvh.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jpvh.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jpvh.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jpvh.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jpvh.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jpvh.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jpvh.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=95&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jpvh.wordpress.com/2009/05/24/oracle-sql-duplicates-with-multiple-key-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dae7d7b431451e4166f31f6e8a038412?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpvh</media:title>
		</media:content>

		<media:content url="http://jpvh.files.wordpress.com/2009/05/add_cycle_accts.png" medium="image">
			<media:title type="html">add_cycle_accts</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle-SQL-Update One or More Fields using Multi-table Join for Exclusion</title>
		<link>http://jpvh.wordpress.com/2009/05/07/oracle-sql-update-one-fields-using-multi-table-join-for-exclusion/</link>
		<comments>http://jpvh.wordpress.com/2009/05/07/oracle-sql-update-one-fields-using-multi-table-join-for-exclusion/#comments</comments>
		<pubDate>Thu, 07 May 2009 17:22:38 +0000</pubDate>
		<dc:creator>jpvh</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://jpvh.wordpress.com/?p=86</guid>
		<description><![CDATA[What if you need to update a field in a table, but in order to select the proper rows for update you have to go through a multi-table join?  For example, below we have 3 tables, part of which are defined below. TABLE t1 ENTITY_NO       CHAR(6 BYTE) ACCT_TYPE       CHAR(4 BYTE)  ACCT_NUMBER     CHAR(20 BYTE)  PERIOD_TYPE     CHAR(1 BYTE)  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=86&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What if you need to update a field in a table, but in order to select the proper rows for update you have to go through a multi-table join?  For example, below we have 3 tables, part of which are defined below.</p>
<pre>TABLE t1
ENTITY_NO       CHAR(6 BYTE)
ACCT_TYPE       CHAR(4 BYTE) 
ACCT_NUMBER     CHAR(20 BYTE) 
PERIOD_TYPE     CHAR(1 BYTE) 
PERIOD         CHAR(6 BYTE) 
BALANCE_TYPE   CHAR(2 BYTE) 
BALANCE_CODE   CHAR(6 BYTE) 
ENDING_BALANCE NUMBER(16,2) 
INTEREST_RATE   NUMBER(10,6) 
ACCRUAL_DAYS   NUMBER(6,0)    
BASIS           CHAR(2 BYTE)
ACCRUED_AMOUNT NUMBER(16,6) 
ACCRUED_BALANCE NUMBER(16,6)  
ACCRUED_PAID   NUMBER(16,2)

TABLE t2
ENTITY_NO                CHAR(6 BYTE)
ACCT_TYPE                CHAR(4 BYTE)
ACCT_NUMBER              CHAR(20 BYTE)
DESCRIPTION              VARCHAR2(512 BYTE)
COMP_CONSTRUCTION        CHAR(10 BYTE)
STATUS                  CHAR(4 BYTE)

TABLE t3
ENTITY_NO                   CHAR(6 BYTE)
ACCT_TYPE                   CHAR(4 BYTE)
COMP_CONSTRUCTION           CHAR(10 BYTE)
DESCRIPTION                 VARCHAR2(128 BYTE)
INTEREST_FUNCTIONS_ALLOWED CHAR(1 BYTE)</pre>
<p>Now that we have the tables defined, we extract our data for a little test.  We want to get all rows from t1 where &#8220;accrued_balance &gt; 0&#8243;, but we have other exclusions for t1 as well, as shown in the SQL below.  We also have to filter rows from t1 based on only certain fields in other joined tables.  We only want rows where &#8220;status &lt; &#8217;0009&#8242;&#8221; from t2, and &#8220;INTEREST_FUNCTIONS_ALLOWED = &#8217;0&#8242;&#8221; from t3.  So, to get an idea of what we need to look for, we build the following relatively straight-forward query joining the 3 tables and listing the exclusions.</p>
<pre>SELECT t1.ACCT_TYPE
,t1.ACCT_NUMBER
,t1.ACCRUED_BALANCE
,t2.DESCRIPTION
,t3.DESCRIPTION
FROM t1
INNER JOIN t2 ON t2.ENTITY_NO = t1.ENTITY_NO
AND t2.ACCT_TYPE = t1.ACCT_TYPE
AND t2.ACCT_NUMBER = t1.ACCT_NUMBER
INNER JOIN t3 ON t3.ENTITY_NO = t2.ENTITY_NO
AND t3.ACCT_TYPE = t2.ACCT_TYPE
AND t3.COMP_CONSTRUCTION = t2.COMP_CONSTRUCTION
WHERE t1.ENTITY_NO = '000100'
AND t1.BALANCE_TYPE = '02'
AND t1.PERIOD_TYPE = '0'
AND t1.PERIOD = '001496'
AND t1.ACCRUED_BALANCE &gt; 0
AND t1.ACCT_TYPE = '0001'
AND t2.STATUS &lt; '0009'
AND t3.INTEREST_FUNCTIONS_ALLOWED = '0'
ORDER BY t1.ACCT_TYPE
,t1.ACCT_NUMBER;</pre>
<p>NOTE:  IN THE QUERY ABOVE, T3 IS JOINED TO T2, NOT TO T1.</p>
<p>We have an idea of what we want to select, but the point of this post is to UPDATE one of those fields using the query above as a basis for our selection criteria.  Specifically, we want to set the &#8221;accrued_balance&#8221; in t1 to &#8217;0&#8242; based on those selection criteria.  However, we can&#8217;t just UPDATE with a JOIN defined.  We have to re-arrange the JOINs to become WHERE EXISTS clauses, as in the following:</p>
<pre>UPDATE t1
SET t1.ACCRUED_BALANCE = 0
WHERE EXISTS (SELECT *
     FROM t2
     WHERE EXISTS (SELECT *
          FROM t3
          WHERE t3.ENTITY_NO = t2.ENTITY_NO
          AND t3.ACCT_TYPE = t2.ACCT_TYPE
          AND t3.COMP_CONSTRUCTION = t2.COMP_CONSTRUCTION
          AND t3.INTEREST_FUNCTIONS_ALLOWED = '0'
          )
     AND t2.ENTITY_NO = t1.ENTITY_NO
     AND t2.ACCT_TYPE = t1.ACCT_TYPE
     AND t2.ACCT_NUMBER = t1.ACCT_NUMBER
     AND t2.STATUS &lt; '0009'
     )
AND t1.ENTITY_NO = '000100'
AND t1.BALANCE_TYPE = '02'
AND t1.PERIOD_TYPE = '0'
AND t1.PERIOD = '001496'
AND t1.ACCRUED_BALANCE &gt; 0
AND t1.ACCT_TYPE = '0001';</pre>
<p>Note above how the fields used in the JOIN clauses are now used in a WHERE statement of a sub-query.  Also, note that any WHERE statements from the original query that pertain to a specific table have to be moved to the table specific SELECT/WHERE section of the query.  For example, &#8220;t3.INTEREST_FUNCTIONS_ALLOWED = 0&#8243; is now in the WHERE statement for the t3 table SELECT.</p>
<p>That&#8217;s it.  Of course if you want to SET more than one field to some other value, just add more statements directly after &#8220;t1.accrued_balance = 0&#8243;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jpvh.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jpvh.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jpvh.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jpvh.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jpvh.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jpvh.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jpvh.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jpvh.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jpvh.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jpvh.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jpvh.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jpvh.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jpvh.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jpvh.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=86&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jpvh.wordpress.com/2009/05/07/oracle-sql-update-one-fields-using-multi-table-join-for-exclusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dae7d7b431451e4166f31f6e8a038412?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpvh</media:title>
		</media:content>
	</item>
		<item>
		<title>CCNA Book Review &#8211; Exam Cram 3rd Edition</title>
		<link>http://jpvh.wordpress.com/2009/05/05/ccna-book-review-exam-cram-3rd-edition/</link>
		<comments>http://jpvh.wordpress.com/2009/05/05/ccna-book-review-exam-cram-3rd-edition/#comments</comments>
		<pubDate>Tue, 05 May 2009 18:25:29 +0000</pubDate>
		<dc:creator>jpvh</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Book Review]]></category>

		<guid isPermaLink="false">http://jpvh.wordpress.com/?p=72</guid>
		<description><![CDATA[I&#8217;ll be honest, I started this blog as a way to document my studies through the Cisco certification process.  I&#8217;ve been working with Cisco products for 10 years or so, enjoy networking, consider myself a better than average student, and have even taken a few study courses.  In fact, I sat and passed the ICND-1 test [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=72&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll be honest, I started this blog as a way to document my studies through the Cisco certification process.  I&#8217;ve been working with Cisco products for 10 years or so, enjoy networking, consider myself a better than average student, and have even taken a few study courses.  In fact, I sat and passed the ICND-1 test about 4 years ago.  But, then some things happened that derailed my test taking and I never went back and took ICND-2.  So, now that I have a bit of time, I decided to get a simple book, read up, take the all-in-one exam (640-802), pass the CCNA and get started on CCNP.  I went down to my local Barnes &amp; Nobles, bought up &#8220;Exam Cram, 3rd Edition&#8221; from Que Publishing, and started reading it.</p>
<p>Now, I haven&#8217;t taken the CCNA test yet, but I have completed the book.  Let me say this, the book is not all that bad.  I like the simplified writing, there&#8217;s a tear-out &#8220;remember me&#8221; card and a CD with some practice questions.  Most of the example questions aren&#8217;t bad, but some of them are in serious need of a fact-checker and/or an editor who knows what he/she is doing.  To put it simply, the questions and answer choices simply don&#8217;t match some of the drawings shown.</p>
<p>Point in fact is the diagram below.  I reproduced it because I hated this question in the book, and I hated it again when it showed up on the CD.  The CD has a &#8220;practice&#8221; exam mode and a PDF of the entire book (any of you studying for these tests know all about these things; I don&#8217;t have to go into detail).  Anyway, I pop in the CD today, install the test software, start my first test, and low-and-behold, the test questions ARE EXACTLY THE SAME AS IN THE BOOK.  Now, I appreciate the PDF, I appreciate the timer in the software to tell me if I&#8217;m going too slow, but for crying-out-loud, if you&#8217;re going to provide a CD, CAN&#8217;T YOU FOLKS PUT IN SOME DIFFERENT QUESTIONS?  Enough of that; on to the diagram.</p>
<p><img class="alignnone size-full wp-image-74" title="Exam Cram Example 1" src="http://jpvh.files.wordpress.com/2009/05/examcramexample1.png?w=450&#038;h=201" alt="Exam Cram Example 1" width="450" height="201" /></p>
<p>Ok, I didn&#8217;t cut-and-paste from the PDF.  I recreated it in Visio to keep from getting sued.  Trust me, all the information in the book diagram is in the diagram above.  To which we add some configuration information, such as:</p>
<p>RouterA<br />
interface fastethernet 3/1<br />
ip address 172.16.64.1 255.255.252.0<br />
interface serial0/0<br />
ip address 172.16.22.190 255.255.252.0<br />
ip route 172.16.128.0 255.255.252.0 172.16.24.185</p>
<p>RouterB<br />
interface fastethernet 0/0<br />
ip address 172.16.128.1 255.255.252.0<br />
interface serial 0/0<br />
ip address 172.16.24.185 255.255.252.0<br />
ip route 172.16.64.0 255.255.252.0 172.16.22.190</p>
<p>And now, for the question.  &#8220;Why are you (at 172.16.64.201) unable to access the website (at 172.16.129.48)?&#8221;  From which your choices are:</p>
<ol>
<li>The static route is incorrect on Router A.</li>
<li>The serial 0/0 on Router A is on a network different from bri0/0 on Router B.</li>
<li>The server is on a network different from fastethernet 0/0 on Router B.</li>
<li>The static route on Router B is incorrect.</li>
<li>Your computer uses an invalid IP address.</li>
</ol>
<p>Ok, what&#8217;s your answer?  As a studying CCNA I&#8217;ll tell you that the static routes on both routers are correct, and. that &#8220;your computer&#8221; is using a perfectly valid IP address.  So, that leaves questions #2 and 3.  I&#8217;ll also tell you that /22 means that there are 4 valid subnets, on boundaries of a multiple of 64, starting at 0 in the 3rd octet.  So, my valid subnet values in the 3rd octet are 0,64,128, and 192, meaning that my Router B and workstatation are on the SAME subnet.  Therefore question #3 is not correct.</p>
<p>That leaves #2.  Now, look closely.  Where on the diagram is the &#8220;BRI 0/0&#8243; interface?  Where in the configuration is the &#8220;BRI 0/0&#8243; interface?  If I&#8217;m scanning through questions on a TIMED EXAM and I see an answer concerning an interface that&#8217;s NOT PRESENT ON THE DIAGRAM OR IN THE CONFIGURATION, then my time optimization skills will kick in and eliminate that question right off the bat. </p>
<p>As you probably know, timed test taking is as much about time management as it is about actual knowledge.  I hope some of you can look at the configuration and easily and timely eliminate questions #3 and #5 as possible answers.  However, most of us have to go through the hassle of figuring out network addresses and subnet masks and valid address ranges, etc.  That takes time.</p>
<p>When I approach this question, as a test-taking strategy, if I can look at the configuration and the diagram and easily see that the static routes are correct, I have just improved my &#8220;guessing&#8221; odds from 20% to 33% (that is, from 1 in 5 to 1 in 3).  If I can eliminate the question concerning a &#8220;phantom&#8221; interface, I&#8217;ve improved my odds all the way to 50%, and I&#8217;ve taken virtually no time at all to do it.  Therefore, all I have to do is concentrate my TIME on questions #3 and #5.  But as it turns out, questions #3 and #5 are both FALSE.  So, now, where do I go?  I eliminated #s 1 and 4 right off the bat looking at the diagram.  I eliminated #2 becasue it&#8217;s talking about an interface that&#8217;s not anywhere to be seen.  Now, I have gone through the TIME it takes to figure out whether or not #s 3 and 5 are correct and it turns out they are both FALSE as well.</p>
<p>The answer key indicates that serial 0/0 of Router B is on a different network than serial 0/0 of Router A.  So, the answer key has terminology to match the configurations, but the question doesn&#8217;t.  That PISSES ME OFF.  If you&#8217;re going to write a book expecting people to take TIMED tests based on the knowledge gleaned from the book, MAKE DAMN SURE THE SAMPLE QUESTIONS ARE RIGHT.  And, if you&#8217;re going to provide some CD full of stuff, don&#8217;t waste my time (or your costs) and make it 100% THE SAME AS THE BOOK (yes, the question is worded incorrectly in the printed version, the PDF version, and on the test-taking application).  Mix it up a little; make it something new and fresh.</p>
<p>From Dennis Miller, &#8220;Of course, that&#8217;s just my opinion.  I could be wrong.&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jpvh.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jpvh.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jpvh.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jpvh.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jpvh.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jpvh.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jpvh.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jpvh.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jpvh.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jpvh.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jpvh.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jpvh.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jpvh.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jpvh.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=72&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jpvh.wordpress.com/2009/05/05/ccna-book-review-exam-cram-3rd-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dae7d7b431451e4166f31f6e8a038412?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpvh</media:title>
		</media:content>

		<media:content url="http://jpvh.files.wordpress.com/2009/05/examcramexample1.png" medium="image">
			<media:title type="html">Exam Cram Example 1</media:title>
		</media:content>
	</item>
		<item>
		<title>IOS Service Config</title>
		<link>http://jpvh.wordpress.com/2009/05/04/ios-service-config/</link>
		<comments>http://jpvh.wordpress.com/2009/05/04/ios-service-config/#comments</comments>
		<pubDate>Mon, 04 May 2009 16:56:32 +0000</pubDate>
		<dc:creator>jpvh</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[Service]]></category>

		<guid isPermaLink="false">http://jpvh.wordpress.com/?p=70</guid>
		<description><![CDATA[Here&#8217;s one I had completely forgotten about.  If you&#8217;ve read some of the earlier articles, you&#8217;ve read that I freely admit to not using 2500 series routers in quite some time.  I flipped on my trusty TFTP server the other day and suddenly realized my 2511 terminal server was repeatedly asking for a config file.  If you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=70&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s one I had completely forgotten about.  If you&#8217;ve read some of the earlier articles, you&#8217;ve read that I freely admit to not using 2500 series routers in quite some time.  I flipped on my trusty TFTP server the other day and suddenly realized my 2511 terminal server was repeatedly asking for a config file.  If you haven&#8217;t seen this before, it&#8217;s because it&#8217;s a bit of an older mechanism that&#8217;s now normally turned off.  Anyway, somehow my 2511 had the service turned on and every few seconds was asking my TFTP server for a new configuration.  So, to restore some sanity to the TFTP server logs, just fire up &#8220;config t&#8221; and</p>
<ul>
<li>no service config</li>
</ul>
<p>Of course, having your trusty router go to the network for a confiuration file each time it reboots may be a security issue for you, so it&#8217;s normally turned off.  If you want to drop the excessive TFTP hits, turn it off on your systems.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jpvh.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jpvh.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jpvh.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jpvh.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jpvh.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jpvh.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jpvh.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jpvh.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jpvh.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jpvh.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jpvh.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jpvh.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jpvh.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jpvh.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=70&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jpvh.wordpress.com/2009/05/04/ios-service-config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dae7d7b431451e4166f31f6e8a038412?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpvh</media:title>
		</media:content>
	</item>
		<item>
		<title>Rack Journey &#8211; 3</title>
		<link>http://jpvh.wordpress.com/2009/04/25/rack-journey-3/</link>
		<comments>http://jpvh.wordpress.com/2009/04/25/rack-journey-3/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 15:49:38 +0000</pubDate>
		<dc:creator>jpvh</dc:creator>
				<category><![CDATA[Rack]]></category>

		<guid isPermaLink="false">http://jpvh.wordpress.com/?p=65</guid>
		<description><![CDATA[When I bought this 16 unit rack, I thought I would be leaving half of it empty.  Of course, that was wrong.  The rack now consists of the following, in units from the top: Cisco 2511 (TERM-1)- Console port terminal server PDU &#60;blank&#62; Cisco 1841 (RTR-1) Cisco 1841 (RTR-2) Cisco 2960 (SW-1) Cisco 2950 (SW-2) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=65&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When I bought this 16 unit rack, I thought I would be leaving half of it empty.  Of course, that was wrong.  The rack now consists of the following, in units from the top:</p>
<ol>
<li>Cisco 2511 (TERM-1)- Console port terminal server</li>
<li>PDU</li>
<li>&lt;blank&gt;</li>
<li>Cisco 1841 (RTR-1)</li>
<li>Cisco 1841 (RTR-2)</li>
<li>Cisco 2960 (SW-1)</li>
<li>Cisco 2950 (SW-2)</li>
<li>&lt;blank&gt;</li>
<li>Cisco 1841 (RTR-3)</li>
<li>Cisco 1760 (RTR-4)</li>
<li>Cisco 3661 (RTR-6) &#8211; 5 units</li>
<li>Cisco 3661 (RTR-6) &#8211; 5 units</li>
<li>Cisco 3661 (RTR-6) &#8211; 5 units</li>
<li>Cisco 3661 (RTR-6) &#8211; 5 units</li>
<li>Cisco 3661 (RTR-6) &#8211; 5 units</li>
</ol>
<p>RTR-5 is a Cisco 871 that just sits on the top of the rack.</p>
<p>RTR-1 is an older 1841 that doesn&#8217;t have rack mount holes drilled, so I had to purchase a tray type mount.  The tray is larger than 1 unit, so that blank has to be left.  Plus, the PDU is mounted facing the front so it&#8217;s easy to turn off and on, and having the blank allows me to route power cables from the back.</p>
<p>SW-2 is more of a center-mount switch and thus sticks out further from the others.  Having a blank below it makes it easier to get to the next device, RTR-3.  That means, when it&#8217;s all over with, I have 1 (maybe 2) units available in the rack.  Not much from where I started.</p>
<p>I have routers 1-5 running EIGRP on an &#8220;internal&#8221; interface, and OSPF on an &#8220;external&#8221; interface.  All the interfaces currently used are Ethernet, which are run through two different switches, though I could have set up separate VLANs and run it through one.  RTR-6 is still in transit, but it will be the frame relay/WAN when it&#8217;s all said and done.</p>
<p>The 2511 was a real treat to configure.  I haven&#8217;t worked with 2500 series routers in quite some time.  If any of you don&#8217;t know what an AUI adapter is, well, you&#8217;re probably a 20 year old snot-nosed kid fresh out of tech school who needs to get some blisters on his/her fingers before being given any real responsibility.  If you DO know what an AUI adapter is, you&#8217;re probably an over-the-hill geezer like myself.  In either case, if you purloin a 2509/11 as a terminal server, don&#8217;t forget to order the AUI for it.  Oh, and go get an octal console cable as well.  If you&#8217;re going for your CCNA and have a home lab, the terminal server is no doubt over-kill.  If you&#8217;re looking at one of the mid-tier or higher certifications, save yourself some wear and tear on console ports/cables and go get a terminal server.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jpvh.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jpvh.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jpvh.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jpvh.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jpvh.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jpvh.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jpvh.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jpvh.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jpvh.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jpvh.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jpvh.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jpvh.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jpvh.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jpvh.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=65&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jpvh.wordpress.com/2009/04/25/rack-journey-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dae7d7b431451e4166f31f6e8a038412?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpvh</media:title>
		</media:content>
	</item>
		<item>
		<title>NTP for IOS</title>
		<link>http://jpvh.wordpress.com/2009/04/17/ntp-for-ios/</link>
		<comments>http://jpvh.wordpress.com/2009/04/17/ntp-for-ios/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 15:18:57 +0000</pubDate>
		<dc:creator>jpvh</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[NTP]]></category>

		<guid isPermaLink="false">http://jpvh.wordpress.com/?p=57</guid>
		<description><![CDATA[NTP (Network Time Protocol) is a good idea to run on your network devices that support it.  Sooner or later, you&#8217;re going to need to read through some logs gathered from multiple devices.  When you start comparing those logs, it&#8217;s a lot easier to do when the time stamps are in sync between the devices. NTP works [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=57&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>NTP (Network Time Protocol) is a good idea to run on your network devices that support it.  Sooner or later, you&#8217;re going to need to read through some logs gathered from multiple devices.  When you start comparing those logs, it&#8217;s a lot easier to do when the time stamps are in sync between the devices.</p>
<p>NTP works in a hierarchical fashion called a &#8220;stratum&#8221;.  Devices with a lower stratum are supposed to be closer to &#8220;real&#8221; time than devices with a higher stratum.  Within your own network, you can probably envision something similar.  Let&#8217;s assume you DON&#8217;T have an internal clock device and that you have a network similar to the following:</p>
<div id="attachment_59" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-59" title="ntp-example" src="http://jpvh.files.wordpress.com/2009/04/ntp-example.png?w=450&#038;h=449" alt="NTP Example" width="450" height="449" /><p class="wp-caption-text">NTP Example</p></div>
<p>Here we have a nice little corporate network.  Tracing from the outside-in we have an external router, followed by a firewall, followed by a multi-layer switch connecting some servers and an internal router connecting to a private WAN.  We have a few devices that we want to put NTP on, so let&#8217;s start with the external router.</p>
<p>Now, depending on the devices used, I&#8217;d probably make my firewall the master NTP device in this diagram, but for arguments sake, let&#8217;s say it&#8217;s the external router.  If I want to make it the NTP master for the rest of my network, I&#8217;d start at &#8220;config t&#8221;:</p>
<ul>
<li><strong>clock timezone CST -6 &#8211; </strong>This is not an NTP command, but it does determine the offset for this device from UTC.  So that my log timestamps show the correct localtime, I&#8217;ll include this.   I live in the USA Central timezone, which is 6 hours from UTC.  Pick your timezone accordingly.</li>
<li><strong>clock summer-time CDT recurring &#8211; </strong>Again, this is not an NTP command, but it does allow the router to change to daylight savings time on the appropriate day.</li>
<li><strong>ntp master 10 &#8211; </strong>With this command, I tell the router to make its internal clock an NTP master.  Then, I tell it to give it a stratum of &#8220;10&#8243;, which is not very high.  Basically, I want to use my internal clock as a master only in the case one of the other NTP servers (see below) is not available.</li>
<li><strong>ntp update-calendar &#8211; </strong>This allows NTP to update the calendar chip on the router.</li>
<li><strong>ntp source l0</strong> &#8211; This optional command tells IOS to set the source IP address of any NTP packets sent equal to the IP address of the Loopback0 interface.  Otherwise, the NTP packet source is equal to the IP address of the interfaces the packet is transmitted through.</li>
<li><strong>ntp server a.b.c.d &#8211; </strong>Pick at least 3 different NTP servers from the <a title="NTP Server List" href="http://support.ntp.org/bin/view/Servers/WebHome" target="_blank">public NTP server list</a></li>
<li><strong>ntp server e.f.g.h</strong></li>
<li><strong>ntp server w.x.y.z</strong></li>
</ul>
<p>Now, check to see if the clock on the device is working properly.  The easiest command is &#8220;sh clock&#8221; which will tell you if the clock is set correctly or not.  To see whether NTP is working or not, you can &#8220;sh ntp status&#8221; which as I write this looks like:</p>
<p style="padding-left:30px;">Clock is synchronized, stratum 2, reference is 64.202.112.75<br />
nominal freq is 250.0000 Hz, actual freq is 250.0195 Hz, precision is 2**24<br />
reference time is CD93111B.B53900A2 (09:30:51.707 CDT Fri Apr 17 2009)<br />
clock offset is 0.0061 msec, root delay is 0.03 msec<br />
root dispersion is 0.02 msec, peer dispersion is 0.00 msec<br />
loopfilter state is &#8216;CTRL&#8217; (Normal Controlled Loop), drift is -0.000078065 s/s<br />
system poll interval is 64, last update was 314 sec ago.</p>
<p>Notice the very first line above that says &#8220;Clock is synchronized&#8221;.  That means NTP is working.  Also, note the first line says &#8220;stratum 2&#8243; which means my router is now a stratum 2 NTP server, since it is getting its NTP updates from a stratum 1 server.  To get more detail on who I&#8217;m synchronizing to, use &#8220;sh ntp assoc&#8221;, which for me looks like:</p>
<p style="padding-left:30px;">#sh ntp assoc</p>
<pre>  address         ref clock       st   when   poll reach  delay  offset   disp
 ~127.127.1.1     .LOCL.           9     10     16   377  0.000   0.000  0.256
+~64.73.32.134    64.73.0.9        2      7     64   377  0.000  -0.660  2.904
+~128.138.188.172 .ACTS.           1     33     64   377  0.000 -16.713  1.144
*~64.202.112.75   .CDMA.           1      8     64   377  0.000   6.124  5.401
 * sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured</pre>
<p>In the output above you can see that my local clock (127.127.1.1) is &#8220;configured&#8221; but has a stratum of 9, which means it won&#8217;t be used unless the others are unavailable.  I have three NTP servers defined from the public list, and one of them (64.73.32.134) is a stratum 2 server, whereas the remaining two are stratum 1 servers.  I am currently getting clock updates from 64.202.112.75 identified by the * in the above output.</p>
<p>So, now we have our external router synchronized with some public time servers, and its&#8217; time is set correctly.  What about the rest of the network?  Back on our diagram, let&#8217;s take a look at the configuration on that switch, which will look like:</p>
<ul>
<li><strong>clock timezone CST -6 &#8211; </strong>I still need to set the clock to the correct timezone offset.</li>
<li><strong>clock summer-time CDT recurring &#8211; </strong>I also want my switch to update its clock based on daylight savings time.</li>
<li><strong>ntp server 10.1.240.1</strong> &#8211; I simply point my switch to the loopback0 interface of the external router.  Of course, in this network my firewall has to allow the communication.</li>
</ul>
<p>That&#8217;s about it.  Of course, you can develop more complete hierarchies, maybing making the switch in the above diagram a stratum 4 server, the internal WAN router as a stratum 5 getting its updates from the switch, the remote locations on the private WAN link as stratum 6 servers getting updates from the central WAN router and feeding more devices down the chain, etc., etc., etc.  You get the idea.</p>
<p>If you&#8217;d like some more reading on NTP direct from Cisco, take a look at <a title="NTP Best Practices" href="http://www.cisco.com/en/US/tech/tk869/tk769/technologies_white_paper09186a0080117070.shtml" target="_blank">this</a>.  Now, go out and get your network device clocks synchronized.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jpvh.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jpvh.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jpvh.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jpvh.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jpvh.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jpvh.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jpvh.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jpvh.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jpvh.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jpvh.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jpvh.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jpvh.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jpvh.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jpvh.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=57&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jpvh.wordpress.com/2009/04/17/ntp-for-ios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dae7d7b431451e4166f31f6e8a038412?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpvh</media:title>
		</media:content>

		<media:content url="http://jpvh.files.wordpress.com/2009/04/ntp-example.png" medium="image">
			<media:title type="html">ntp-example</media:title>
		</media:content>
	</item>
		<item>
		<title>SSH Terminal Connections on IOS</title>
		<link>http://jpvh.wordpress.com/2009/04/13/ssh-terminal-connections-on-ios/</link>
		<comments>http://jpvh.wordpress.com/2009/04/13/ssh-terminal-connections-on-ios/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 13:27:32 +0000</pubDate>
		<dc:creator>jpvh</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://jpvh.wordpress.com/?p=52</guid>
		<description><![CDATA[Of course you know Telnet is not secure, right?  Telnet is sent as clear-text across the network.  If you&#8217;re remotely administering a router or switch at the command line and you&#8217;re doing it with Telnet, packet sniffers can observe.  For internally facing administrative connections, Telnet is a &#8220;bad practice&#8221;.  For connections administered over the Internet, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=52&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Of course you know Telnet is not secure, right?  Telnet is sent as clear-text across the network.  If you&#8217;re remotely administering a router or switch at the command line and you&#8217;re doing it with Telnet, packet sniffers can observe.  For internally facing administrative connections, Telnet is a &#8220;bad practice&#8221;.  For connections administered over the Internet, Telnet should be abandoned immediately.</p>
<p>SSH provides for encryption of administrative commands as they are sent to a terminal device (such as a router or switch) and provides for a somewhat rudimentary form of device authentication.  When a client (your PC running an SSH client, such as <a title="Putty" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">Putty</a>) connects to a new server (your switch or router) the client receives the hosts&#8217; &#8220;fingerprint&#8221;, or public key part of a public/private key pair.  The client will store the public key and on subsequent connections compare the stored public key to the public key presented at the next login time.  If the two match, the user is assured that he/she is communicating with the same device as in the initial session.  If the keys don&#8217;t match the client is warned that the public key has changed.  The user should proceed with caution.</p>
<p>From the paragraph above it&#8217;s obvious that you need to get a public/private key pair in IOS before SSH can be enabled.  However, there are four (4) other prerequisites that have to be met before SSH can be enabled.</p>
<ol>
<li>Your device (switch, router) must be capable of supporting SSH.  For switches, models 1950 and up (2950, 2960, 3550, 3560, 3750, 4xxx, 6500) should be fine.  For routers, any ISR router (870, 1800, 2800, 3800) and most 2600s should be capable.</li>
<li>Your IOS must support SSH.  SSH used to be provided in &#8220;security&#8221; images only, but in newer revisions is being migrated down to virtually all code.</li>
<li>You must have a hostname defined, such as <strong>hostname RTR-1</strong>.</li>
<li>You must have a domain name defined, such as <strong>ip domain-name jatb.net</strong>.</li>
</ol>
<p>Once these prerequisites are met, you can enable your device for SSH.  To do so, start at &#8220;config t&#8221;:</p>
<ul>
<li><strong>crypto key generate rsa</strong> &#8211; This command will prompt for a few more items, noticeably a modulus length.  On my 1841, lengths between 360 and 2048 can be chosen.  Keep in mind that some longer lengths may not be supported in all clients.  I normally pick 1024, but have also successfully used 1536.   Once this command is finished, SSH version 1.99 will be enabled on your device.</li>
<li><strong>ip ssh version 2 &#8211; </strong>There are some cryptographic security problems with versions of SSH earlier than 2, so be sure you specify version 2.</li>
<li><strong>line vty 0 15 &#8211; </strong>After enabling SSH, you&#8217;re going to want to apply it to your router/switch vty ports so.  So, once you&#8217;re in line configuration mode, execute the following command and test your SSH connection.</li>
<li><strong>transport input ssh telnet</strong> &#8211; This command enables both SSH and Telnet to your VTY ports.  Try SSH and once you&#8217;re satisfied it works, go back to line configuration mode and execute <strong>transport input ssh </strong>to limit your connections to only SSH inbound.</li>
</ul>
<p>There are, of course, other commands to change authentication timeouts and other such nuances you can explore.  <a title="Cisco SSH Configuration" href="http://www.cisco.com/en/US/tech/tk583/tk617/technologies_tech_note09186a00800949e2.shtml#sshvvs" target="_blank">This document</a> walks you through a few of them.  To ensure SSH is enabled on a device, type <strong>sh ip ssh.  </strong>To see if any SSH sessions are in use, use <strong>sh ssh.</strong>  Once &#8220;transport input ssh&#8221; is in place on all your devices, you can worry about one less security issue.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jpvh.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jpvh.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jpvh.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jpvh.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jpvh.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jpvh.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jpvh.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jpvh.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jpvh.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jpvh.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jpvh.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jpvh.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jpvh.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jpvh.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=52&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jpvh.wordpress.com/2009/04/13/ssh-terminal-connections-on-ios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dae7d7b431451e4166f31f6e8a038412?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpvh</media:title>
		</media:content>
	</item>
		<item>
		<title>IOS Simple Inside-to-Outside NAT</title>
		<link>http://jpvh.wordpress.com/2009/04/09/ios-simple-inside-to-outside-nat/</link>
		<comments>http://jpvh.wordpress.com/2009/04/09/ios-simple-inside-to-outside-nat/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 13:25:56 +0000</pubDate>
		<dc:creator>jpvh</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[NAT]]></category>

		<guid isPermaLink="false">http://jpvh.wordpress.com/?p=46</guid>
		<description><![CDATA[Network Address Translation, the savior of IPv4, can be as simple or as complex to configure on an IOS device as you desire.  I&#8217;m going to show you how I configure a simple inside-to-outside NAT on IOS.  There are a other ways to skin this cat, but this is how I do it. Start by creating [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=46&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Network Address Translation, the savior of IPv4, can be as simple or as complex to configure on an IOS device as you desire.  I&#8217;m going to show you how I configure a simple inside-to-outside NAT on IOS.  There are a other ways to skin this cat, but this is how I do it.</p>
<p>Start by creating the ACL that will allow and disallow internal traffic to be NATted.</p>
<ul>
<li>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"><strong>ip access-list extended NAT_TRANSLATION_OUT</strong></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"><strong><span> </span>remark B02 Loopback to B011 Loopback</strong></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"><strong><span> </span>deny<span>   </span>ip host 10.2.249.1 host 10.1.249.1</strong></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"><strong><span> </span>remark B02 DATA Only</strong></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"><strong><span> </span>permit ip 10.2.3.0 0.0.0.255 any</strong></span></span></p>
</li>
</ul>
<p>In the ACL above, we have specifically disallowed traffic between two loopback addresses (10.2.249.1 locally and 10.1.249.1 on the remote end) from participating in NAT.  In situations where you are running a VPN tunnel on the same interface as your external NAT interface (see below), you&#8217;ll want to exclude tunneled traffic from NAT.  Further, we have defined only traffic from a specific local subnet (10.2.3.0/24) as being able to be NATted.</p>
<p>After we&#8217;ve determined what internal traffic to NAT and what not to, we need to create a route map statement to match the traffic of the ACL.</p>
<ul>
<li>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"><strong>route-map NAT_TRANS_RMAP permit 1</strong></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"><strong><span> </span>match ip address NAT_TRANSLATION_OUT</strong></span></span></p>
</li>
</ul>
<p>Above we have created a route map with a &#8220;permit&#8221; verb and told it to match any addressing in the ACL we initially defined.  Next, we create the NAT statement.</p>
<ul>
<li><span style="font-size:11pt;line-height:115%;font-family:&quot;"><strong>ip nat inside source route-map NAT_TRANS_RMAP interface FastEthernet4 overload</strong></span></li>
</ul>
<p>Here we have created an &#8220;inside&#8221; NAT using our route-map as a source and using interface &#8220;FastEthernet4&#8243; as an overload.  &#8220;Overload&#8221; simply means we are going to create multiple outbound NATs all using a single external source address equal to &#8220;FastEthernet4&#8243;.  More simply, we&#8217;re going to use port-address-translation and hide all traffic behind one single &#8220;external&#8221; address.</p>
<p>Now, all that is well and good, but we still haven&#8217;t really started trying to NAT.  We have to apply the statements to the proper  interfaces.</p>
<ul>
<li>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"><strong>interface FastEthernet0/0.3</strong></span></span></p>
</li>
<li>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"></span><span style="font-family:&quot;"><span style="font-size:small;"><strong>description PC VLAN</strong></span></span></p>
</li>
<li>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"></span><span style="font-family:&quot;"><span style="font-size:small;"><strong>encapsulation dot1Q 3</strong></span></span></p>
</li>
<li>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"></span><span style="font-family:&quot;"><span style="font-size:small;"><strong>ip address 10.2.3.1 255.255.255.0</strong></span></span></p>
</li>
<li>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"></span><span style="font-family:&quot;"><span style="font-size:small;"><strong>&lt;lines deleted&gt;</strong></span></span></p>
</li>
<li>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"></span><span style="font-family:&quot;"><span style="font-size:small;"><strong>ip nat inside</strong></span></span></p>
</li>
<li>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-size:11pt;line-height:115%;font-family:&quot;"><strong>&lt;lines deleted&gt;</strong></span></p>
</li>
</ul>
<p>And, for the external side, we need</p>
<ul>
<li><span style="font-size:11pt;line-height:115%;font-family:&quot;">
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><strong>interface FastEthernet0/4</strong></span></p>
<p></span></li>
<li><span style="font-size:11pt;line-height:115%;font-family:&quot;">
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><strong><span> </span>description TO ISP</strong></span></p>
<p></span></li>
<li><span style="font-size:11pt;line-height:115%;font-family:&quot;">
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><strong><span> </span>ip address w.x.y.z 255.255.255.248</strong></span></p>
<p></span></li>
<li><span style="font-size:11pt;line-height:115%;font-family:&quot;">
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><strong><span> </span>&lt;lines deleted&gt;</strong></span></p>
<p></span></li>
<li><span style="font-size:11pt;line-height:115%;font-family:&quot;">
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><strong><span> </span>ip nat outside</strong></span></p>
<p></span></li>
<li><span style="font-size:11pt;line-height:115%;font-family:&quot;">
<p class="MsoNoSpacing" style="margin:0;"><span style="font-family:&quot;"><strong><span> </span>&lt;lines deleted&gt;</strong></span></p>
<p></span></li>
</ul>
<p class="MsoNoSpacing" style="margin:0;">That&#8217;s it.  Simple inside-to-outside NAT in IOS.  When you need to see if it&#8217;s working or not, create a connection from the local subnet that you have allowed, and try to connect to something that should be NATted.  If you&#8217;re NATting to an Internet connection, a browser session should do.  When you need to see what&#8217;s going on on the router &#8220;sh ip nat transl&#8221; is your best bet.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jpvh.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jpvh.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jpvh.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jpvh.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jpvh.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jpvh.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jpvh.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jpvh.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jpvh.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jpvh.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jpvh.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jpvh.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jpvh.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jpvh.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=46&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jpvh.wordpress.com/2009/04/09/ios-simple-inside-to-outside-nat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dae7d7b431451e4166f31f6e8a038412?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpvh</media:title>
		</media:content>
	</item>
		<item>
		<title>Rack Journey &#8211; 2</title>
		<link>http://jpvh.wordpress.com/2009/04/08/rack-journey-2/</link>
		<comments>http://jpvh.wordpress.com/2009/04/08/rack-journey-2/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 20:27:55 +0000</pubDate>
		<dc:creator>jpvh</dc:creator>
				<category><![CDATA[Rack]]></category>

		<guid isPermaLink="false">http://jpvh.wordpress.com/?p=40</guid>
		<description><![CDATA[More parts came in for the rack today.  I received mounts for the 1841 routers and a bunch of 2&#8242; Ethernet cables.  At this point, I&#8217;m waiting for a rack-mounted PDU to come in and then I&#8217;ll need a few power cords and I&#8217;ll be able to bring this thing to life.  As promised, here&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=40&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>More parts came in for the rack today.  I received mounts for the 1841 routers and a bunch of 2&#8242; Ethernet cables.  At this point, I&#8217;m waiting for a rack-mounted PDU to come in and then I&#8217;ll need a few power cords and I&#8217;ll be able to bring this thing to life.  As promised, here&#8217;s an updated picture.</p>
<div id="attachment_42" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-42" title="rack-2" src="http://jpvh.files.wordpress.com/2009/04/rack-2.jpg?w=450&#038;h=337" alt="Equipment loaded into rack" width="450" height="337" /><p class="wp-caption-text">Equipment loaded into rack</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jpvh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jpvh.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jpvh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jpvh.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jpvh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jpvh.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jpvh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jpvh.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jpvh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jpvh.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jpvh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jpvh.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jpvh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jpvh.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jpvh.wordpress.com&amp;blog=7244087&amp;post=40&amp;subd=jpvh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jpvh.wordpress.com/2009/04/08/rack-journey-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dae7d7b431451e4166f31f6e8a038412?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpvh</media:title>
		</media:content>

		<media:content url="http://jpvh.files.wordpress.com/2009/04/rack-2.jpg" medium="image">
			<media:title type="html">rack-2</media:title>
		</media:content>
	</item>
	</channel>
</rss>
