{"id":800,"date":"2009-05-21T19:59:09","date_gmt":"2009-05-21T17:59:09","guid":{"rendered":"http:\/\/www.retro.co.za\/blog\/?p=800"},"modified":"2009-05-27T09:44:43","modified_gmt":"2009-05-27T07:44:43","slug":"fun-with-a-cisco-1600","status":"publish","type":"post","link":"http:\/\/www.retro.co.za\/blog\/?p=800","title":{"rendered":"Fun with a Cisco 1600"},"content":{"rendered":"<p>(Long geeky post alert. You probably don&#8217;t want to read this unless your Cisco is dead and you got here via google or something).<\/p>\n<p>A number of years ago (May 2005, to be exact) Tanya&#8217;s Cisco 1600 (diginet leased-line router) went funny after a power outage. I pulled in a favour, got a friend of a friend who works with these things to look at it &#8212; but he couldn&#8217;t fix it.<\/p>\n<p>After much googling<span style=\"color: #ff6600;\">*<\/span> I learnt that there&#8217;s a &#8220;cookie&#8221; in Non-Volatile RAM (NVRAM) which very few people know about since it&#8217;s factory-set. If NVRAM is wiped, you have a problem. You need to connect to the Cisco using the <a href=\"http:\/\/www.hardwarebook.info\/Cisco_Console_(9)\" target=\"_blank\">right kind of cable<\/a>, a terminal program, and 9600,N,8,1.<\/p>\n<p>If your cookie is cleared, no problem. If it is corrupt, though, you will need to <a href=\"http:\/\/ers.pp.ru\/cisco\/priv.html\" target=\"_blank\">calculate the password<\/a> to be able to change the corrupted bits.<\/p>\n<blockquote>\n<pre>System Bootstrap, Version 11.1(7)AX [kuong (7)AX], EARLY DEPLOYMENT RELEASE SOFTWARE (fc2)\r\nCopyright (c) 1994-1996 by cisco Systems, Inc.\r\nFirst location in NVRAM fails ... cannot size NVRAM<\/pre>\n<pre>Warning: monitor nvram area is corrupt ... using default values<\/pre>\n<pre>Bad checksum on cookie structure, resorting to backup copy<\/pre>\n<pre>Warning: Cookie information is corrupt\r\nenvironment write to NVRAM failed\r\nC1600 processor with 2048 Kbytes of main memory<\/pre>\n<pre>(Here I hit Ctrl-Break)<\/pre>\n<pre>monitor: command \"boot\" aborted due to user interrupt\r\nrommon 1 &gt; cookie<\/pre>\n<pre>Bad checksum on cookie structure, resorting to backup copy<\/pre>\n<pre>Warning: Cookie information is corrupt<\/pre>\n<pre>cookie:\r\n00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\r\n00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<\/pre>\n<pre>rommon 2 &gt; priv\r\nPassword: (This would be 0000 for the above cookie, otherwise you need to calculate it)<\/pre>\n<pre>Bad checksum on cookie structure, resorting to backup copy<\/pre>\n<pre>Warning: Cookie information is corrupt\r\nYou now have access to the full set of monitor commands.\r\nWarning: some commands will allow you to destroy your\r\nconfiguration and\/or system images and could render\r\nthe machine unbootable.<\/pre>\n<pre>rommon 3 &gt; cookie\r\n\r\nView\/alter bytes of serial cookie by field --\r\nInput hex byte(s) or: CR -&gt; skip field; ? -&gt; list values\r\ninterfaces soc 0: 00\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 (unknown)\r\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &gt; 01\r\n\r\nvendor: 00\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 (unknown)\r\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &gt; 01\r\n\r\nethernet Hw address: 00 00 00 00 00 00\r\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &gt; d5 aa 96 de aa eb (Anybody recognise this?)\r\n\r\nprocessor: 00\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 (PAN)\r\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &gt; 09\r\n\r\nHw rework: 00 00 00 00\r\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &gt; 00 00 00 01\r\n\r\ninterfaces soc 1: 00\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 (unknown)\r\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &gt; 02\r\n\r\nunused 1: 00 00\r\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &gt; 00 00\r\n\r\nBCD-packed 8-digit serial #: 00 00 00 00\r\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &gt; 00 0d 8c f3\r\n\r\nunused 2: 00 00 00 00 00 00 00 00 00\r\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &gt; \r\n\r\ncapabilities (future): 00 00\r\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &gt; \r\n\r\ncookie version #: 00\r\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &gt; 01<\/pre>\n<\/blockquote>\n<p>Now, you should be able to<\/p>\n<blockquote>\n<pre>rommon 4 &gt; sync\r\nrommon 5 &gt; boot\r\nprogram load complete, entry point: 0x4018060, size: 0x1da950<\/pre>\n<\/blockquote>\n<p>But instead what happened was<\/p>\n<blockquote>\n<pre>rommon 4 &gt; sync\r\nenvironment write to NVRAM failed<\/pre>\n<\/blockquote>\n<p>So I pulled the cover, found the <a href=\"http:\/\/www.dee.hcmut.edu.vn\/vn\/bomon\/bmdientu\/tailieu\/datasheet\/EEPROM\/28C64.PDF\" target=\"_blank\">28HC64 8k x 8 CMOS EEPROM<\/a>, bought a new EEPROM and a socket from <a href=\"http:\/\/www.communica.co.za\" target=\"_blank\">Communica<\/a>, performed the appropriate transplant, and all is now well.<\/p>\n<p>Now here&#8217;s where a bit of black magic slips in. I had to do this the previous time, and after much struggling I found that I also had to do it this time. And I have no idea where this information comes from, but it&#8217;s in my notes from 2005.<\/p>\n<p>The first time the router boots up, go<\/p>\n<blockquote>\n<pre>&gt; enable\r\n# configure terminal\r\n(config)# config-register 0x2142\r\n(config)# end\r\n# write\r\n# reload<\/pre>\n<\/blockquote>\n<p>And then repeat with the original 0x2102 value. Then proceed to configure the router. I didn&#8217;t do this, and all was well, except that the configuration interface would not accept &#8220;ip route&#8221; commands, and of course the router wouldn&#8217;t. Route, that is.<\/p>\n<p>There. Now you know as much as I do. Ask if you need to know how to actually configure the router.<\/p>\n<p><span style=\"color: #ff6600;\">*<\/span> Actually, &#8220;googling&#8221; is rather generic since I found <a href=\"http:\/\/www.tech-recipes.com\/rx\/982\/recovery-eprom-cookie-on-router-cisco\/\" target=\"_blank\">this page<\/a> via altavista, not google.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Long geeky post alert. You probably don&#8217;t want to read this unless your Cisco is dead and you got here via google or something). A number of years ago (May 2005, to be exact) Tanya&#8217;s Cisco 1600 (diginet leased-line router) went funny after a power outage. I pulled in a favour, got a friend of a friend who works with these things to look at it &#8212; but he couldn&#8217;t fix it. After much googling* I learnt that there&#8217;s a &#8220;cookie&#8221; in Non-Volatile RAM (NVRAM) which very few people know about since it&#8217;s factory-set. If NVRAM is wiped, you have&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-800","post","type-post","status-publish","format-standard","hentry","category-geek"],"_links":{"self":[{"href":"http:\/\/www.retro.co.za\/blog\/index.php?rest_route=\/wp\/v2\/posts\/800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.retro.co.za\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.retro.co.za\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.retro.co.za\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.retro.co.za\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=800"}],"version-history":[{"count":14,"href":"http:\/\/www.retro.co.za\/blog\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions"}],"predecessor-version":[{"id":828,"href":"http:\/\/www.retro.co.za\/blog\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions\/828"}],"wp:attachment":[{"href":"http:\/\/www.retro.co.za\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.retro.co.za\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.retro.co.za\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}