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

<channel>
	<title>Martin Renshaw&#039;s Blog</title>
	<atom:link href="http://www.martinrenshaw.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.martinrenshaw.com</link>
	<description>A Networking Blog, with a Cisco Certification focus</description>
	<lastBuildDate>Wed, 26 Jan 2011 15:21:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Looking for old JAVA version for Cisco SDM &#124; ASDM &#124; CCP etc&#8230;</title>
		<link>http://www.martinrenshaw.com/2011/01/looking-for-old-java-version-for-cisco-sdm-asdm-ccp-etc/</link>
		<comments>http://www.martinrenshaw.com/2011/01/looking-for-old-java-version-for-cisco-sdm-asdm-ccp-etc/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 15:21:29 +0000</pubDate>
		<dc:creator>martinrenshaw</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SDM ASDM CCP JAVA]]></category>

		<guid isPermaLink="false">http://www.martinrenshaw.com/?p=210</guid>
		<description><![CDATA[Here is the Oracle JAVA archive site. http://www.oracle.com/technetwork/java/archive-139210.html]]></description>
			<content:encoded><![CDATA[<p>Here is the Oracle JAVA archive site.</p>
<p>http://www.oracle.com/technetwork/java/archive-139210.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinrenshaw.com/2011/01/looking-for-old-java-version-for-cisco-sdm-asdm-ccp-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Posts coming soon</title>
		<link>http://www.martinrenshaw.com/2011/01/new-posts-coming-soon/</link>
		<comments>http://www.martinrenshaw.com/2011/01/new-posts-coming-soon/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 16:59:10 +0000</pubDate>
		<dc:creator>martinrenshaw</dc:creator>
				<category><![CDATA[CCNA Sec]]></category>
		<category><![CDATA[CCNP]]></category>
		<category><![CDATA[BGP]]></category>
		<category><![CDATA[CCNA Security]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[OSPF]]></category>

		<guid isPermaLink="false">http://www.martinrenshaw.com/?p=200</guid>
		<description><![CDATA[I have been taking a break from Studying for a while and &#8220;plan&#8221; to get back to the books soon, here is what I will be focusing on this year; Finishing of the CCNA Security IPv6 CCNP BGP labs CCNP OSPF labs Also I would like to start doing my labs with IPv6, I will [...]]]></description>
			<content:encoded><![CDATA[<p>I have been taking a break from Studying for a while and &#8220;plan&#8221; to get back to the books soon, here is what I will be focusing on this year;</p>
<p>Finishing of the CCNA Security</p>
<ol>
<li>IPv6</li>
<li>CCNP BGP labs</li>
<li>CCNP OSPF labs</li>
</ol>
<p>Also I would like to start doing my labs with IPv6, I will hopefully be able to accomplish this.</p>
<p>I have also just changed the blog theme, see the bottom of the page for theme name and the author details.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinrenshaw.com/2011/01/new-posts-coming-soon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Decode of a Zone Based Firewall created by SDM</title>
		<link>http://www.martinrenshaw.com/2010/11/decode-of-a-zone-based-firewall-created-by-sdm/</link>
		<comments>http://www.martinrenshaw.com/2010/11/decode-of-a-zone-based-firewall-created-by-sdm/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 10:14:50 +0000</pubDate>
		<dc:creator>martinrenshaw</dc:creator>
				<category><![CDATA[CCNA Sec]]></category>
		<category><![CDATA[ZBF]]></category>
		<category><![CDATA[Zone Based Firewall]]></category>

		<guid isPermaLink="false">http://www.martinrenshaw.com/?p=174</guid>
		<description><![CDATA[Here is my decode of the config applied to Cisco 3745 router using the SDM wizard for a Zone Based Firewall Info on about ZBF can be found at the following links: Overview on the config for ZBF More Indepth look from Cisco (12.4T) Video about ZBF from ipexpert.com We have two security zones defined, [...]]]></description>
			<content:encoded><![CDATA[<h5>Here is my decode of the config applied to Cisco 3745 router using the SDM wizard for a Zone Based Firewall</h5>
<p>Info on about ZBF can be found at the following links:</p>
<p>Overview on the <a href="http://blog.ine.com/2008/10/16/cisco-ios-zone-based-firewall-overview/" target="_blank">config for ZBF</a></p>
<p>More Indepth look from <a href="http://www.cisco.com/en/US/products/ps6441/products_feature_guide09186a008060f6dd.html" target="_blank">Cisco</a> (12.4T)</p>
<p><a href="http://ipexpert.acrobat.com/p48175399/" target="_blank">Video</a> about ZBF from ipexpert.com</p>
<p><a rel="attachment wp-att-190" href="http://www.martinrenshaw.com/2010/11/decode-of-a-zone-based-firewall-created-by-sdm/zbf-decode-picture-2/"><img class="size-thumbnail wp-image-190 alignnone" title="ZBF decode picture" src="http://www.martinrenshaw.com/wp-content/uploads/2010/11/ZBF-decode-picture1-150x150.png" alt="" width="150" height="150" /></a></p>
<p>We have two security zones defined, &#8220;in-zone&#8221; &amp; &#8220;out-zone&#8221;</p>
<pre>code 1
!
zone security in-zone
zone security out-zone
!
!
interface FastEthernet0/1
description $FW_INSIDE$
ip address 192.168.3.1 255.255.255.0
zone-member security in-zone
speed 100
full-duplex
!
interface Serial0/1
description $FW_OUTSIDE$
ip address 10.2.2.1 255.255.255.252
zone-member security out-zone
clock rate 2000000
!</pre>
<p><span id="more-174"></span><br />
We have a Zone Pair called &#8220;sdm-zp-in-out&#8221; which looks at traffic sourced from &#8220;in-zone&#8221; destined to &#8220;out-zone&#8221;. The zone pair has a service policy which is inspecting a policy-map called &#8220;sdm-inspect&#8221;</p>
<pre>!
zone-pair security sdm-zp-in-out source in-zone destination out-zone
 service-policy type inspect sdm-inspect
!</pre>
<p>The Policy Map is shown below, it contains four named class-maps and a default one, you can see the action that will be taken if traffic is matched against the class maps. Further down the page I will paste each of the class-maps.</p>
<pre>!
policy-map type inspect sdm-inspect
 class type inspect sdm-invalid-src
  drop log
 class type inspect sdm-insp-traffic
  inspect
 class type inspect sdm-protocol-http
  inspect
 class type inspect SDM-Voice-permit
  inspect
 class class-default
  pass
!</pre>
<p>The first class-map is called &#8220;sdm-invalid-src&#8221;, this will match traffic in Access-list 100. This is not a permit or deny ACL its a match or no match ACL. So if a packet arrive with a source address of 10.2.2.1 it will match ACL 100 and then the above service policy will drop the packet. This particular class-map is preventing spoofing from some invalid sources as seen from the inside interface fa0/1.</p>
<pre>!
class-map type inspect match-all sdm-invalid-src
 match access-group 100
!
access-list 100 remark SDM_ACL Category=128
access-list 100 permit ip host 255.255.255.255 any
access-list 100 permit ip 127.0.0.0 0.255.255.255 any
access-list 100 permit ip 10.2.2.0 0.0.0.3 any
!</pre>
<p>The second class-map is called &#8220;sdm-insp-traffic&#8221;, this will match traffic from another class-map called &#8220;sdm-cls-insp-traffic&#8221;. The class-map called &#8220;sdm-cls-insp-traffic&#8221;</p>
<pre>!
class-map type inspect match-all sdm-insp-traffic
 match class-map sdm-cls-insp-traffic
!
 class-map type inspect match-any sdm-cls-insp-traffic
 match protocol cuseeme
 match protocol dns
 match protocol ftp
 match protocol h323
 match protocol https
 match protocol icmp
 match protocol imap
 match protocol pop3
 match protocol netshow
 match protocol shell
 match protocol realmedia
 match protocol rtsp
 match protocol smtp extended
 match protocol sql-net
 match protocol streamworks
 match protocol tftp
 match protocol vdolive
 match protocol tcp
 match protocol udp
!</pre>
<p>The third class-map matches http and is called “sdm-potocol-http”</p>
<pre>!
class-map type inspect match-all sdm-protocol-http
 match protocol http
!</pre>
<p>The fourth class-map matches three protocols and is called “SDM-Voice-permit”</p>
<pre>!
class-map type inspect match-any SDM-Voice-permit
 match protocol h323
 match protocol skinny
 match protocol sip
!</pre>
<p>The final class-map is called class-default and it matches any and permits it.</p>
<pre>!
class-map
 Class Map match-any class-default (id 0)
   Match any
!</pre>
<p><strong>The match-all and match-any Keywords</strong></p>
<p>The match-all and match-any keywords need to be specified only if more than one match criterion is configured in the traffic class.</p>
<p>The match-all keyword is used when all of the match criteria in the traffic class must be met in order for a packet to be placed in the specified traffic class.</p>
<p>The match-any keyword is used when only one of the match criterion in the traffic class must be met in order for a packet to be placed in the specified traffic class.</p>
<p>If neither the match-all nor match-any keyword is specified, the traffic class will behave in a manner consistent with match-all keyword.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinrenshaw.com/2010/11/decode-of-a-zone-based-firewall-created-by-sdm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LAB – Port Security</title>
		<link>http://www.martinrenshaw.com/2010/09/lab-%e2%80%93-port-security/</link>
		<comments>http://www.martinrenshaw.com/2010/09/lab-%e2%80%93-port-security/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 14:25:30 +0000</pubDate>
		<dc:creator>martinrenshaw</dc:creator>
				<category><![CDATA[CCNA Sec]]></category>
		<category><![CDATA[Layer2 security]]></category>
		<category><![CDATA[layer2 security]]></category>
		<category><![CDATA[port-security]]></category>

		<guid isPermaLink="false">http://www.martinrenshaw.com/2010/09/lab-%e2%80%93-port-security/</guid>
		<description><![CDATA[I have been playing with &#8220;Port Security&#8221; because I wanted to answer some of these questions. What happens if I run macof without PortSecurity enabled? What happens if I run macof with PortSecurity in its different forms? What will happen if I change my MAC address? Topology, Equipment &#38; Software Using a laptop plugged into [...]]]></description>
			<content:encoded><![CDATA[<p>I have been playing with &#8220;Port Security&#8221; because I wanted to answer some of these questions.</p>
<p style="-qt-block-indent: 1;">
<ol>
<li>What happens if I run macof without PortSecurity enabled?</li>
<li>What happens if I run macof with PortSecurity in its different forms?</li>
<li>What will happen if I change my MAC address?</li>
</ol>
<p><strong>Topology, Equipment &amp; Software </strong> Using a laptop plugged into FastEthernet0/2 on a 2950 switch, on the laptop I will be using a piece if software called &#8220;macof&#8221; to generate masses of source MAC addresses.</p>
<p><img src="http://www.martinrenshaw.com/wp-content/uploads/2010/09/091610_1425_LABPortSecu1.png" alt="" /><strong> </strong></p>
<p><span style="font-size: 8pt;">Fig1 &#8211; Laptop plugged into Cisco 2950 switch, the laptop is also connected to the console port. </span><br />
<span id="more-131"></span><br />
<strong>What happens if I run macof without PortSecurity enabled? </strong></p>
<p>Well as you would expect the switch &#8216;failsopen&#8217; and should therefor act like a hub/repeater and forward all frames out of all interfaces, although I didn&#8217;t see this happening when I tried to user Wireshark and sniff the traffic (I will keep trying until i can prove this works)</p>
<p><strong>What happens if I run macof with PortSecurity in its different forms?</strong></p>
<p>Here are the config options for &#8220;port-security&#8221;</p>
<p>switch(config-if)# switchport mode access</p>
<p><span style="color: #c0c0c0;"><em>!Set the interface mode as access!</em></span></p>
<p>switch(config-if)# switchport port-security</p>
<p><span style="color: #c0c0c0;"><em>!Enable port-security on the interface!</em></span></p>
<p>switch(config-if)# switchport port-security mac-address { &lt;mac_addr&gt; | sticky }</p>
<p><span style="color: #c0c0c0;"><em>!Enable port security on the MAC address as H.H.H or record the first MAC addresses connected to the interface!</em></span></p>
<p>switch(config-if)# switchport port-security maximum &lt;max_addresses&gt;</p>
<p><em><span style="color: #999999;">!Set maximum number of MAC addresses on the port!</span></em></p>
<p>switch(config-if)# switchport port-security violation { protect | restrict | shutdown }</p>
<p><span style="color: #c0c0c0;"><em>!Protect, Restrict or Shutdown the port. </em></span><span style="color: #c3c3c3;"><em>Cisco recommends the shutdown option, shutdown is the default!</em></span><br />
<br /></br><br /></br><br /></br><br />
<strong><span style="text-decoration: underline;">Violation Shutdown</span></strong><br />
<br /></br></p>
<pre>!
interface FastEthernet0/2
switchport access vlan 10
switchport mode access
switchport port-security
switchport port-security maximum 5
switchport port-security mac-address sticky
switchport port-security violation shutdown
end
!</pre>
<p></br><br />
Now to run the macof software to flood the CAM table, this is done from a Linux PC<br />
<br /></br><br />
<img title="macof" src="http://www.martinrenshaw.com/wp-content/uploads/2010/09/macof-e1284753727200-300x145.png" alt="" width="300" height="145" /><br />
<br /></br><br />
As soon as the CAM table passes 5 mac addresses I saw the following message.<br />
<br /></br></p>
<pre>2950_sw_1#
12:54:44: %PM-4-ERR_DISABLE: psecure-violation error detected on Fa0/2, putting Fa0/2 in err-disable state
12:54:44: %PORT_SECURITY-2-PSECURE_VIOLATION: Security violation occurred, caused by MAC address 6cca.e319.99e3 on po.
12:54:45: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
12:54:46: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to down</pre>
<p></br><br />
I noticed that the port fa0/2 went into &#8220;errordisable&#8221; so I wanted to check.<br />
<br /></br></p>
<pre>2950_sw_1#sh int f0/2 status                                                                                          

Port      Name               Status       Vlan       Duplex  Speed Type
Fa0/2                        err-disabled 10           auto   auto 10/100BaseTX
2950_sw_1#</pre>
<p></br><br />
When I then looked at the config for fa0/2 it showed that the first 5 source mac addresses learned when then written into the config, this is what the sticky feature does. It allows the mac addresses to be saved even after a reload.<br />
<br /></br></p>
<pre>!
interface FastEthernet0/2
 switchport access vlan 10
 switchport mode access
 switchport port-security
 switchport port-security maximum 5
 switchport port-security mac-address sticky
 switchport port-security mac-address sticky 0013.72a5.6d34
 switchport port-security mac-address sticky 3ea4.e70a.f669
 switchport port-security mac-address sticky 58ec.bf7f.8377
 switchport port-security mac-address sticky 7cf5.5864.15d2
 switchport port-security mac-address sticky ee6b.f378.a2a1
 spanning-tree portfast
end</pre>
<p></br><br />
To finish an reset port-security config the config back to before it learned and mac addresses I used the following command. Please assume I did these each time before running macof again.<br />
<br /></br></p>
<pre> 2950_sw_1#clear port-security sticky</pre>
<p></br><br /></br><br /></br><br />
<strong><span style="text-decoration: underline;">Violation Protect</span></strong><br />
<br /></br><br />
Violation Protect learns the mac addresses, doesn&#8217;t send a syslog, doesn&#8217;t shut/errordisable the port.<br />
In the config above only the first five source mac addresses will be allowed pass frames.<br />
<br /></br></p>
<pre>!
interface FastEthernet0/2
 switchport access vlan 10
 switchport mode access
 switchport port-security
 switchport port-security maximum 5
 switchport port-security violation protect
 switchport port-security mac-address sticky
 spanning-tree portfast
end
!</pre>
<p></br><br />
Now to run the macof software to flood the CAM table.<br />
<img title="macof" src="http://www.martinrenshaw.com/wp-content/uploads/2010/09/macof-e1284753727200-300x145.png" alt="" width="300" height="145" /><br />
<br /></br><br />
I didn&#8217;t see and logging on the console screen and I had to look at the config to see the changes.<br />
<br /></br></p>
<pre>!
interface FastEthernet0/2
 switchport access vlan 10
 switchport mode access
 switchport port-security
 switchport port-security maximum 5
 switchport port-security violation protect
 switchport port-security mac-address sticky
 switchport port-security mac-address sticky 0013.72a5.6d34
 switchport port-security mac-address sticky 0048.8305.ff6e
 switchport port-security mac-address sticky 0632.0036.908b
 switchport port-security mac-address sticky 36bc.5370.cd65
 switchport port-security mac-address sticky a0ec.090c.14e1
 spanning-tree portfast
end

!
2950_sw_1#sh int f0/2 status                                                                                         

Port      Name               Status       Vlan       Duplex  Speed Type
Fa0/2                        connected    10         a-full  a-100 10/100BaseTX
2950_sw_1#</pre>
<p></br><br /></br><br /></br><br />
<strong><span style="text-decoration: underline;">Violation restrict</span><br />
</strong><br />
<br /></br><br />
With the restrict violation a Syslog message is sent, but port not shut or in errordisable.<br />
<br /></br></p>
<p>Now to run the macof software to flood the CAM table.<br />
<img title="macof" src="http://www.martinrenshaw.com/wp-content/uploads/2010/09/macof-e1284753727200-300x145.png" alt="" width="300" height="145" /></p>
<p><span> </span></p>
<pre>2950_sw_1#
13:20:32: %PORT_SECURITY-2-PSECURE_VIOLATION: Security violation occurred, caused by MAC address ce96.df1b.275e on port FastEthernet0/2</pre>
<p>Here is what was written to the config</p>
<pre>!
interface FastEthernet0/2
 switchport access vlan 10
 switchport mode access
 switchport port-security
 switchport port-security maximum 5
 switchport port-security violation restrict
 switchport port-security mac-address sticky
 switchport port-security mac-address sticky 0013.72a5.6d34
 switchport port-security mac-address sticky 72dd.5e68.afd5
 switchport port-security mac-address sticky a47a.9a59.fc41
 switchport port-security mac-address sticky c4f0.8269.136a
 switchport port-security mac-address sticky d83c.7f68.93fb
 spanning-tree portfast
end</pre>
<p>And the interface is still up but only forwarding for the mac addresses it learn&#8217;t</p>
<pre>2950_sw_1#sh int f0/2 status                                                                                         

Port      Name               Status       Vlan       Duplex  Speed Type
Fa0/2                        connected    10         a-full  a-100 10/100BaseTX
2950_sw_1#</pre>
<p>And finally I used the command &#8220;show port-security&#8221; to see the information about port-security.</p>
<pre>!
2950_sw_1#sh port-sec
Secure Port  MaxSecureAddr  CurrentAddr  SecurityViolation  Security Action
                (Count)       (Count)          (Count)
---------------------------------------------------------------------------
      Fa0/2              5            5                  0          Restrict
---------------------------------------------------------------------------
Total Addresses in System (excluding one mac per port)     : 4
Max Addresses limit in System (excluding one mac per port) : 1024                                                    

2950_sw_1#
!</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.martinrenshaw.com/2010/09/lab-%e2%80%93-port-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>youtube isn&#8217;t all failblog vids</title>
		<link>http://www.martinrenshaw.com/2010/09/youtube-isnt-all-failblog-vids/</link>
		<comments>http://www.martinrenshaw.com/2010/09/youtube-isnt-all-failblog-vids/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 14:43:13 +0000</pubDate>
		<dc:creator>martinrenshaw</dc:creator>
				<category><![CDATA[Revision and Learning Strategy]]></category>

		<guid isPermaLink="false">http://www.martinrenshaw.com/?p=97</guid>
		<description><![CDATA[I found these by accident and then went to the website listed in the info on youtube, a good series of videos. http://nptel.iitm.ac.in/video.php?courseId=1061 = Ten Videos focusing on Internet Technologys http://nptel.iitm.ac.in/video.php?courseId=1081 = Ten Videos focusing on Data Communication http://nptel.iitm.ac.in/video.php?courseId=1050 = Ten Videos focusing on Computer Organization More vids]]></description>
			<content:encoded><![CDATA[<p>I found these by accident and then went to the website listed in the info on youtube, a good series of videos.</p>
<p><a href="http://nptel.iitm.ac.in/video.php?courseId=1061" target="_blank">http://nptel.iitm.ac.in/video.php?courseId=1061</a> = Ten Videos focusing on Internet Technologys</p>
<p><a href="http://nptel.iitm.ac.in/video.php?courseId=1081" target="_blank">http://nptel.iitm.ac.in/video.php?courseId=1081</a> = Ten Videos focusing on Data Communication</p>
<p><a href="http://nptel.iitm.ac.in/video.php?courseId=1050" target="_blank">http://nptel.iitm.ac.in/video.php?courseId=1050</a> = Ten Videos focusing on Computer Organization</p>
<p><a href="http://nptel.iitm.ac.in/courses.php?branch=Comp" target="_blank">More vids</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinrenshaw.com/2010/09/youtube-isnt-all-failblog-vids/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Packet Analysis – PC1 to PC2</title>
		<link>http://www.martinrenshaw.com/2010/09/packet-analysis-%e2%80%93-pc1-to-pc2/</link>
		<comments>http://www.martinrenshaw.com/2010/09/packet-analysis-%e2%80%93-pc1-to-pc2/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 14:13:09 +0000</pubDate>
		<dc:creator>martinrenshaw</dc:creator>
				<category><![CDATA[Packet Analysis]]></category>
		<category><![CDATA[packet analysis]]></category>

		<guid isPermaLink="false">http://www.martinrenshaw.com/2010/09/packet-analysis-%e2%80%93-pc1-to-pc2/</guid>
		<description><![CDATA[This is a very simple packet analysis to show what happens when we connect (ssh in this case) from PC1 to the IP address of PC2. [edit] I might come back to this and edit it when I have more time. I hope to show more about what ssh is doing with key-exchanging and a [...]]]></description>
			<content:encoded><![CDATA[<div>
<p><span style="font-family: 'Liberation Mono', monospace;">This is a</span> <span style="font-family: 'Liberation Mono', monospace;"><strong>very</strong></span> <strong><span style="font-family: 'Liberation Mono', monospace;">simple</span></strong> <span style="font-family: 'Liberation Mono', monospace;">packet analysis to show what happens when we connect (ssh in this case) from PC1 to the IP address of PC2.</span></p>
<p><em><span style="font-family: 'Liberation Mono', monospace;">[edit] I might come back to this and edit it when I have more time. I hope to show more about what ssh is doing with key-exchanging and a more detail explination on information within the whole trace. This was more of an exercise on posting the information.</span></em></p>
<p><img style="text-align: bottom;" src="http://www.martinrenshaw.com/wp-content/uploads/2010/09/090310_1228_PacketAnaly1.png" border="0" alt="" width="678" height="220" /><br />
<span id="more-52"></span><br />
<span style="font-family: 'Liberation Mono', monospace;">Firstly PC1 needs to know how to get to PC2 on a layer2 (switched network) so it does and ARP broadcast, on hearing the Broadcast PC2 responds to the ARP request as the owner of the IP address with its MAC address. As seen in the picture below as packets 1 &amp; 2.</span></p>
<p><span style="font-family: 'Liberation Mono', monospace;">Now PC1 knows the MAC address it can start to connect to the SSH daemon running on PC2, as SSH is a TCP protocol it starts the three-way handshake. Packet 4 shows the [SYN] synchronise bit set in the TCP header, packet 5 show the [ACK] acknowledgement to the [SYN] in packet 4 and a [SYN] of its own. Packet 6 is the [ACK] to [SYN] in packet 5.</span></p>
<p><img style="text-align: left; border: 0px initial initial;" src="http://www.martinrenshaw.com/wp-content/uploads/2010/09/sbres_1283782388_1__.jpg" border="0" alt="" width="970" height="533" /></p>
<p><span style="font-family: 'Liberation Mono', monospace;">From this point on the two PCs are connected, when its time to finish the connection PC 1 set the [FIN] finish bit in the TCP header, PC2 responds with an [ACK] and also sends a [FIN] packets 63 &amp; 64</span></p>
<p><img style="text-align: left; border: 0px initial initial;" src="http://www.martinrenshaw.com/wp-content/uploads/2010/09/sbres_1283782388_2__.jpg" border="0" alt="" width="970" height="533" /></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.martinrenshaw.com/2010/09/packet-analysis-%e2%80%93-pc1-to-pc2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Revision and Learning Strategy &#8211; &#8220;Spaced Learning&#8221;</title>
		<link>http://www.martinrenshaw.com/2010/08/revision-and-learning-strategy-spaced-learning/</link>
		<comments>http://www.martinrenshaw.com/2010/08/revision-and-learning-strategy-spaced-learning/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 15:04:13 +0000</pubDate>
		<dc:creator>martinrenshaw</dc:creator>
				<category><![CDATA[Revision and Learning Strategy]]></category>
		<category><![CDATA[Spaced Learning]]></category>

		<guid isPermaLink="false">http://martinrenshaw.com/?p=3</guid>
		<description><![CDATA[Whilst nosing around other people blogs for tips on studying for Cisco Certifications I came across this article from Greg Ferro @Etherealmind.com and within a passage about &#8220;Spaced Learning&#8221;. Following the link to spacedlearning.org.uk I read the info and watched a short video. The basic premise of this Technique is that when learning something repetition [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst nosing around other people blogs for tips on studying for Cisco Certifications I came across <a href="http://etherealmind.com/cisco-study-planning-tips/" target="_blank">this</a> article from Greg Ferro @Etherealmind.com and within a passage about &#8220;Spaced Learning&#8221;. Following the link to <a href="http://www.spacedlearning.org.uk" target="_blank">spacedlearning.org.uk</a> I read the info and watched a short video. The basic premise of this Technique is that when learning something repetition is key and space/time in-between these repeated learning session is used for something other than learning preferable something physical. I don&#8217;t think I have done this learning method justice so for more complete info please go to http://www.spacedlearning.org.uk.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinrenshaw.com/2010/08/revision-and-learning-strategy-spaced-learning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CCNP-ISCW GRE over IPSec with OSPF</title>
		<link>http://www.martinrenshaw.com/2010/08/ccnp-iscw-gre-over-ipsec-with-ospf/</link>
		<comments>http://www.martinrenshaw.com/2010/08/ccnp-iscw-gre-over-ipsec-with-ospf/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 19:13:11 +0000</pubDate>
		<dc:creator>martinrenshaw</dc:creator>
				<category><![CDATA[CCNP]]></category>
		<category><![CDATA[IPSec]]></category>

		<guid isPermaLink="false">http://martinrenshaw.com/?p=23</guid>
		<description><![CDATA[ISWC IPSec LAB with OSPF through GRE tunnel This is a follow on lab from the basic site to site lab I created a few days ago it has the addition of GRE so I can have dynamic routing protocols accross the VPN. Here is the relevant config for the router IPSec_remote, notice that the [...]]]></description>
			<content:encoded><![CDATA[<p>ISWC IPSec LAB with OSPF through GRE tunnel</p>
<p>This is a follow on lab from the basic site to site lab I created a few days ago it has the addition of GRE so I can have dynamic routing protocols accross the VPN.</p>
<p><a href="http://loopback1.files.wordpress.com/2010/06/iscw-ipsec-lab.png"><img title="ISCW-IPSec-LAB" src="http://loopback1.files.wordpress.com/2010/06/iscw-ipsec-lab.png?w=819&amp;h=339" alt="" width="655" height="271" /></a><br />
<span id="more-23"></span><br />
Here is the relevant config for the router IPSec_remote, notice that the tunnel interface is defined but shut down on this side</p>
<pre>!
hostname IPSec_remote
!
!
crypto isakmp policy 1
encr aes
authentication pre-share
group 2
lifetime 32000
crypto isakmp key 6 poophead address 50.0.0.10
!
!
crypto ipsec transform-set TOHO ah-sha-hmac esp-aes
!
crypto map TOHO 10 ipsec-isakmp
set peer 50.0.0.10
set transform-set TOHO
match address 100
!
!
!
interface Loopback0
ip address 192.168.200.200 255.255.255.255
!
interface Tunnel1
ip address 10.0.2.2 255.255.255.252
shutdown
tunnel source FastEthernet0
tunnel destination 50.0.0.10
!
interface Ethernet0
ip address 10.0.1.254 255.255.255.0
half-duplex
!
interface FastEthernet0
ip address 50.0.0.1 255.255.255.252
speed 100
full-duplex
crypto map TOHO
!
router ospf 1
log-adjacency-changes
network 10.0.1.0 0.0.0.255 area 1
network 10.0.2.0 0.0.0.3 area 1
network 192.168.200.0 0.0.0.255 area 1
!
ip route 0.0.0.0 0.0.0.0 50.0.0.2
!
!
access-list 100 permit ip 10.0.1.0 0.0.0.255 10.0.0.0 0.0.0.255
access-list 100 permit icmp 10.0.1.0 0.0.0.255 10.0.0.0 0.0.0.255
access-list 100 permit gre any any
!</pre>
<p>Here is route table, only connected and static routes</p>
<pre>!
IPSec_remote#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 50.0.0.2 to network 0.0.0.0
50.0.0.0/30 is subnetted, 1 subnets
C       50.0.0.0 is directly connected, FastEthernet0
192.168.200.0/32 is subnetted, 1 subnets
C       192.168.200.200 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 1 subnets
C       10.0.1.0 is directly connected, Ethernet0
S*   0.0.0.0/0 [1/0] via 50.0.0.2</pre>
<p>Here we can see that the IPSec VPN is up with peer 50.0.0.10 which is R4</p>
<pre>IPSec_remote#sh cry isakmp sa

dst             src             state          conn-id slot status
50.0.0.10       50.0.0.1        QM_IDLE              1    0 ACTIVE</pre>
<p>We can ping over to e0 interface on R4 which shows us that the VPN is working.</p>
<pre>IPSec_remote#ping 10.0.0.254 source e0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.254, timeout is 2 seconds:
Packet sent with a source address of 10.0.1.254
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 72/121/224 ms</pre>
<p>Now lets see the config on R4(HO-VPN-1)</p>
<pre>!
hostname HO-VPN-1
!
!
crypto isakmp policy 1
encr aes
authentication pre-share
group 2
lifetime 32000
crypto isakmp key 6 renshaw address 50.0.0.1
!
!
crypto ipsec transform-set TOVPNREMOTE ah-sha-hmac esp-aes
!
crypto map TOVPNREMOTE 10 ipsec-isakmp
set peer 50.0.0.1
set transform-set TOVPNREMOTE
match address 100
!
interface Loopback0
ip address 192.168.100.100 255.255.255.255
!
interface Tunnel1
ip address 10.0.2.1 255.255.255.252
tunnel source FastEthernet0
tunnel destination 50.0.0.1
!
interface Ethernet0
ip address 10.0.0.254 255.255.255.0
half-duplex
!
interface FastEthernet0
ip address 50.0.0.10 255.255.255.248
speed 100
full-duplex
crypto map TOVPNREMOTE
!
router ospf 1
log-adjacency-changes
network 10.0.0.0 0.0.0.255 area 1
network 10.0.2.0 0.0.0.3 area 1
network 192.168.100.0 0.0.0.255 area 1
!
ip route 0.0.0.0 0.0.0.0 50.0.0.9
!
!
access-list 100 permit ip 10.0.0.0 0.0.0.255 10.0.1.0 0.0.0.255
access-list 100 permit icmp 10.0.0.0 0.0.0.255 10.0.1.0 0.0.0.255
access-list 100 permit gre any any
!</pre>
<p>Lets look at the route table, again all connected and static only</p>
<pre>HO-VPN-1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 50.0.0.9 to network 0.0.0.0

50.0.0.0/29 is subnetted, 1 subnets
C       50.0.0.8 is directly connected, FastEthernet0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       10.0.2.0/30 is directly connected, Tunnel1
C       10.0.0.0/24 is directly connected, Ethernet0
192.168.100.0/32 is subnetted, 1 subnets
C       192.168.100.100 is directly connected, Loopback0
S*   0.0.0.0/0 [1/0] via 50.0.0.9</pre>
<p>Lets ping to e0 on IPSec_remote router</p>
<pre>HO-VPN-1#ping 10.0.1.253 sou e0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.1.253, timeout is 2 seconds:
Packet sent with a source address of 10.0.0.254
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/318/704 ms</pre>
<p>Ok so we have seen the config for both routers and we saw the IPsec tunnel no lets do a “no shut” on the tunnel interface on the IPSec_remote router, we should then see a OSPF message as OSPF forms a neighbour adjacency..</p>
<pre>IPSec_remote#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
IPSec_remote(config)#int tun 1
IPSec_remote(config-if)#no shut
IPSec_remote(config-if)#

*Mar  1 00:22:58.295: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.100.100 on Tunnel1 from LOADING to FULL, Loading Done
*Mar  1 00:22:59.271: %LINK-3-UPDOWN: Interface Tunnel1, changed state to up
*Mar  1 00:23:00.271: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to up</pre>
<p>and no as seem from R4(HO-VPN-1)</p>
<pre>HO-VPN-1#
*Mar  1 00:24:02.395: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.200.200 on Tunnel1 from LOADING to FULL, Loading Done</pre>
<p>Lets look at the routing table of both routers we should see the OSPF learned routes</p>
<pre>IPSec_remote#sh ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 50.0.0.2 to network 0.0.0.0

50.0.0.0/30 is subnetted, 1 subnets
C       50.0.0.0 is directly connected, FastEthernet0
192.168.200.0/32 is subnetted, 1 subnets
C       192.168.200.200 is directly connected, Loopback0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C       10.0.2.0/30 is directly connected, Tunnel1
O       10.0.0.0/24 [110/11121] via 10.0.2.1, 00:00:54, Tunnel1
C       10.0.1.0/24 is directly connected, Ethernet0
192.168.100.0/32 is subnetted, 1 subnets
O       192.168.100.100 [110/11112] via 10.0.2.1, 00:00:54, Tunnel1
S*   0.0.0.0/0 [1/0] via 50.0.0.2</pre>
<p>R4 routing table</p>
<pre>HO-VPN-1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 50.0.0.9 to network 0.0.0.0

50.0.0.0/29 is subnetted, 1 subnets
C       50.0.0.8 is directly connected, FastEthernet0
192.168.200.0/32 is subnetted, 1 subnets
O       192.168.200.200 [110/11112] via 10.0.2.2, 00:01:30, Tunnel1
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C       10.0.2.0/30 is directly connected, Tunnel1
C       10.0.0.0/24 is directly connected, Ethernet0
O       10.0.1.0/24 [110/11121] via 10.0.2.2, 00:01:30, Tunnel1
192.168.100.0/32 is subnetted, 1 subnets
C       192.168.100.100 is directly connected, Loopback0
S*   0.0.0.0/0 [1/0] via 50.0.0.9</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.martinrenshaw.com/2010/08/ccnp-iscw-gre-over-ipsec-with-ospf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CCNP-ISCW Basic IPSec</title>
		<link>http://www.martinrenshaw.com/2010/08/ccnp-iscw-basic-ipsec/</link>
		<comments>http://www.martinrenshaw.com/2010/08/ccnp-iscw-basic-ipsec/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 19:11:10 +0000</pubDate>
		<dc:creator>martinrenshaw</dc:creator>
				<category><![CDATA[CCNP]]></category>
		<category><![CDATA[IPSec]]></category>

		<guid isPermaLink="false">http://martinrenshaw.com/?p=19</guid>
		<description><![CDATA[ISCW IPSec LAB Lab Description: The purpose of this lab is to created a IPSec site to site VPN between two routers “IPSec_remote” and “R4”. The routers IPS1 &#38; R2 are simulating IPS routers and are routing the traffic between “IPSec_remote” &#38; “R4”. Below is the interface addressing for the two routers: IPSec_remote: f0: 50.0.0.2/30 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>ISCW IPSec LAB</strong></p>
<p>Lab Description:</p>
<p>The purpose of this lab is to created a IPSec site to site VPN between two routers “IPSec_remote” and “R4”. The routers IPS1 &amp; R2 are simulating IPS routers and are routing the traffic between “IPSec_remote” &amp; “R4”. Below is the interface addressing for the two routers:</p>
<p><a href="http://loopback1.files.wordpress.com/2010/06/iscw-ipsec-lab.png"><img title="ISCW-IPSec-LAB" src="http://loopback1.files.wordpress.com/2010/06/iscw-ipsec-lab.png?w=922&amp;h=382" alt="" width="664" height="275" /></a><br />
<span id="more-19"></span><br />
IPSec_remote:</p>
<p>f0: 50.0.0.2/30<br />
e0: 10.0.1.254/24</p>
<p>R4:</p>
<p>f0: 50.0.0.10/29<br />
e0: 10.0.0.254/24</p>
<p>Both R4 &amp; IPSec_remote and NOT doing Port Address Translation as I want all traffic to traverse the VPN tunnel.</p>
<p>Here is the relevant config for both routers:</p>
<p>IPSec_remote:</p>
<pre>!
crypto isakmp policy 1
encr aes
authentication pre-share
group 2
lifetime 32000
!
crypto isakmp key 6 worksucks address 50.0.0.10
!
!
crypto ipsec transform-set TOHO ah-sha-hmac esp-aes
!
crypto map TOHO 10 ipsec-isakmp
set peer 50.0.0.10
set transform-set TOHO
match address 100
!
!
interface FastEthernet0
ip address 50.0.0.1 255.255.255.252
speed 100
full-duplex
crypto map TOHO
!
!
access-list 100 permit ip 10.0.1.0 0.0.0.255 10.0.0.0 0.0.0.255
access-list 100 permit icmp 10.0.1.0 0.0.0.255 10.0.0.0 0.0.0.255
!</pre>
<p>R4:</p>
<pre>!
crypto isakmp policy 1
encr aes
authentication pre-share
group 2
lifetime 32000

crypto isakmp key 6 worksucks address 50.0.0.1
!
!
crypto ipsec transform-set TOVPNREMOTE ah-sha-hmac esp-aes
!
crypto map TOVPNREMOTE 10 ipsec-isakmp
set peer 50.0.0.1
set transform-set TOVPNREMOTE
match address 100
!
!
interface FastEthernet0
ip address 50.0.0.10 255.255.255.248
speed 100
full-duplex
crypto map TOVPNREMOTE
!
!
access-list 100 permit ip 10.0.0.0 0.0.0.255 10.0.1.0 0.0.0.255
access-list 100 permit icmp 10.0.0.0 0.0.0.255 10.0.1.0 0.0.0.255
!</pre>
<p>For testing the VPN I ping from “PC_remote” 10.0.1.253 to “R6” 10.0.1.253:</p>
<pre>remotePC#ping 10.0.0.253
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.253, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 148/324/796 ms</pre>
<p>Jump onto IPSec_remote</p>
<pre>IPSec_remote#sh crypto isakmp sa
dst         src           state       conn-id slot status
50.0.0.1 50.0.0.10 QM_IDLE 1 0 ACTIVE</pre>
<p>So this is our basic site-to-site VPN, next I will add GRE so I can use routing protocols across the VPN tunnel.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinrenshaw.com/2010/08/ccnp-iscw-basic-ipsec/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CCNP-ISCW MPLS Review</title>
		<link>http://www.martinrenshaw.com/2010/08/ccnp-iscw-mpls-review/</link>
		<comments>http://www.martinrenshaw.com/2010/08/ccnp-iscw-mpls-review/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 19:05:47 +0000</pubDate>
		<dc:creator>martinrenshaw</dc:creator>
				<category><![CDATA[CCNP]]></category>
		<category><![CDATA[MPLS]]></category>

		<guid isPermaLink="false">http://martinrenshaw.com/?p=16</guid>
		<description><![CDATA[MPLS terms: Cisco Express Forwarding (CEF) Prerequist for MPLS, builds a forwarding table for hardware switching instead of process switching (routing), runs in the control plane. Forwarding information base (FIB) The FIB is built by CEF baised on the entrys in the routing table, resides in the dataplane. Label Distrabution Protocol (LDP) Protocol (rfc3036) that [...]]]></description>
			<content:encoded><![CDATA[<p>MPLS terms:</p>
<p><strong>Cisco Express Forwarding (CEF)</strong><br />
Prerequist for MPLS, builds a forwarding table for hardware switching instead of process switching (routing), runs in the control plane.</p>
<p><strong>Forwarding information base (FIB)</strong><br />
The FIB is built by CEF baised on the entrys in the routing table, resides in the dataplane.</p>
<p><strong>Label Distrabution Protocol (LDP)</strong><br />
Protocol (rfc3036) that forwards labels to neighbours an generates and label information base (LIB), runs int the control plane.</p>
<p><strong>Label Forward Information Base (LFIB)</strong><br />
The LFIB is the next hop table formed from the LIB, it runs in the data plane.</p>
<p><strong>Label Switch Router (LSR)</strong><br />
Router witch is performing MPLS label switching</p>
<p><strong>Edge Label Switch Router (edgeLSR)</strong><br />
Router performing MPLS label switching, label imposing and label removal.</p>
<p><strong>Label Switch Path (LSP)</strong><br />
Path which the label packet with take through the MPLS network.</p>
<p><strong>Provider Router (P)</strong><br />
Router that is only doing label switching in MPLS</p>
<p><strong>Provider Edge (PE)</strong><br />
Router that has interfaces in the MPLS network and IP network</p>
<p><strong>Customer Edge (CE)</strong><br />
Router that resides at the customer site connects to the PE routers using IP</p>
<p><strong>Lab setup:</strong></p>
<p>This is a messy setup but it was one that I slapped on the play with MPLS, I also wanted to play with MP-BGP and VPNs hence the extra un-named routers that I will used later at some point.</p>
<p>I have configured this using mainly GNS3 which I broke out onto real equipment using USB NICs, PE-3 is a real 2621 router as is the Internet as I broke out and used PAT to get out onto the internet.</p>
<p><a href="http://loopback1.files.wordpress.com/2010/06/image001.png"><img title="image001" src="http://loopback1.files.wordpress.com/2010/06/image001.png?w=948&amp;h=618" alt="" width="664" height="433" /></a></p>
<ol>
<li>Configure P routers with OSPF interfaces all in area0</li>
<li>Configure P2 &amp; P4 interface with OSPF area 1</li>
<li>Configure PE router with OSPF interfaces in area 1</li>
<li>Configure CE routers with static routes pointing at next hop interfaces.</li>
</ol>
<p><span id="more-16"></span><br />
This is the interface config before the MPLS config is applied,</p>
<pre>!
interface Loopback0
 ip address 100.0.0.100 255.255.255.255
 ip ospf 1 area 1
!
interface FastEthernet0/0
 description link-to-CE-1r1
 ip vrf forwarding phillips
 ip address 50.0.0.5 255.255.255.252
 duplex full
 speed auto
!
interface GigabitEthernet1/0
 description link-to-P2-backbone
 ip address 100.0.0.17 255.255.255.252
 ip ospf authentication message-digest
 ip ospf authentication-key june
 ip ospf 1 area 1
 negotiation auto
!
PE-1#sh mpls forwarding-table
Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop
tag    tag or VC   or Tunnel Id      switched   interface
25     Aggregate   50.0.0.4/30[V]    0
!</pre>
<p>Add the config, first to Gig1/0 which is the interface facing into the WAN,<br />
notice the message below, a LDP adjacancy formed with 100.0.0.0.18</p>
<pre>!
PE-1(config)#int g1/0
PE-1(config-if)#mpls label protocol ldp
PE-1(config-if)#mpls mtu 1508
PE-1(config-if)#mpls ip
PE-1(config-if)#^Z
PE-1#
*Jun 16 18:48:04.603: %LDP-5-NBRCHG: LDP Neighbor 100.0.0.18:0 (1) is UP
!</pre>
<p>The adjacancy with 100.0.0.18 means we get all the labels for upstream LSRs, look at the entry for 100.0.0.102/32 which is the loopback0 address for PE-2. The local tag is 16 and outgoing tag is 23 which has been recieived by P2. On P2 we can see an entry for 100.0.0.102/32, if we get a tagged frame with the lable 23 it will get swapped for lable 23 and sent out Gi1/0 to P1</p>
<pre>!
PE-1#sh mpls forwarding-table
Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop
tag    tag or VC   or Tunnel Id      switched   interface
16     23          100.0.0.102/32    0          Gi1/0      100.0.0.18
17     19          100.0.0.103/32    0          Gi1/0      100.0.0.18
18     20          100.0.0.4/30      0          Gi1/0      100.0.0.18
19     Pop tag     100.0.0.0/30      0          Gi1/0      100.0.0.18
20     21          100.0.1.0/30      0          Gi1/0      100.0.0.18
21     17          100.0.0.12/30     0          Gi1/0      100.0.0.18
22     Pop tag     100.0.0.8/30      0          Gi1/0      100.0.0.18
23     22          100.0.0.20/30     0          Gi1/0      100.0.0.18
24     18          100.0.0.24/30     0          Gi1/0      100.0.0.18
25     Aggregate   50.0.0.4/30[V]    0
!</pre>
<p>LFIB table from P2</p>
<pre>P2-backbone#sh mpls forwarding-table
Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop
tag    tag or VC   or Tunnel Id      switched   interface
16     Pop tag     100.0.0.100/32    1587       Gi3/0      100.0.0.17
17     Pop tag     100.0.0.12/30     0          Gi2/0      100.0.0.10
18     Pop tag     100.0.0.24/30     0          Gi2/0      100.0.0.10
19     Pop tag     100.0.0.103/32    252        Gi2/0      100.0.0.10
20     Pop tag     100.0.0.4/30      0          Gi1/0      100.0.0.1
21     Pop tag     100.0.1.0/30      0          Gi1/0      100.0.0.1
22     21          100.0.0.20/30     0          Gi2/0      100.0.0.10
       22          100.0.0.20/30     732        Gi1/0      100.0.0.1
23     22          100.0.0.102/32    0          Gi2/0      100.0.0.10
       23          100.0.0.102/32    3761       Gi1/0      100.0.0.1
50.0.0.0/30[V]    0          Gi1/0      100.0.0.18
PE-1#</pre>
<p><strong>A great overview on MPLS from Keith Barker CCIE #6783</strong></p>
<p><strong> </strong><br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/MEWIdO40U54?fs=1&amp;hl=en_GB" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/MEWIdO40U54?fs=1&amp;hl=en_GB" allowscriptaccess="always" allowfullscreen="true"></embed></object><strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinrenshaw.com/2010/08/ccnp-iscw-mpls-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

