<?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>The Data Plumber &#187; JunOS</title>
	<atom:link href="http://dataplumber.wordpress.com/category/junos/feed/" rel="self" type="application/rss+xml" />
	<link>http://dataplumber.wordpress.com</link>
	<description>Networking tech stuff.</description>
	<lastBuildDate>Mon, 02 Mar 2009 07:48:40 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dataplumber.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/31c2b205d2b8b16448c0c70e99a6c636?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Data Plumber &#187; JunOS</title>
		<link>http://dataplumber.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dataplumber.wordpress.com/osd.xml" title="The Data Plumber" />
	<atom:link rel='hub' href='http://dataplumber.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Juniper L2Circuit Config</title>
		<link>http://dataplumber.wordpress.com/2008/01/03/juniper-l2circuit-config/</link>
		<comments>http://dataplumber.wordpress.com/2008/01/03/juniper-l2circuit-config/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 10:36:51 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[JunOS]]></category>
		<category><![CDATA[MPLS]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/2008/01/03/juniper-l2circuit-config/</guid>
		<description><![CDATA[Just posting a basic l2circuit configuration for my own reference&#8230;  Piece of cake really, but it won&#8217;t work unless you use a dynamic routing protocol &#8211; the static that I had configured wasn&#8217;t enough.

In the below snippet of config, the fe-0/0/1 interface is the customer-facing interface, and fe-0/0/0 is the ISP side.   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&blog=519414&post=43&subd=dataplumber&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Just posting a basic l2circuit configuration for my own reference&#8230;  Piece of cake really, but it won&#8217;t work unless you use a dynamic routing protocol &#8211; the static that I had configured wasn&#8217;t enough.</p>
<p><span id="more-43"></span><br />
In the below snippet of config, the fe-0/0/1 interface is the customer-facing interface, and fe-0/0/0 is the ISP side.   Customer traffic is expected with a VLAN tag of 512.</p>
<p><code>set version 8.3R2.8<br />
set interfaces fe-0/0/0 unit 0 family inet address 192.168.0.1/24<br />
set interfaces fe-0/0/0 unit 0 family mpls<br />
set interfaces fe-0/0/1 vlan-tagging<br />
set interfaces fe-0/0/1 speed 100m<br />
set interfaces fe-0/0/1 link-mode full-duplex<br />
set interfaces fe-0/0/1 encapsulation vlan-ccc<br />
set interfaces fe-0/0/1 unit 0 vlan-id 1<br />
set interfaces fe-0/0/1 unit 100 encapsulation vlan-ccc<br />
set interfaces fe-0/0/1 unit 100 vlan-id 512<br />
set interfaces lo0 unit 0 family inet address 127.0.0.1/32<br />
set interfaces lo0 unit 0 family inet address 10.1.1.2/32 primary<br />
set routing-options static route 0.0.0.0/0 next-hop 192.168.0.2<br />
set protocols mpls interface all<br />
set protocols ospf area 0.0.0.0 interface lo0.0<br />
set protocols ospf area 0.0.0.0 interface fe-0/0/0.0<br />
set protocols ldp interface all<br />
set protocols l2circuit neighbor 10.1.1.1 interface fe-0/0/1.100 virtual-circuit-id 2<br />
set protocols l2circuit neighbor 10.1.1.1 interface fe-0/0/1.100 no-control-word</code></p>
<p>These routers were just back-to-back, so it was a pretty simple layout.  Once the other side was configured and there was carrier on the customer ports, the circuit came up.   Check it using the following command:</p>
<p><code>root# run show l2circuit connections<br />
Layer-2 Circuit Connections:<br />
-<br />
Legend for connection status (St)<br />
EI -- encapsulation invalid      NP -- interface h/w not present<br />
MM -- mtu mismatch               Dn -- down<br />
EM -- encapsulation mismatch     VC-Dn -- Virtual circuit Down<br />
CM -- control-word mismatch      Up -- operational<br />
VM -- vlan id mismatch           CF -- Call admission control failure<br />
OL -- no outgoing label          XX -- unknown<br />
NC -- intf encaps not CCC/TCC<br />
CB -- rcvd cell-bundle size bad<br />
-<br />
Legend for interface status<br />
Up -- operational<br />
Dn -- down<br />
Neighbor: 10.1.1.1<br />
    Interface                 Type  St     Time last up          # Up trans<br />
    fe-0/0/1.100(vc 2)        rmt   Up     Jan  3 18:12:44 2008           1<br />
      Local interface: fe-0/0/1.100, Status: Up, Encapsulation: VLAN<br />
      Remote PE: 10.1.1.1, Negotiated control-word: No<br />
      Incoming label: 100000, Outgoing label: 100000</code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataplumber.wordpress.com/43/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataplumber.wordpress.com/43/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&blog=519414&post=43&subd=dataplumber&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2008/01/03/juniper-l2circuit-config/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>
	</item>
		<item>
		<title>Juniper J-series upgrade to 8.4R2.3</title>
		<link>http://dataplumber.wordpress.com/2007/09/28/juniper-j-series-upgrade-to-84r23/</link>
		<comments>http://dataplumber.wordpress.com/2007/09/28/juniper-j-series-upgrade-to-84r23/#comments</comments>
		<pubDate>Fri, 28 Sep 2007 03:33:40 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[JunOS]]></category>
		<category><![CDATA[Juniper Networks]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/2007/09/28/juniper-j-series-upgrade-to-84r23/</guid>
		<description><![CDATA[We&#8217;ve just been in the lab trying to get a router upgraded from 8.2 to the latest 8.4R2.3, and have been having some issues&#8230; 
JunOS 8.4R2.3 is just out, and we need it for a customer who is having repeated crashes of the fwdd daemon under 8.3R2.8. Here is a chop from the messages log file [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&blog=519414&post=42&subd=dataplumber&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve just been in the lab trying to get a router upgraded from 8.2 to the latest 8.4R2.3, and have been having some issues&#8230; <span id="more-42"></span></p>
<p>JunOS 8.4R2.3 is just out, and we need it for a customer who is having repeated crashes of the fwdd daemon under 8.3R2.8. Here is a chop from the messages log file that shows fwdd crashing:</p>
<p><code>Sep 26 04:07:40.109 juniper fwdd[4567]: smpmutex_lock() called from unix context (ra = 0x808e0ef)<br />
Sep 26 04:07:40.129 juniper fwdd[4567]: smpmutex_unlock() called from unix context (ra = 0x808e124)<br />
Sep 26 04:07:40.129 juniper fwdd[4567]: smpmutex_lock() called from unix context (ra = 0x808e0ef)<br />
Sep 26 04:07:40.129 juniper fwdd[4567]: smpmutex_unlock() called from unix context (ra = 0x808e124)<br />
Sep 26 04:07:40.130 juniper fwdd[4567]: smpmutex_lock() called from unix context (ra = 0x808e0ef)<br />
Sep 26 04:07:40.130 juniper fwdd[4567]: smpmutex_unlock() called from unix context (ra = 0x808e124)<br />
Sep 26 04:08:15.153 juniper /kernel: psdd 1 (0xc1ff4000): exception 0xe in fwdd (pid 4567) at 0x818beea (0x818beea); killing<br />
Sep 26 04:08:15.153 juniper /kernel: CPU=0 eip=0818beea eflags=00010206<br />
Sep 26 04:08:15.153 juniper /kernel: eax: 00000000 ebx: 00000002 ecx: 0000003d edx: 4cbd0084<br />
Sep 26 04:08:15.153 juniper /kernel: esi: 0000003a edi: 00000002 ebp: 4a449324 esp: 4a4492ac<br />
Sep 26 04:08:15.153 juniper /kernel: ds: 4a44002f es: 4a44002f ss: 002f cs: 001f<br />
Sep 26 04:08:15.153 juniper /kernel: Start of stack for thread 0xc1ff4000:<br />
Sep 26 04:08:15.153 juniper /kernel: Frame 0: sp = 0x4a449324, pc = 0x818beea<br />
Sep 26 04:08:15.154 juniper /kernel: Frame 1: sp = 0x4a449344, pc = 0x819974c<br />
Sep 26 04:08:15.154 juniper /kernel: Frame 2: sp = 0x4a449384, pc = 0x81aa357<br />
Sep 26 04:08:15.154 juniper /kernel: Frame 3: sp = 0x4a449624, pc = 0x80d0eea<br />
Sep 26 04:08:15.154 juniper /kernel: Frame 4: sp = 0x4a449664, pc = 0x80b4584<br />
&lt;snip&gt;<br />
Sep 26 04:08:15.154 juniper /kernel: End of stack<br />
Sep 26 04:08:15.153 juniper fwdd[4567]: --------------------------------------<br />
Sep 26 04:08:15.153 juniper fwdd[4567]: Bus error!<br />
Sep 26 04:08:15.153 juniper fwdd[4567]: Registers:<br />
&lt;snip&gt;<br />
Sep 26 04:08:17.490<br />
Sep 26 04:08:17.490 juniper /kernel: pfe_send_failed(index 0, type 10), err=32<br />
Sep 26 04:08:17.490 juniper /kernel: pfe_listener_disconnect: conn dropped: listener idx=0, tnpaddr=0x1, reason: socket error<br />
Sep 26 04:08:17.548 juniper chassisd[2918]: CHASSISD_FRU_OFFLINE_NOTICE: Taking FPC 0 offline: Error<br />
Sep 26 04:08:17.548 juniper chassisd[2918]: CHASSISD_IFDEV_DETACH_FPC: ifdev_detach(0)<br />
Sep 26 04:08:17.568 juniper chassisd[2918]: CHASSISD_IPC_WRITE_ERR_NULL_ARGS: FRU has no connection arguments fru_send_msg FWDD<br />
Sep 26 04:08:17.631 juniper init: forwarding (PID 4567) terminated by signal number 10. Core dumped!<br />
Sep 26 04:08:17.632 juniper init: forwarding (PID 4637) started<br />
/kernel: pfe_send_failed(index 0, type 10), err=32<br />
Sep 26 04:08:17.490 juniper /kernel: pfe_listener_disconnect: conn dropped: listener idx=0, tnpaddr=0x1, reason: socket error<br />
Sep 26 04:08:17.548 juniper chassisd[2918]: CHASSISD_FRU_OFFLINE_NOTICE: Taking FPC 0 offline: Error<br />
Sep 26 04:08:17.548 juniper chassisd[2918]: CHASSISD_IFDEV_DETACH_FPC: ifdev_detach(0)<br />
Sep 26 04:08:17.568 juniper chassisd[2918]: CHASSISD_IPC_WRITE_ERR_NULL_ARGS: FRU has no connection arguments fru_send_msg FWDD<br />
Sep 26 04:08:17.631 juniper init: forwarding (PID 4567) terminated by signal number 10. Core dumped!<br />
Sep 26 04:08:17.632 juniper init: forwarding (PID 4637) started</code></p>
<p>Not very nice &#8211; you can see an exception occurring in fwdd, and the process is killed.  It then does a stack dump and writes some stuff to the logs.  The PFE then detaches, and the fwdd process is restarted.  When this is happening you lose your telnet session.</p>
<p>So&#8230;  Juniper kindly brought out 8.4r2.3 with a fix for this in it.  (The previous version &#8211; 8.4r1 &#8211; didn&#8217;t have it).  But we ran into another issue.  Even a unit with a mostly blank config on it (just an IP address and root password) would not take the software &#8211; it complained that there was a configuration incompatibility and that the check-out failed for the Chassis control process.</p>
<p>Here&#8217;s the output found in /cf/var/log/install:</p>
<p><code>Checking compatibility with configuration<br />
Initializing...<br />
Verified manifest signed by PackageProduction_8_2_0<br />
Using /var/tmp/junos-jseries-8.4R2.3-export.tgz<br />
Checking junos requirements on /<br />
Available space: 133919 require: 51215<br />
Verified manifest signed by PackageProduction_8_4_0<br />
mtree: line 57: unknown user ext<br />
mtree: line 57: unknown user ext<br />
Hardware Database regeneration succeeded<br />
Validating against /config/juniper.conf.gz<br />
&lt;xnm:warning xmlns="<a href="http://xml.juniper.net/xnm/1.1/xnm">http://xml.juniper.net/xnm/1.1/xnm</a>" xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm"&gt;;<br />
&lt;message&gt;<br />
Couldn't open /packages/mnt<br />
&lt;/message&gt;<br />
&lt;/xnm:warning&gt;<br />
mgd: error: Check-out failed for Chassis control process (/usr/sbin/chassisd) without details<br />
mgd: error: configuration check-out failed<br />
Validation failed<br />
WARNING: Current configuration not compatible with /var/tmp/junos-jseries-8.4R2.3-export.tgz<br />
&lt;/output&gt;<br />
&lt;package-result&gt;1&lt;/package-result&gt;<br />
<a href="mailto:root@">root@%</a> cli<br />
root&gt;</code></p>
<p>Turns out, this is an additional bug &#8211; documented under PR 237369.  The upgrade is failing in the Validate part.  There&#8217;s no software fix for this at the moment. You just have to do the upgrade on the CLI only, and use the &#8216;no-validate&#8217; command:</p>
<p><code>juniper&gt; request system software add /var/tmp/junos-jseries-8.4R2.3-domestic.tgz no-validate</code></p>
<p>While JTAC were coming up with this answer, however, my colleague managed to upgrade to 8.3, and from there to 8.4.  It moaned about the config not being compatible, but worked anyway.  We loaded the customer&#8217;s config on using &#8216;load override&#8217; and it complained about there being an incompatibility in one line.  We committed it, and then did a diff on the before and after configs &#8211; the only line that was different was the encrypted password for the root user.   I wonder if they changed the encryption algorithm in this new version or something&#8230; </p>
<p>I&#8217;ll have to ask if these bugs affect the M and T series of routers.  Something for tomorrow morning I think.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataplumber.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataplumber.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&blog=519414&post=42&subd=dataplumber&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2007/09/28/juniper-j-series-upgrade-to-84r23/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>
	</item>
		<item>
		<title>Exclusive configuration in IOS and JunOS</title>
		<link>http://dataplumber.wordpress.com/2007/02/01/exclusive-configuration-in-ios-and-jun-os/</link>
		<comments>http://dataplumber.wordpress.com/2007/02/01/exclusive-configuration-in-ios-and-jun-os/#comments</comments>
		<pubDate>Thu, 01 Feb 2007 20:03:19 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[IOS]]></category>
		<category><![CDATA[JunOS]]></category>
		<category><![CDATA[Juniper Networks]]></category>
		<category><![CDATA[cisco]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/2007/02/01/exclusive-configuration-in-ios-and-jun-os/</guid>
		<description><![CDATA[Juniper certainly seem to lead Cisco in certain areas sometimes.  
If there&#8217;s a chance that more than one person can be changing a router&#8217;s configuration at the same time, you can get yourself into trouble.  JunOS is quite good in that it tells you as you go into edit mode whether someone else [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&blog=519414&post=22&subd=dataplumber&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Juniper certainly seem to lead Cisco in certain areas sometimes.  </p>
<p>If there&#8217;s a chance that more than one person can be changing a router&#8217;s configuration at the same time, you can get yourself into trouble. <span id="more-22"></span> JunOS is quite good in that it tells you as you go into edit mode whether someone else is already modifying the configuration.  Of course you could forget that someone is already in there, so it could be a good idea to get into the habit of using one of the two following commands:</p>
<p><code>configure exclusive<br />
configure private</code></p>
<p>The &#8220;exclusive&#8221; keyword locks the candidate configuration and prevents anyone else making changes while you are editing.  The &#8220;private&#8221; keyword is even better &#8211; it permits userA and userB to be in edit mode at the same time, while allowing each user to commit their own changes.</p>
<p>Cisco (I believe) didn&#8217;t have a feature like this until recently.  Now you can do a something similar in IOS too.  If you enter the command:<br />
<code>configuration mode exclusive auto</code><br />
in global configuration mode, this makes all configuration sessions exclusive by default.</p>
<p>Should you want the configuration locking to be optional, use &#8220;manual&#8221; instead of auto.  From then on, when going into configuration mode, you need to type &#8220;conf t lock&#8221; to set the configuration lock.</p>
<p>I see from the Cisco command reference that this is a 12.3(14)T or later feature, so you may not get it without an IOS upgrade.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataplumber.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataplumber.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&blog=519414&post=22&subd=dataplumber&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2007/02/01/exclusive-configuration-in-ios-and-jun-os/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>
	</item>
		<item>
		<title>Don&#8217;t Cut Your Own Legs Off &#8211; IOS and JunOS</title>
		<link>http://dataplumber.wordpress.com/2007/02/01/dont-cut-your-own-legs-off-ios-and-junos/</link>
		<comments>http://dataplumber.wordpress.com/2007/02/01/dont-cut-your-own-legs-off-ios-and-junos/#comments</comments>
		<pubDate>Thu, 01 Feb 2007 19:40:45 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[IOS]]></category>
		<category><![CDATA[JunOS]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/2007/02/01/dont-cut-your-own-legs-off-ios-and-junos/</guid>
		<description><![CDATA[I guess every engineer knows that heart-stopping moment when you change something on a remote router and the telnet session you are using stops responding.  You hit a few keys in the folorn hope that it is a bit of network congestion before resigning yourself to the fact that you&#8217;ve just been a complete [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&blog=519414&post=21&subd=dataplumber&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I guess every engineer knows that heart-stopping moment when you change something on a remote router and the telnet session you are using stops responding.  You hit a few keys in the folorn hope that it is a bit of network congestion before resigning yourself to the fact that you&#8217;ve just been a complete idiot and removed the IP address you were telnetting in through.<span id="more-21"></span></p>
<p>Juniper built JunOS from the ground up with features to counter things like this.  In JunOS, when you go into editing mode, a copy of the current configuration is taken and becomes what is called the &#8220;candidate configuration&#8221;.  It is this that gets edited, and when you are happy with your changes, you issue the &#8220;commit&#8221; command. The candidate configuration becomes the current configuration, and the old current configuration is stored as a &#8220;rollback configuration&#8221;. Of course if you&#8217;ve made a mistake, it is at this point that your telnet session goes dead.</p>
<p>If you use the &#8220;commit confirmed&#8221; command, however, the router implements the configuration and waits for a second &#8220;commit&#8221; command.  If it doesn&#8217;t get one within a set period, it assumes you have lost connectivity and rolls the configuration back to the previously working config.  A nice feature.</p>
<p>Now IOS doesn&#8217;t do this, unfortunately.  What you can do, however, if you are making what might be a risky change, is to use the &#8220;reload in &#8221; command.  Here&#8217;s what you do:</p>
<ol>
<li>Enter privileged exec mode
<li>Issue the command &#8220;reload in 10&#8243; to give yourself 10 minutes
<li>Make your changes in configuration mode
<li>If you didn&#8217;t cut yourself off, you&#8217;re ok.  Cancel the reload using &#8220;cancel reload&#8221;
<li>Write your config to flash
</ol>
<p>If you prefer, you can reload at a specific time &#8211; &#8220;reload at 19:00&#8243; will reload the router at 7pm.  It is probably wise to check that your clock is right before you do this though.</p>
<p>And finally, a &#8220;show reload&#8221; will tell you if there are any outstanding reloads pending.</p>
<p>This parameter on the end of the reload command seems to have been around for a few years (at least since 12.1 mainline), but I&#8217;ve never seen anyone else using it.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataplumber.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataplumber.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&blog=519414&post=21&subd=dataplumber&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2007/02/01/dont-cut-your-own-legs-off-ios-and-junos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>
	</item>
	</channel>
</rss>