<?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>Root Bridge</title>
	<atom:link href="http://rootbridge.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rootbridge.wordpress.com</link>
	<description>Journey Towards CCNP Certification</description>
	<lastBuildDate>Thu, 08 Dec 2011 11:05:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rootbridge.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Root Bridge</title>
		<link>http://rootbridge.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://rootbridge.wordpress.com/osd.xml" title="Root Bridge" />
	<atom:link rel='hub' href='http://rootbridge.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Goal 1 Complete &#8211; Renew CCNA Certification</title>
		<link>http://rootbridge.wordpress.com/2011/12/08/goal-1-complete-renew-ccna-certification/</link>
		<comments>http://rootbridge.wordpress.com/2011/12/08/goal-1-complete-renew-ccna-certification/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 11:00:55 +0000</pubDate>
		<dc:creator>rootbridge</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://rootbridge.wordpress.com/?p=565</guid>
		<description><![CDATA[So I have completed one of my goals this week. That was to renew my CCNA certification in order to allow me to progress to CCNP certification. I am not wasting anytime either as I am already commencing CCNP Switch study and hopefully take the certification test late January 2012. Certification Goals Reviewed CCNA Certified [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=565&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I have completed one of my goals this week.  That was to renew my CCNA certification in order to allow me to progress to CCNP certification.  I am not wasting anytime either as I am already commencing CCNP Switch study and hopefully take the certification test late January 2012.</p>
<p><strong>Certification Goals Reviewed</strong><br />
<del datetime="2011-12-08T11:01:30+00:00">CCNA Certified &#8211; 1st October 2011</del> Completed Dec 2012, (better late than never)<br />
CCNP Switch &#8211; Rescheduled to from Dec 2011 to Feb 2012<br />
CCNP Route and Tshoot &#8211; Mid 2012</p>
<p>Adios amigos&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rootbridge.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rootbridge.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rootbridge.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rootbridge.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rootbridge.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rootbridge.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rootbridge.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rootbridge.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rootbridge.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rootbridge.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rootbridge.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rootbridge.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rootbridge.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rootbridge.wordpress.com/565/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=565&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rootbridge.wordpress.com/2011/12/08/goal-1-complete-renew-ccna-certification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c024dd04d5a40f4d4ac758a963099eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rootbridge</media:title>
		</media:content>
	</item>
		<item>
		<title>Command Snippet &#8211; Netflow Configuration</title>
		<link>http://rootbridge.wordpress.com/2011/10/06/command-snippet-netflow-configuration/</link>
		<comments>http://rootbridge.wordpress.com/2011/10/06/command-snippet-netflow-configuration/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 11:24:33 +0000</pubDate>
		<dc:creator>rootbridge</dc:creator>
				<category><![CDATA[Command Snippet]]></category>

		<guid isPermaLink="false">http://rootbridge.wordpress.com/?p=551</guid>
		<description><![CDATA[After getting nfdump and nfsen up and running in our environment, I thought it would be useful to list the commands used to collect and export the netflow data. For the full netflow configuration guide please visit &#8211; Catalyst 6500/6000 Switches NetFlow Configuration and Troubleshooting Enable Netflow Switch(config)#mls netflow interface Switch(config)#mls flow ip interface-full Switch(config)#mls [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=551&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After getting <a href="http://nfdump.sourceforge.net/">nfdump </a>and <a href="http://nfdump.sourceforge.net/">nfsen </a>up and running in our environment, I thought it would be useful to list the commands used to collect and export the netflow data.  For the full netflow configuration guide please visit &#8211; <a href="http://www.cisco.com/en/US/products/hw/switches/ps708/products_configuration_example09186a0080721701.shtml">Catalyst 6500/6000 Switches NetFlow Configuration and Troubleshooting</a></p>
<p><strong>Enable Netflow</strong><br />
<code>Switch(config)#mls netflow interface<br />
Switch(config)#mls flow ip interface-full<br />
Switch(config)#mls nde sender version 5</code></p>
<p><strong>Start Netflow On Vlan 10</strong><br />
<code>Switch(config)# interface vlan 10</code><br />
<code>Switch(config-if)# ip flow ingress</code><br />
<code>Switch(config-if)# ip flow egress</code></p>
<p><strong>Verify Netflow Entries</strong><br />
<code>Switch#  show mls netflow ip<br />
Switch# show mls netflow ip count</code></p>
<p><strong>Configure NDE (Netflow Data Export)</strong><br />
<code>Switch(config)# ip flow-export source vlan 5</code><br />
<code>Switch(config)# ip flow-export version 5</code><br />
<code>Switch(config)# ip flow-export destination 192.168.1.10 65000</code></p>
<p><strong>Verify NDE</strong></p>
<p><code>Switch# show mls nde<br />
 Netflow Data Export enabled<br />
 Exporting flows to  192.168.1.10 (65000)<br />
 Exporting flows from 10.1.1.1 (54677)<br />
 Version: 5<br />
 Layer2 flow creation is disabled<br />
 Layer2 flow export is disabled<br />
 Include Filter not configured<br />
 Exclude Filter not configured<br />
 Total Netflow Data Export Packets are:<br />
    282455 packets, 0 no packets, 8191195 records<br />
 Total Netflow Data Export Send Errors:<br />
        IPWRITE_NO_FIB = 0<br />
        IPWRITE_ADJ_FAILED = 0<br />
        IPWRITE_PROCESS = 0<br />
        IPWRITE_ENQUEUE_FAILED = 0<br />
        IPWRITE_IPC_FAILED = 0<br />
        IPWRITE_OUTPUT_FAILED = 0<br />
        IPWRITE_MTU_FAILED = 0<br />
        IPWRITE_ENCAPFIX_FAILED = 0<br />
        IPWRITE_CARD_FAILED = 0<br />
 Netflow Aggregation Disabled </code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rootbridge.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rootbridge.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rootbridge.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rootbridge.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rootbridge.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rootbridge.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rootbridge.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rootbridge.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rootbridge.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rootbridge.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rootbridge.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rootbridge.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rootbridge.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rootbridge.wordpress.com/551/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=551&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rootbridge.wordpress.com/2011/10/06/command-snippet-netflow-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c024dd04d5a40f4d4ac758a963099eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rootbridge</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing plugins for Cacti on Ubuntu Server 11.04 (Thold and Weathermap)</title>
		<link>http://rootbridge.wordpress.com/2011/10/03/installing-plugins-for-cacti-on-ubuntu-server-11-04-thold-and-weathermap-draft/</link>
		<comments>http://rootbridge.wordpress.com/2011/10/03/installing-plugins-for-cacti-on-ubuntu-server-11-04-thold-and-weathermap-draft/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 12:44:16 +0000</pubDate>
		<dc:creator>rootbridge</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://rootbridge.wordpress.com/?p=510</guid>
		<description><![CDATA[The following article outlines the procedures taken to install the Plugin Architecture for Cacti to allow the Threshold and Weathermap plugins. Server is Ubuntu Server 11.04. The official documentation can be found at http://docs.cacti.net/plugins There is also the Cacti Forum where you can get support &#8211; http://forums.cacti.net/ The first step is to stop apache, mysql [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=510&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following article outlines the procedures taken to install the Plugin Architecture for <a href="http://www.cacti.net/">Cacti </a>to allow the <a href="http://docs.cacti.net/plugin:thold">Threshold </a>and <a href="http://www.network-weathermap.com/">Weathermap </a>plugins.<br />
Server is Ubuntu Server 11.04.<br />
The official documentation can be found at <a href="http://docs.cacti.net/plugins">http://docs.cacti.net/plugins</a><br />
There is also the Cacti Forum where you can get support &#8211; <a href="http://forums.cacti.net/">http://forums.cacti.net/</a></p>
<p>The first step is to stop apache, mysql and backup our current cacti environment.<br />
<code>my_account@CactiServer:~$ sudo service apache2 stop<br />
my_account@CactiServer:~$ sudo service mysql stop<br />
my_account@CactiServer:~$sudo cp -r /usr/share/cacti/site/ /home/my_account/cacti_bk</code></p>
<p>Next we download the plugin architecture using wget and extract the files.<br />
<code>my_account@CactiServer:~/downloadds$ wget ftp://10.10.10.10/cacti-plugin-0.8.7g-PA-v2.8.tar.gz<br />
my_account@CactiServer:~/downloadds$ tar -zxvf cacti-plugin-0.8.7g-PA-v2.8.tar.gz</code></p>
<p>Now we need to install the cacti files using the patch method.<br />
Jump to the plugin arch directory and copy the cacti-plugin-arch.diff file to /usr/share/cacti/site<br />
<code>my_account@CactiServer:~/downloadds$cd cacti-plugin-arch/<br />
my_account@CactiServer:~/downloadds/cacti-plugin-arch$ sudo cp cacti-plugin-0.8.7g-PA-v2.8.diff /usr/share/cacti/site/</code></p>
<p>Run the patch files as a dry run to report back any errors.<br />
<code>my_account@CactiServer:~/downloadds/cacti-plugin-arch$ cd /usr/share/cacti/site/<br />
my_account@CactiServer:/usr/share/cacti/site$ patch -p1 -N --dry-run &lt; cacti-plugin-0.8.7g-PA-v2.8.diff</code></p>
<p>According to the Cacti Documentation<br />
Your config.php file will almost always fail to be patched if you have either already configured your database or you are using an RPM/DEB install.<br />
We shall continue proceeding with the patch even though we received Hunk #6 FAILED at 1323.<br />
<code>my_account@CactiServer:/usr/share/cacti/site$ sudo patch -p1 -N &lt; cacti-plugin-0.8.7g-PA-v2.8.diff</code></p>
<p>Next we import the pa.sql file to the cacti database.<br />
<code>my_account@CactiServer:~$ cd downloadds/cacti-plugin-arch/<br />
my_account@CactiServer:~/downloadds/cacti-plugin-arch$ /usr/bin/mysql --user=root --password= cacti &lt; pa.sql<br />
..<br />
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)</code></p>
<p>We received the above error message re: sqld sock as we need to start mysql before importing the pa.sql file<br />
<code>my_account@CactiServer:~/downloadds/cacti-plugin-arch$ sudo service mysql start<br />
mysql start/running, process 13203<br />
..<br />
my_account@CactiServer:~/downloadds/cacti-plugin-arch$ /usr/bin/mysql --user=root --password= cacti &lt; pa.sql</code></p>
<p>We now need to make the finishing touches to our configuration<br />
Change /usr/share/cacti/site/include/global.php as follows:<br />
<code>/* Line 37 $database_username = "cactiuser"; */<br />
$database_username = "cacti";<br />
/* Line 38 $database_password = "cactiuser"; */<br />
$database_password = "enter your pass given during installation(not cactiuser)";<br />
/* Line 105 $url_path = "";<br />
$url_path = "/cacti/";<br />
</code></p>
<p>Change /usr/share/cacti/site/include/config.php<br />
Ensure the following for the url path<br />
<code>$url_path = "/cacti/";</code></p>
<p>Change /etc/cacti/debian.php to include the following line<br />
<code>$plugins = array();</code></p>
<p>Start apache and restart mysql<br />
<code>my_account@CactiServer:~/downloadds$sudo service apache2 start<br />
my_account@CactiServer:~/downloadds$sudo service mysql restart</code></p>
<p>We can now proceed with installing the plugins (thold and weathermap)<br />
We must first install the <a href="http://docs.cacti.net/plugins">Settings Plugin</a> as this is a prerequisite to the thold plugin.</p>
<p>Download and uncompress settings plugin<br />
<code>my_account@CactiServer:~/downloadds$ wget ftp://10.10.10.10/settings-v0.7-1.tgz<br />
my_account@CactiServer:~/downloadds$ tar -zxvf settings-v0.7-1.tgz</code></p>
<p>Copy the settings plugin into your Cacti install&#8217;s Plugin directory<br />
<code>my_account@CactiServer:~/downloadds$ sudo cp -r settings /usr/share/cacti/site/plugins/</code></p>
<p>To Activate The Settings Plugin -<br />
Go to Console/Utilities/User Management within your Cacti web interface &#8211; http://CactiServerIP/cacti/ and enable the &#8216;Plugin Management&#8217; realm for your admin user, then go to Console/Configuration/Plugin Management and click the &#8216;Enable Plugin&#8217; icon</p>
<p>Download and install the thold plugin<br />
<code>my_account@CactiServer:~/downloadds$ wget ftp://10.10.10.10/thold-latest.tgz<br />
my_account@CactiServer:~/downloadds$ tar -zxvf thold-latest.tgz<br />
my_account@CactiServer:~/downloadds$ sudo cp -r thold-0.41/ /usr/share/cacti/site/plugins</code></p>
<p>For some reason cacti doesn’t like the folder name thold-0.41 so we must rename it before we can enable the plugin<br />
<code>my_account@CactiServer:~/downloadds$ cd /usr/share/cacti/site/plugins<br />
my_account@CactiServer:/usr/share/cacti/site/plugins$ sudo mv thold-0.41/ thold</code></p>
<p>Go to Console/Configuration/Plugin Management within your Cacti web interface &#8211; http://CactiServerIP/cacti/ and enable the thold plugin</p>
<p>Install the weathermap plugin<br />
I had no utility to unzip zip files on my Ubuntu server so I used –r flag on wget to download a directory<br />
<code>my_account@CactiServer:~/downloadds/10.10.10.10$ wget -r ftp://10.10.10.10/weathermap<br />
my_account@CactiServer:~/downloadds/10.10.10.10$ sudo cp -r weathermap/ /usr/share/cacti/site/plugins/</code></p>
<p>Go to Console/Configuration/Plugin Management within your Cacti web interface &#8211; http://CactiServerIP/cacti/ and enable the weathermap plugin</p>
<p>The final thing I noticed was that Cacti was reporting the incorrect time in Syslog.<br />
To fix the issue we need to include <strong>date.timezone = &#8220;&lt;your_location&gt;&#8221;</strong> in the following php.ini files<br />
<code>/etc/php5/apache2/php.ini<br />
/etc/php5/cli/php.ini</code></p>
<p><strong>Update &#8211; Cacti Error Messages</strong><br />
I was receiving a couple of error messages in the Cacti logs after installing the plugins.</p>
<p>The first was regarding access to the directory /usr/share/cacti/site/plugins/weathermap/output.  To resolve the problem I needed to change the group owner of the directory from root to www-data, then grant write access to the www-data group.<br />
<code>myAccount@CactiServer:/usr/share/cacti/site/plugins/weathermap$ sudo chgrp www-data output/<br />
myAccount@CactiServer:/usr/share/cacti/site/plugins/weathermap$ sudo chmod 775 output/<br />
myAccount@CactiServer:/usr/share/cacti/site/plugins/weathermap$ls -al<br />
..<br />
drwxrwxr-x 2 root www-data   4096 2011-10-03 10:39 output</code></p>
<p>The second was that I needed to install the PHP GD function.  To install php-gd use the following command.<br />
<code>sudo apt-get install php5-gd</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rootbridge.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rootbridge.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rootbridge.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rootbridge.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rootbridge.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rootbridge.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rootbridge.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rootbridge.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rootbridge.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rootbridge.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rootbridge.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rootbridge.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rootbridge.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rootbridge.wordpress.com/510/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=510&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rootbridge.wordpress.com/2011/10/03/installing-plugins-for-cacti-on-ubuntu-server-11-04-thold-and-weathermap-draft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c024dd04d5a40f4d4ac758a963099eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rootbridge</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamips / Dynagen &amp; Virtual PC</title>
		<link>http://rootbridge.wordpress.com/2011/09/07/dynamips-dynagen-virtual-pc/</link>
		<comments>http://rootbridge.wordpress.com/2011/09/07/dynamips-dynagen-virtual-pc/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 10:51:49 +0000</pubDate>
		<dc:creator>rootbridge</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://rootbridge.wordpress.com/?p=44</guid>
		<description><![CDATA[Most people are familiar with Dynagen/Dynamips. For those of you who have never come across Dynagen/Dynamips before and are interested in setting this Cisco emulator up here are a couple of very useful links. Dynagen and Dynamips Tutorial Installing GNS3 on Windows Installing Dynamips and Dynagen on Linux Something that I found particularly helpful when [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=44&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Most people are familiar with <a href="http://dynagen.org/">Dynagen/Dynamips</a>.  For those of you who have never come across Dynagen/Dynamips before and are interested in setting this Cisco emulator up here are a couple of very useful links.</p>
<ul>
<li>
<a href="http://dynagen.org/tutorial.htm">Dynagen and Dynamips Tutorial</a>
</li>
<li>
<a href="http://www.blindhog.net/cisco-gns3-graphical-router-emulation-software/">Installing GNS3 on Windows</a>
</li>
<li><a href="http://www.blindhog.net/cisco-dynamips-and-dynagen-install-on-linux/">Installing Dynamips and Dynagen on Linux</a>
</li>
</ul>
<p>Something that I found particularly helpful when using Dynamips / Dynagen was the ability to create a virtual pc from which you can send <strong>ping</strong> and <strong>traceroute</strong> packets.  Virtual PC Simulator is a program that allows you to accomplish this whilst minimising the memory and CPU cycles required from the host operating system.  For further information on setting up Virtual PC Simulator please refer to the following doco &#8211; <a href="http://wiki.freecode.com.cn/doku.php?id=wiki:vpcs">Virtual PC Simulator</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rootbridge.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rootbridge.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rootbridge.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rootbridge.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rootbridge.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rootbridge.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rootbridge.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rootbridge.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rootbridge.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rootbridge.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rootbridge.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rootbridge.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rootbridge.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rootbridge.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=44&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rootbridge.wordpress.com/2011/09/07/dynamips-dynagen-virtual-pc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c024dd04d5a40f4d4ac758a963099eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rootbridge</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting Syslog to display the correct time</title>
		<link>http://rootbridge.wordpress.com/2011/09/05/getting-syslog-to-display-the-correct-time/</link>
		<comments>http://rootbridge.wordpress.com/2011/09/05/getting-syslog-to-display-the-correct-time/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 05:43:54 +0000</pubDate>
		<dc:creator>rootbridge</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://rootbridge.wordpress.com/?p=422</guid>
		<description><![CDATA[Ok so today I came accross this issue where syslogs on a switch were reporting the incorrect time. Switch#show logg ...... Sep 5 05:16:47.835: %SYS-5-CONFIG_I: Configured from console by xxxxx on vty0 (10.0.0.10) The show clock command was issued to verify that the switch is displaying the correct time. Yep, everything ok here. Switch#show clock [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=422&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ok so today I came accross this issue where syslogs on a switch were reporting the incorrect time.<br />
<code>Switch#show logg<br />
......<br />
Sep  5 05:16:47.835: %SYS-5-CONFIG_I: Configured from console by xxxxx on vty0 (10.0.0.10)</code></p>
<p>The show clock command was issued  to verify that the switch is displaying the correct time.  Yep, everything ok here.<br />
<code>Switch#show clock<br />
14:46:56.898 ACST Mon Sep 5 2011</code></p>
<p>Next step is to confirm that NTP is working and we are associated with our NTP servers.  Again everything seems good.<br />
<code>Switch#show run | in ntp|clock<br />
.....<br />
ntp server 192.168.10.10<br />
ntp server 192.168.20.10<br />
clock timezone ACST 9 30</p>
<p>Switch#show ntp associations<br />
      address         ref clock     st  when  poll reach  delay  offset    disp<br />
+~192.168.10.10    .GPS.             1    29   128  377     1.0    0.13     0.7<br />
*~192.168.20.10    .GPS.             1    57   128  377     0.9    0.17     0.3<br />
 * master (synced), # master (unsynced), + selected, - candidate, ~ configured</p>
<p>Switch#show ntp status<br />
Clock is synchronized, stratum 2, reference is 192.168.20.10<br />
nominal freq is 119.2092 Hz, actual freq is 119.2086 Hz, precision is 2**18<br />
reference time is D20EDA3E.6E1CD364 (14:48:54.430 ACST Mon Sep 5 2011)<br />
clock offset is 0.1531 msec, root delay is 0.92 msec<br />
root dispersion is 1.60 msec, peer dispersion is 1.05 msec</code></p>
<p>Ok time to check the running config again.  Aha, there is the issue.  We have not specified the timezone component for debugging and logging output.<br />
<code>Switch# show run | in timezone<br />
service timestamps debug datetime msec<br />
service timestamps log datetime msec</code></p>
<p>So in our running config we need to specify our debug and log output to use our local timezone.<br />
Time to update the config.<br />
<code>Switch(config)#service timestamps debug datetime msec localtime show-timezone<br />
Switch(config)#service timestamps log datetime msec localtime show-timezone<br />
Switch(config)#exit</code></p>
<p>Now when we review our logs they will display the correct time.<br />
<code>Switch#show logg<br />
......<br />
Sep  5 14:47:22.590 ACST: %SYS-5-CONFIG_I: Configured from console by xxxx on vty0 (10.0.0.10)</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rootbridge.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rootbridge.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rootbridge.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rootbridge.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rootbridge.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rootbridge.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rootbridge.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rootbridge.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rootbridge.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rootbridge.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rootbridge.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rootbridge.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rootbridge.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rootbridge.wordpress.com/422/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=422&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rootbridge.wordpress.com/2011/09/05/getting-syslog-to-display-the-correct-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c024dd04d5a40f4d4ac758a963099eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rootbridge</media:title>
		</media:content>
	</item>
		<item>
		<title>Links to Cisco Resources</title>
		<link>http://rootbridge.wordpress.com/2011/09/04/links-to-cisco-resources/</link>
		<comments>http://rootbridge.wordpress.com/2011/09/04/links-to-cisco-resources/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 14:22:59 +0000</pubDate>
		<dc:creator>rootbridge</dc:creator>
				<category><![CDATA[Cisco Resources]]></category>

		<guid isPermaLink="false">http://rootbridge.wordpress.com/?p=415</guid>
		<description><![CDATA[Collection of links to Cisco Resources Break Cisco Passwords http://www.ifm.net.nz/cookbooks/passwordcracker.html Etherchannel Understanding EtherChannel Load Balancing and Redundancy on Catalyst Switches<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=415&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Collection of links to Cisco Resources</p>
<p><strong>Break Cisco Passwords</strong><br />
<a href="http://www.ifm.net.nz/cookbooks/passwordcracker.html">http://www.ifm.net.nz/cookbooks/passwordcracker.html</a></p>
<p><strong>Etherchannel</strong><br />
<a href="http://www.cisco.com/en/US/tech/tk389/tk213/technologies_tech_note09186a0080094714.shtml" title="">Understanding EtherChannel Load Balancing and Redundancy on Catalyst Switches</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rootbridge.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rootbridge.wordpress.com/415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rootbridge.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rootbridge.wordpress.com/415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rootbridge.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rootbridge.wordpress.com/415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rootbridge.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rootbridge.wordpress.com/415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rootbridge.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rootbridge.wordpress.com/415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rootbridge.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rootbridge.wordpress.com/415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rootbridge.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rootbridge.wordpress.com/415/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=415&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rootbridge.wordpress.com/2011/09/04/links-to-cisco-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c024dd04d5a40f4d4ac758a963099eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rootbridge</media:title>
		</media:content>
	</item>
		<item>
		<title>OSI Model &#8211; The Transport Layer</title>
		<link>http://rootbridge.wordpress.com/2011/09/04/osi-model-the-transport-layer/</link>
		<comments>http://rootbridge.wordpress.com/2011/09/04/osi-model-the-transport-layer/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 11:02:24 +0000</pubDate>
		<dc:creator>rootbridge</dc:creator>
				<category><![CDATA[Theory]]></category>

		<guid isPermaLink="false">http://rootbridge.wordpress.com/?p=390</guid>
		<description><![CDATA[The transport layer can be found in both the OSI Model and the TCP/IP Model. The two most common protocols in the transport layer are User Datagram Protocol (UDP) and Transmission Control Protocl (TCP). UDP Connectionless Best effort delivery Unreliable &#8211; here is the data UDP is a very simple protocol that is not reliable, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=390&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The transport layer can be found in both the OSI Model and the TCP/IP Model.  The two most common protocols in the transport layer are User Datagram Protocol (UDP) and Transmission Control Protocl (TCP).</p>
<p><strong>UDP</strong></p>
<ul>
<li>Connectionless</li>
<li>Best effort delivery</li>
<li>Unreliable &#8211; here is the data</li>
</ul>
<p>UDP is a very simple protocol that is not reliable, nor does it provide data intgretiy or guarantee transmission of data. UDP assumes that error checking and correction will be provided by the upper layers in the OSI model (Application Layer), thereby avoiding processing overhead at the network layer.  UDP is especially useful in time sensitive applications such as VOIP, where dropping packets is preferable to waiting for delayed packets.</p>
<p><strong>TCP</strong></p>
<ul>
<li>Connection orientated &#8211; establishes a session using the 3-way handshake</li>
<li>Reliable &#8211; uses acknowlegements and will continue to retransmit until an ACK is received</li>
<li>Maintains connections &#8211; utilises sequence numbers</li>
</ul>
<p><strong>Simple TCP Transmission between a client and a server &#8211; 3-way handshake</strong><br />
The client inititiates the session by sending a SYN packet to synchronise the conversation.<br />
The server receives the SYN packet and responds with a SYN-ACK.  This response states that the server synchornises with the client and they acknowledge the packet.<br />
The client now sends an ACK stating they received the SYN-ACK and the connection is now established.</p>
<p><img src="http://rootbridge.files.wordpress.com/2011/09/3way.png" alt="3 way handshake" /></p>
<p><strong>After the 3-way handshake</strong><br />
After the session is established via the 3-way handshake, the client and server can begin to send data.  Sequence numbers are used to identify each segment of data as it is transferred between the two devices and are used to identify the order of segments.  This allows the data to be reconstructed in order, regardless of any fragmentation, disordering or packet loss that may occur during transmission.</p>
<p>In the following example the client sends the first segment with sequence number 7.  Once the server receives the segment, it sends its data back to the client with its own sequence number (in this case 14) and it also responds with acknowledgement 8 which is the next expected sequence number from the client.  This process continues throughout the entire session.</p>
<p><img src="http://rootbridge.files.wordpress.com/2011/09/seq_numb1.png" alt="" /></p>
<p>In the event that one of the sessions is lost between the client and the server and either device does not receive the expected Sequence Number within a pre-determined period of time, the sender will retransmit the data.</p>
<p><img src="http://rootbridge.files.wordpress.com/2011/09/seq_numb_resend1.png" alt="" /></p>
<p><strong>TCP Windows</strong><br />
TCP Windowing allows the amount of data sent between the two devices to increase based on how reliable the link is as the window size continually increases until a problem arises.  TCP also utilises &#8220;Sliding Windows&#8221; which allows the session window size to be continually adjusted.</p>
<p><img src="http://rootbridge.files.wordpress.com/2011/09/tcp_windows1.png" alt="" /></p>
<p><strong>Port Numbers</strong><br />
When a TCP or UDP session is generated port numbers are used to distinguish between different applications.  Port numbers can range from 0 to 65535 and the Internet Assigned Numbers Authority (IANA) are responsible for maintaining the list of common port numbers 0 &#8211; 1023.</p>
<p><strong>Common TCP Ports</strong><br />
21 &#8211; FTP<br />
22 &#8211; SSH<br />
23 &#8211; TELNET<br />
25 &#8211; SMTP<br />
53 &#8211; DNS<br />
80 &#8211; HTTP<br />
110 &#8211; POP3<br />
443 &#8211; HTTPS</p>
<p><strong>Common UDP Ports</strong><br />
53 &#8211; DNS<br />
69 &#8211; TFTP</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rootbridge.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rootbridge.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rootbridge.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rootbridge.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rootbridge.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rootbridge.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rootbridge.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rootbridge.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rootbridge.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rootbridge.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rootbridge.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rootbridge.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rootbridge.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rootbridge.wordpress.com/390/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=390&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rootbridge.wordpress.com/2011/09/04/osi-model-the-transport-layer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c024dd04d5a40f4d4ac758a963099eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rootbridge</media:title>
		</media:content>

		<media:content url="http://rootbridge.files.wordpress.com/2011/09/3way.png" medium="image">
			<media:title type="html">3 way handshake</media:title>
		</media:content>

		<media:content url="http://rootbridge.files.wordpress.com/2011/09/seq_numb1.png" medium="image" />

		<media:content url="http://rootbridge.files.wordpress.com/2011/09/seq_numb_resend1.png" medium="image" />

		<media:content url="http://rootbridge.files.wordpress.com/2011/09/tcp_windows1.png" medium="image" />
	</item>
		<item>
		<title>OSI and TCP/IP Model</title>
		<link>http://rootbridge.wordpress.com/2011/08/31/osi-and-tcpip-model/</link>
		<comments>http://rootbridge.wordpress.com/2011/08/31/osi-and-tcpip-model/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 12:49:11 +0000</pubDate>
		<dc:creator>rootbridge</dc:creator>
				<category><![CDATA[Theory]]></category>

		<guid isPermaLink="false">http://rootbridge.wordpress.com/?p=375</guid>
		<description><![CDATA[The following chart displays the similarities and differences between the OSI and TCP/IP models. IP addressess can be broken down into classes. The following table defines the classes and subnet masks associated with each class. Within Class A, Class B and Class C, IP ranges there are specific addresses that are reserved for private use.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=375&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following chart displays the similarities and differences between the OSI and TCP/IP models.</p>
<p><img src="http://rootbridge.files.wordpress.com/2011/08/osi-model.jpg" alt="OSI and TCP/IP Model" /></p>
<p>IP addressess can be broken down into classes.  The following table defines the classes and subnet masks associated with each class.</p>
<p><img src="http://rootbridge.files.wordpress.com/2011/08/classes.jpg" alt="" /></p>
<p>Within Class A, Class B and Class C, IP ranges there are specific addresses that are reserved for private use.</p>
<p><img src="http://rootbridge.files.wordpress.com/2011/08/private-range2.png" alt="" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rootbridge.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rootbridge.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rootbridge.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rootbridge.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rootbridge.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rootbridge.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rootbridge.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rootbridge.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rootbridge.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rootbridge.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rootbridge.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rootbridge.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rootbridge.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rootbridge.wordpress.com/375/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=375&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rootbridge.wordpress.com/2011/08/31/osi-and-tcpip-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c024dd04d5a40f4d4ac758a963099eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rootbridge</media:title>
		</media:content>

		<media:content url="http://rootbridge.files.wordpress.com/2011/08/osi-model.jpg" medium="image">
			<media:title type="html">OSI and TCP/IP Model</media:title>
		</media:content>

		<media:content url="http://rootbridge.files.wordpress.com/2011/08/classes.jpg" medium="image" />

		<media:content url="http://rootbridge.files.wordpress.com/2011/08/private-range2.png" medium="image" />
	</item>
		<item>
		<title>Secure SSH via port knocking</title>
		<link>http://rootbridge.wordpress.com/2011/08/31/secure-ssh-via-port-knocking/</link>
		<comments>http://rootbridge.wordpress.com/2011/08/31/secure-ssh-via-port-knocking/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 10:51:00 +0000</pubDate>
		<dc:creator>rootbridge</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://rootbridge.wordpress.com/?p=345</guid>
		<description><![CDATA[After enabling SSH access to the Internet on my Ubuntu server, I started to see failed authentication attempts. After doing a little research I found the following solution to my problem Port Knocking. I really like this solution because it is Simple Allows me to open and close the port as required Allows me to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=345&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After enabling SSH access to the Internet on my Ubuntu server, I started to see failed authentication attempts.  After doing a little research I found the following solution to my problem <a href="http://dotancohen.com/howto/portknocking.html">Port Knocking</a>.</p>
<p>I really like this solution because it is </p>
<ul>
<li>Simple</li>
<li>Allows me to open and close the port as required</li>
<li>Allows me to connect from anywhere</li>
<li>Should cause most linear port scans (ascending or descending) to leave port 22 closed upon completion</li>
</ul>
<p>Step 1 &#8211; Setup iptables to allow established connections<br />
<code>sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT</code></p>
<p>Step 2 &#8211; Allow SSH access once port is knocked on<br />
<code>sudo iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -m recent --rcheck --name SSH -j ACCEPT</code></p>
<p>Step 3 &#8211; Create the entry port TCP 1600.  Notice all 3 ports drop packets and do not provide any sort of acknowlegment.<br />
<code>sudo iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 1599 -m recent --name SSH --remove -j DROP<br />
sudo iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 1600 -m recent --name SSH --set -j DROP<br />
sudo iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 1601 -m recent --name SSH --remove -j DROP</code></p>
<p>Step 4 &#8211; Deny all other traffic<br />
<code>sudo iptables -A INPUT -j DROP</code></p>
<p>Step 5 &#8211; Save iptables rules to a file (or you will lose your rules on reboot)<br />
<code>sudo sh -c "iptables-save &gt; /etc/iptables.rules"</code></p>
<p>Step 6 &#8211; Modify the /etc/network/interfaces configuration file to apply the rules automatically on restart by adding in the highlighted line.<br />
<code>auto eth0<br />
iface eth0 inet static<br />
address 192.168.1.253<br />
netmask 255.255.255.0<br />
network 192.168.1.0<br />
broadcast 192.168.1.255<br />
gateway 192.168.1.254<br />
<strong>pre-up iptables-restore &lt; /etc/iptables.rules</strong></code></p>
<p>The test &#8211; try to connect to SSH server<br />
<code>user@remoteClient:~$ ssh sshuser@192.168.1.253<br />
.... Request times out</code></p>
<p>Enable SSH by knocking on port 1600.  Notice there is no acknowledgement<br />
<code>user@remoteClient:~$ telnet 192.168.1.253 1600<br />
Trying 192.168.1.253...</code></p>
<p>Verify SSH connectivity<br />
<code>user@remoteClient:~$ ssh sshaccount@192.168.1.253<br />
sshaccount@192.168.1.253's password:<br />
sshaccount@192.168.1.253:~$</code></p>
<p>Now once we have finished with SSH sessions, we can close the SSH port with the following<br />
<code>user@remoteClient:~$ telnet 192.168.1.253 1601</code></p>
<p>Verify SSH port is closed<br />
<code>user@remoteClient:~$ ssh sshaccount@192.168.1.253<br />
.... Request times out</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rootbridge.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rootbridge.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rootbridge.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rootbridge.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rootbridge.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rootbridge.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rootbridge.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rootbridge.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rootbridge.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rootbridge.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rootbridge.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rootbridge.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rootbridge.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rootbridge.wordpress.com/345/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=345&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rootbridge.wordpress.com/2011/08/31/secure-ssh-via-port-knocking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c024dd04d5a40f4d4ac758a963099eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rootbridge</media:title>
		</media:content>
	</item>
		<item>
		<title>SNMPv2 enhancements</title>
		<link>http://rootbridge.wordpress.com/2011/08/29/snmpv2-enhancements/</link>
		<comments>http://rootbridge.wordpress.com/2011/08/29/snmpv2-enhancements/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 11:38:08 +0000</pubDate>
		<dc:creator>rootbridge</dc:creator>
				<category><![CDATA[Device Monitoring]]></category>
		<category><![CDATA[SNMP]]></category>

		<guid isPermaLink="false">http://rootbridge.wordpress.com/?p=336</guid>
		<description><![CDATA[Further enhancements to SNMPv2 are the use of username and password authentication. Create read only SNMP group, group password and restrict access to the src add 192.168.1.104 Router(config)#snmp-server community PASSWORD view servergroup RO 16 Router(config)#ip access-list standard 16 Router(config-std-nacl)#permit 192.168.1.104 Router(config-std-nacl)#deny any log We can further restrict what OIDs the server group can walk with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=336&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Further enhancements to SNMPv2 are the use of username and password authentication.</p>
<p>Create read only SNMP group, group password and restrict access to the src add 192.168.1.104<br />
<code>Router(config)#snmp-server community PASSWORD view servergroup RO 16<br />
Router(config)#ip access-list standard 16<br />
Router(config-std-nacl)#permit 192.168.1.104<br />
Router(config-std-nacl)#deny any log<br />
</code></p>
<p>We can further restrict what OIDs the server group can walk with the following commands<br />
<code>Router(config)#snmp-server view servergroup ifInOctets.1 included<br />
Router(config)#snmp-server view servergroup ifOutOctets.1 included<br />
Router(config)#snmp-server view servergroup ifOperStatus.1 included<br />
Router(config)#snmp-server view servergroup ifAlias.1 included</code></p>
<p>Now when the servergroup run an SNMPwalk on the device they get responses to the above OIDs only.<br />
<code>user@ubuntuDesktop:~$ snmpwalk -v 2c -u servergroup -c PASSWORD 192.168.1.252<br />
IF-MIB::ifOperStatus.1 = INTEGER: up(1)<br />
IF-MIB::ifInOctets.1 = Counter32: 12353827<br />
IF-MIB::ifOutOctets.1 = Counter32: 12289619<br />
IF-MIB::ifAlias.1 = STRING: : HTTP Server<br />
IF-MIB::ifAlias.1 = No more variables left in this MIB View (It is past the end of the MIB tree)</code></p>
<p>You can also restrict access using the exclude command.  The following command allows the OID IfOperStatus on all interfaces except ifOperStatus.2 and ifOperStatus.3 (FastEthernet0/1 and Serial1/0)<br />
<code>Router(config)#snmp-server view servergroup ifOperStatus included<br />
Router(config)#snmp-server view servergroup ifOperStatus.2 excluded<br />
Router(config)#snmp-server view servergroup ifOperStatus.3 excluded</code></p>
<p>SNMPwalk results<br />
<code>user@ubuntuDesktop:~$ snmpwalk -v 2c -u servergroup -c PASSWORD 192.168.1.252<br />
IF-MIB::ifOperStatus.1 = INTEGER: up(1)<br />
IF-MIB::ifOperStatus.4 = INTEGER: down(2)<br />
IF-MIB::ifOperStatus.5 = INTEGER: down(2)<br />
IF-MIB::ifOperStatus.6 = INTEGER: down(2)<br />
IF-MIB::ifOperStatus.7 = INTEGER: down(2)<br />
IF-MIB::ifOperStatus.8 = INTEGER: down(2)<br />
IF-MIB::ifOperStatus.9 = INTEGER: down(2)<br />
IF-MIB::ifOperStatus.10 = INTEGER: down(2)<br />
IF-MIB::ifOperStatus.12 = INTEGER: up(1)<br />
IF-MIB::ifInOctets.1 = Counter32: 12403623<br />
IF-MIB::ifOutOctets.1 = Counter32: 12345497<br />
IF-MIB::ifAlias.1 = STRING: : HTTP Server<br />
IF-MIB::ifAlias.1 = No more variables left in this MIB View (It is past the end of the MIB tree)</code></p>
<p>Next time we look at SNMP it will be securing SNMP using version 3.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rootbridge.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rootbridge.wordpress.com/336/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rootbridge.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rootbridge.wordpress.com/336/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rootbridge.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rootbridge.wordpress.com/336/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rootbridge.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rootbridge.wordpress.com/336/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rootbridge.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rootbridge.wordpress.com/336/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rootbridge.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rootbridge.wordpress.com/336/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rootbridge.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rootbridge.wordpress.com/336/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rootbridge.wordpress.com&amp;blog=8100342&amp;post=336&amp;subd=rootbridge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rootbridge.wordpress.com/2011/08/29/snmpv2-enhancements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c024dd04d5a40f4d4ac758a963099eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rootbridge</media:title>
		</media:content>
	</item>
	</channel>
</rss>
