<?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>IT blog &#187; securecrt</title>
	<atom:link href="http://vmnf.no-ip.org/itblog/tag/securecrt/feed/" rel="self" type="application/rss+xml" />
	<link>http://vmnf.no-ip.org/itblog</link>
	<description>Misadventures in the IT area...</description>
	<lastBuildDate>Sun, 04 May 2014 09:38:05 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9</generator>
	<item>
		<title>Versatek VX-1000MDI recovery</title>
		<link>http://vmnf.no-ip.org/itblog/versatek-vx-1000mdi-recovery/</link>
		<comments>http://vmnf.no-ip.org/itblog/versatek-vx-1000mdi-recovery/#comments</comments>
		<pubDate>Fri, 02 May 2014 09:53:42 +0000</pubDate>
		<dc:creator><![CDATA[Vitor M. N. Fernandes]]></dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[basic boot]]></category>
		<category><![CDATA[console terminal]]></category>
		<category><![CDATA[factory defaults]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[securecrt]]></category>
		<category><![CDATA[telnet session]]></category>
		<category><![CDATA[versatek vx-1000mdi]]></category>
		<category><![CDATA[web interface]]></category>
		<category><![CDATA[xmodem transfer]]></category>

		<guid isPermaLink="false">http://vmnf.no-ip.org/itblog/?p=111</guid>
		<description><![CDATA[Versatek VX-1000MDI recovery This is my second post. I hope I can share further experiences I am having so I can help others facing similar issues. Versa Technologies, Inc. VX-1000MDI DSLAM I&#8217;ve got a Versa Technologies, Inc. VX-1000MDI so I could finally simulate a WAN ADSL connection similar to those that ISPs provide to home [&#8230;]]]></description>
				<content:encoded><![CDATA[<h1>Versatek VX-1000MDI recovery</h1>
<p>This is my second post. I hope I can share further experiences I am having so I can help others facing similar issues.</p>
<h2>Versa Technologies, Inc. VX-1000MDI DSLAM</h2>
<p>I&#8217;ve got a Versa Technologies, Inc. VX-1000MDI so I could finally simulate a WAN ADSL connection similar to those that ISPs provide to home Internet users. Device is a DSLAM (Digital Subscriber Line Access Multiplexer) 24 port ADSL 2+ concentrator. ADSL ports are available via a RJ21 female connector. I will need a breakout cable or similar to be able to connect my ADSL router to it! Those 24 ADSL lines share a 100Mbps connection to network (bridge only) via a standard RJ45 port. There is also available a serial Console terminal port via a DE9 male connector.</p>
<table border="0">
<tbody>
<tr>
<td><a id="1" class="highslide" style="margin: 0 0 0px 0px" title="Versatek VX-1000MDI - Back panel" href="/file2.php?s=itblog_2&amp;fn=Versatek_VX-1000MDI_back_2.jpg"><img src="/file2.php?s=itblog_2&amp;fn=Versatek_VX-1000MDI_back.jpg" alt="" /></a><br />
Versatek VX-1000MDI &#8211; Back panel</td>
</tr>
<tr>
<td><a id="1" class="highslide" style="margin: 0 0 0px 0px" title="Versatek VX-1000MDI - Inside case" href="/file2.php?s=itblog_2&amp;fn=Versatek_VX-1000MDI_inside_2.jpg"><img src="/file2.php?s=itblog_2&amp;fn=Versatek_VX-1000MDI_inside.jpg" alt="" /></a><br />
Versatek VX-1000MDI &#8211; Inside case</td>
</tr>
<tr>
<td><a id="1" class="highslide" style="margin: 0 0 0px 0px" title="Versatek VX-1000MDI - Front panel" href="/file2.php?s=itblog_2&amp;fn=Versatek_VX-1000MDI_front_2.jpg"><img src="/file2.php?s=itblog_2&amp;fn=Versatek_VX-1000MDI_front.jpg" alt="" /></a><br />
Versatek VX-1000MDI &#8211; Front panel</td>
</tr>
</tbody>
</table>
<p><span id="more-111"></span></p>
<h2>Connecting to device via serial Console terminal</h2>
<p>Unfortunately device was DOA (Dead On Arrival). I was able to turn it on, leds and fans on and connect via a serial Console terminal (found settings printed on device chassis: 38400 8-N-1). Connection was made with an USB &#8211; COM adapter. (If you wish you can look at <a href="http://vmnf.no-ip.org/itblog/how-to-setup-a-serial-console-connection/">How to Setup a serial Console connection</a>.)</p>
<table border="0">
<tbody>
<tr>
<td><img src="/file2.php?s=itblog_2&amp;fn=Connection-Diagram_Serial.png" alt="" /><br />
Serial Console terminal connection diagram</td>
</tr>
</tbody>
</table>
<h2>SecureCRT Console terminal connection to VX-1000MDI</h2>
<p>I got this information from device output:</p>
<pre>NBfz

Helium 5x0/400 PP boot v1.5

SDRAM size = 0x2000000
Finding flashfs partition...FAILED
*** No valid flashfs partitions found in flash
ERR: Flash boot failed.
NBb

Helium 500/520 NP Network boot v1.15 (FLASH)

MAC 00:30:50:03:41:FF
SDRAM 0x02000000 bytes

D(Hold '*' during reset for prompt)

Using LAN recovery mode

Booting from auto-select source
Boot from Ethernet Port0
boot
boot
boot
boot
(...)
</pre>
<p>&nbsp;</p>
<p>Device flash was probably cleaned up before shipping (&#8220;No valid flashfs partitions&#8230;&#8221;). After start-up device keeps trying to boot without success from network. I contacted Versatek (<a href="http://www.versatek.com/" target="_blank">http://www.versatek.com/</a>) and even not buying from them they were very nice indeed and delivered what I needed to get it back to work:</p>
<pre>basicboot.zip (379,198 bytes)
flash.zip (1,446,046 bytes)
Uploading boot-firmware on VX1000MDILD - console.pdf (243,764 bytes)
</pre>
<p>&nbsp;</p>
<p>Due to some awkward hardware incompatibility (connecting with an USB &#8211; COM adapter) I was unable to send a &#8220;<code>space</code>&#8221; while device was booting or even an &#8220;<code>*</code>&#8221; to get a boot selection prompt. After some tries with multiple softwares I removed hardware control flow from SecureCRT Console terminal software.</p>
<table border="0">
<tbody>
<tr>
<td><img src="/file2.php?s=itblog_2&amp;fn=SecureCRT_Flow-Control.png" alt="" /><br />
SecureCRT removing flow control options(Options &#8211; Session Options &#8211; Connection &#8211; Serial)</td>
</tr>
</tbody>
</table>
<p>Device started to listen to &#8220;<code>*</code>&#8221; (and / or &#8220;<code>space</code>&#8220;) during boot phase!</p>
<pre>(...)
DBoot from Ethernet, or Flash? (E/F)It appears you loaded the network boot program from a flash boot
Are you sure you want to boot to flash ?
</pre>
<p>&nbsp;</p>
<p>Booting from Flash</p>
<pre>NBfz

Helium 5x0/400 PP boot v1.5

SDRAM size = 0x2000000
Finding flashfs partition...FAILED
*** No valid flashfs partitions found in flash
ERR: Flash boot failed.
</pre>
<p>&nbsp;</p>
<p>Since boot to flash was not ok I tried Ethernet recovery mode but unfortunately without success also. I had device connected to a simple network with TFTP32 (available from <a href="http://tftpd32.jounin.net/" target="_blank">http://tftpd32.jounin.net/</a> ) running as TFTP server and simultaneously as DHCP server but device never requested an IP with this setup. I confirmed that both DHCP and TFTP were working with other system.</p>
<table border="0">
<tbody>
<tr>
<td><img src="/file2.php?s=itblog_2&amp;fn=Connection-Diagram_Network.png" alt="" /><br />
Network connection diagram</td>
</tr>
</tbody>
</table>
<p>TFTP32 by Ph. Jounin</p>
<table border="0">
<tbody>
<tr>
<td><img src="/file2.php?s=itblog_2&amp;fn=TFTP32.png" alt="" /><br />
TFTP32 by Ph. Jounin</td>
</tr>
</tbody>
</table>
<p>Used the following settings:</p>
<table style="width: auto" border="0">
<tbody>
<tr>
<td><a id="2" class="highslide" style="margin: 0 0 0px 0px" title="TFTP32: Global settings" href="/file2.php?s=itblog_2&amp;fn=TFTP32_Settings-Global_2.png"><img src="/file2.php?s=itblog_2&amp;fn=TFTP32_Settings-Global.png" alt="" /></a><br />
TFTP32: Global settings</td>
<td><a id="2" class="highslide" style="margin: 0 0 0px 0px" title="TFTP32: TFTP settings" href="/file2.php?s=itblog_2&amp;fn=TFTP32_Settings-TFTP_2.png"><img src="/file2.php?s=itblog_2&amp;fn=TFTP32_Settings-TFTP.png" alt="" /></a><br />
TFTP32: TFTP settings</td>
<td><a id="2" class="highslide" style="margin: 0 0 0px 0px" title="TFTP32: DHCP settings" href="/file2.php?s=itblog_2&amp;fn=TFTP32_Settings-DHCP_2.png"><img src="/file2.php?s=itblog_2&amp;fn=TFTP32_Settings-DHCP.png" alt="" /></a><br />
TFTP32: DHCP settings</td>
</tr>
</tbody>
</table>
<p>Still I found documentation about a similar device that seemed able to grab an IP, connect to TFTP server and boot in LAN recovery mode.</p>
<pre>(...)
boot
boot
reply
IP 192.168.1.66
Server 192.168.1.234 ()
Booting 'BOOT.bin'
.........................(...)
</pre>
<p>&nbsp;</p>
<p>I had no luck doing above.</p>
<h2>Starting VX-1000MDI recovery process</h2>
<h3>File uploading via xmodem</h3>
<p>Both (Ethernet and Flash) were not working for me so I went for &#8220;<code>space</code>&#8221; on boot option and this time I was able to issue <code>xmodem</code> command and try a send xmodem transfer. First I sent <code>basicboot.bin</code> (from <code>basicboot.zip</code>).</p>
<table style="display: inline" border="0">
<tbody>
<tr>
<td><img src="/file2.php?s=itblog_2&amp;fn=SecureCRT_Transfer-Xmodem.png" alt="" /><br />
SecureCRT using send xmodem transfer</td>
</tr>
</tbody>
</table>
<table style="display: inline" border="0">
<tbody>
<tr>
<td><img src="/file2.php?s=itblog_2&amp;fn=SecureCRT_Transfer-Xmodem_File-Dialog.png" alt="" /><br />
SecureCRT selecting basicboot.bin</td>
</tr>
</tbody>
</table>
<p>Output was:</p>
<pre>NBrNBfz

Helium 5x0/400 PP boot v1.5

SDRAM size = 0x2000000
Key pressed, stopping boot.

Entered console ... User request.
]xmodem                                                                             

Starting xmodem transfer.  Press Ctrl+C to cancel.
  100%     576 KB    2 KB/s 00:03:15       0 Errors

Image relocated - type quit to boot
]quit
</pre>
<p>&nbsp;</p>
<p>At this time I was finally with some hope to get this device back in working order. After getting &#8220;Quantum&#8221; prompt I was able to start procedure described on pdf I got from manufacturer. First cleaned up flash partitions:</p>
<pre>NP
i100%
Allocatable memory starts @ 0x10a000, end @ 0x2000000
No, or invalid, configuration information in EEPROM - trying FLASH
Valid configuration (size 256)
Flash Rewrite version 9.0.7.7 (4th Nov 2004) 
BSP: He500/G24 v1.2.0.5
CSP: He5x0/He400 CSP v1.0 (ISOS 9.0)
Copyright (c) 2004
Quantum&gt; 
NP software version is 0x00000900 (reply took 5us)

Quantum&gt; flashfs wipe 1
Quantum&gt; flashfs wipe 2
Quantum&gt; flashfs wipe 3
Quantum&gt;
</pre>
<p>&nbsp;</p>
<p>Hard rebooted device and this time loaded <code>flash.bin</code> (from <code>flash.zip</code>):</p>
<pre>NBrNBfz
Helium 5x0/400 PP boot v1.5

SDRAM size = 0x2000000
Key pressed, stopping boot.

Entered console ... User request.
]xmodem                            

Starting xmodem transfer.  Press Ctrl+C to cancel.
  100%    1600 KB    3 KB/s 00:08:14       0 Errors

Image relocated - type quit to boot
]quit
</pre>
<p>&nbsp;</p>
<p>Device now got a brand new firmware&#8230;</p>
<pre>NP
i 100%
Allocatable memory starts @ 0x4d7c00, end @ 0x2000000
No, or invalid, configuration information in EEPROM - trying FLASH
Valid configuration (size 256)
Ethernet gateway version 9.0.7.7 (4th Nov 2004) 
BSP: He500/G24 v1.2.0.5
CSP: He5x0/He400 CSP v1.0 (ISOS 9.0)
Copyright (c) 2004 Versa Technology, Inc.

NP software version is 0x00000900 (reply took 6us)
SNMP Research SNMP Agent Resident Module Version 15.3.1.7 
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 SNMP Research, Inc.
Failed to open //isfs/im.conf - restoring from //expand/isfs/im.conf.factory
                                                               
         ##       ##          #######       #####    ##        
         ##       ##          #########    #######   ##        
          ##     ##           ##     ##   ##    ###  ##        
          ##     ##  ##   ##  ##      ##  ##     ##  ##        
           ##   ##   ### ###  ##      ##  ####       ##        
           ##   ##    ## ##   ##      ##   ######    ##        
           ##   ##     ###    ##      ##     #####   ##        
            ## ##      ###    ##      ##        ###  ##        
            ## ##      ###    ##      ##  ##     ##  ##        
             ###      ## ##   ##     ##   ###   ###  ##        
             ###     ### ###  #########    #######   ########  
             ###     ##   ##  #######       #####    ########  
                                                               
Login: admin
Password: *****

Login successful

--&gt;
</pre>
<p>&nbsp;</p>
<h3>Fixing device configuration</h3>
<p>I still get some errors (see &#8220;Failed to open&#8230; &#8220;) that will be fixed with a minimal configuration restore.</p>
<pre>--&gt; console enable 
Switching from CLI to console mode - type 'exit' to return

Quantum&gt; flashfs update
Updating flash filing system ...
done
Quantum&gt; exit

Returning to CLI mode 

--&gt; system config clear 
Restoring backup configuration //isfs/im.conf.minimal
To finish clearing, please save configuration and restart.
*Note that subsequent changes this session will NOT be saved*.
--&gt; system config save

--&gt; system restart
</pre>
<p>&nbsp;</p>
<p>Restarting&#8230;</p>
<pre>NBpNBfz

Helium 5x0/400 PP boot v1.5

SDRAM size = 0x2000000
Finding flashfs partition...done.
NP
i 100%
Allocatable memory starts @ 0x371900, end @ 0x2000000
No, or invalid, configuration information in EEPROM - trying FLASH
Valid configuration (size 256)
Ethernet gateway version 9.0.7.7 (4th Nov 2004) 
BSP: He500/G24 v1.2.0.5
CSP: He5x0/He400 CSP v1.0 (ISOS 9.0)
Copyright (c) 2004 Versa Technology, Inc.

NP software version is 0x00000900 (reply took 6us)
SNMP Research SNMP Agent Resident Module Version 15.3.1.7 
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 SNMP Research, Inc.


 !!!!!!!!! No users are configured with sufficient access to create other
 !WARNING! users, so this UART session is being logged in automatically with
 !!!!!!!!! sufficient access.



--&gt;
</pre>
<p>&nbsp;</p>
<p>No errors now but also no users on device. Next step will add a default user on device.</p>
<h3>Resetting device to factory default settings</h3>
<p>I will now restore factory default settings.</p>
<pre>--&gt; system config restore factory
Restoring factory defaults...

--&gt; system config save 

--&gt; system restart
</pre>
<p>&nbsp;</p>
<p>New restart with factory defaults. No errors and with a default user named admin with password admin.</p>
<pre>NBpNBfz

Helium 5x0/400 PP boot v1.5

SDRAM size = 0x2000000
Finding flashfs partition...done.
NP
i 100%
Allocatable memory starts @ 0x371900, end @ 0x2000000
No, or invalid, configuration information in EEPROM - trying FLASH
Valid configuration (size 256)
Ethernet gateway version 9.0.7.7 (4th Nov 2004) 
BSP: He500/G24 v1.2.0.5
CSP: He5x0/He400 CSP v1.0 (ISOS 9.0)
Copyright (c) 2004 Versa Technology, Inc.

NP software version is 0x00000900 (reply took 7us)
SNMP Research SNMP Agent Resident Module Version 15.3.1.7 
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 SNMP Research, Inc.
                                                               
         ##       ##          #######       #####    ##        
         ##       ##          #########    #######   ##        
          ##     ##           ##     ##   ##    ###  ##        
          ##     ##  ##   ##  ##      ##  ##     ##  ##        
           ##   ##   ### ###  ##      ##  ####       ##        
           ##   ##    ## ##   ##      ##   ######    ##        
           ##   ##     ###    ##      ##     #####   ##        
            ## ##      ###    ##      ##        ###  ##        
            ## ##      ###    ##      ##  ##     ##  ##        
             ###      ## ##   ##     ##   ###   ###  ##        
             ###     ### ###  #########    #######   ########  
             ###     ##   ##  #######       #####    ########  
                                                               
Login: admin
Password: *****

Login successful

--&gt;
</pre>
<p>&nbsp;</p>
<h2>Accessing device via network interface (RJ45 port)</h2>
<p>I am now able to see current device IP configuration. Device is at 192.168.1.253. (I did not try this IP before so I cannot confirm if device was already with this configuration or not.)</p>
<pre>--&gt; ip list interfaces 
 
IP Interfaces:

 ID  |    Name      |    IP Address    |   DHCP   |   Transport
-----|--------------|------------------|----------|----------------
   1 | iplan        | 192.168.1.253    | disabled | 
-------------------------------------------------------------------

--&gt;
</pre>
<p>&nbsp;</p>
<p>I configured my laptop to 192.168.1.1 (with mask 255.255.255.0) and besides being able to access device via serial Console terminal I was now also able to connect to it via both a telnet session and / or its Web interface.</p>
<h3>Telnet session</h3>
<p>Issuing telnet 192.168.1.253 took me to device login screen and just needed to enter default user authentication to get device prompt as serial Console terminal (un: <code>admin</code> and pw: <code>admin</code>).</p>
<pre>$ telnet 192.168.1.253
Trying 192.168.1.253...
         ##       ##          #######       #####    ##
         ##       ##          #########    #######   ##
          ##     ##           ##     ##   ##    ###  ##
          ##     ##  ##   ##  ##      ##  ##     ##  ##
           ##   ##   ### ###  ##      ##  ####       ##
           ##   ##    ## ##   ##      ##   ######    ##
           ##   ##     ###    ##      ##     #####   ##
            ## ##      ###    ##      ##        ###  ##
            ## ##      ###    ##      ##  ##     ##  ##
             ###      ## ##   ##     ##   ###   ###  ##
             ###     ### ###  #########    #######   ########
             ###     ##   ##  #######       #####    ########

Login: admin
Password: *****

Login successful

--&gt;
</pre>
<p>&nbsp;</p>
<h3>Web interface</h3>
<p>Using a common Web browser pointed at 192.168.1.253 I got a login dialog that required same default authentication as previously.</p>
<table border="0">
<tbody>
<tr>
<td><img src="/file2.php?s=itblog_2&amp;fn=VX-1000MDI_Web-Login-1.png" alt="" /><br />
VX-1000MDI Web interface login dialog</td>
</tr>
</tbody>
</table>
<p>After logon&#8230;</p>
<table border="0">
<tbody>
<tr>
<td><img src="/file2.php?s=itblog_2&amp;fn=VX-1000MDI_Web-Interface-2.png" alt="" /><br />
VX-1000MDI Web interface</td>
</tr>
</tbody>
</table>
<p>Device is now fully working and ready to play!</p>
<h2>Comments and suggestions</h2>
<p>As always comments and suggestions are very welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://vmnf.no-ip.org/itblog/versatek-vx-1000mdi-recovery/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to Setup a serial Console connection</title>
		<link>http://vmnf.no-ip.org/itblog/how-to-setup-a-serial-console-connection/</link>
		<comments>http://vmnf.no-ip.org/itblog/how-to-setup-a-serial-console-connection/#comments</comments>
		<pubDate>Fri, 25 Apr 2014 11:32:11 +0000</pubDate>
		<dc:creator><![CDATA[Vitor M. N. Fernandes]]></dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[console terminal]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[hyperterminal]]></category>
		<category><![CDATA[securecrt]]></category>
		<category><![CDATA[serial cable]]></category>
		<category><![CDATA[serial connection]]></category>
		<category><![CDATA[serial port]]></category>

		<guid isPermaLink="false">http://vmnf.no-ip.org/wpblog/?p=5</guid>
		<description><![CDATA[How to Setup a serial Console connection Most managed devices like switches, routers and others allow a direct connection via a serial Console connection. Requirements Console terminal serial port (COM port) A compatible Console terminal can be setup with a PC running Windows or Linux with at least one COM port connector (male type). If [&#8230;]]]></description>
				<content:encoded><![CDATA[<h1>How to Setup a serial Console connection</h1>
<p>Most managed devices like switches, routers and others allow a direct connection via a serial Console connection.</p>
<h2>Requirements</h2>
<h3>Console terminal serial port (COM port)</h3>
<p>A compatible Console terminal can be setup with a PC running Windows or Linux with at least one COM port connector (male type). If your system does not have a COM port you can get an USB – COM adapter to have at least one COM port connector.</p>
<table>
<tbody>
<tr>
<td><img src="/file.php?port_COM2-DB25_COM1-DE9_b.jpg" alt="" />COM2 (DB25 male) and COM1 (DE9 male) ports</td>
<td style="vertical-align: top" rowspan="2"><img src="/file.php?adapter_USB-COM.jpg" alt="" />USB – COM (DE9 male) adapter</td>
</tr>
<tr>
<td><img src="/file.php?port_COM1-COM2-DE9_b.jpg" alt="" />COM1 and COM2 (both DE9 male) ports</td>
</tr>
</tbody>
</table>
<p><span id="more-5"></span></p>
<h3>Device Console port</h3>
<p>Usually Console port on device is DE9 or RJ45 (most Cisco devices) and on older devices can also show as DB25. In this case it can be easily converted to DE9 using an adapter. Multiple configurations may be found.</p>
<table>
<tbody>
<tr>
<td><img src="/file.php?port_Console-RJ45_b.jpg" alt="" />RJ45 Console port</td>
<td style="vertical-align: top" rowspan="3"><img src="/file.php?adapter_D25-DE9.jpg" alt="" />DB25 (male) to DE9 (female) adapter</td>
</tr>
<tr>
<td><img src="/file.php?port_Console-DB25_b.jpg" alt="" />DB25 (female) Console port</td>
</tr>
<tr>
<td><img src="/file.php?port_Console-DE9_b.jpg" alt="" />DE9 (male) Console port</td>
</tr>
</tbody>
</table>
<h3>Serial cable</h3>
<p>Serial cables usually have 2 DE9 connectors (one male / female and other female) or a DE9 (female) and a RJ45 connector (this one is also known as a Cisco rollover cable).</p>
<table>
<tbody>
<tr>
<td><img src="/file.php?cable_Serial-DE9-male-female_b.jpg" alt="" />DE9 cable (male – female) cable</td>
<td><img src="/file.php?cable_Serial-DE9-female-female_b.jpg" alt="" />DE9 cable (female – female) cable</td>
<td><img src="/file.php?cable_Cisco-Rollover.jpg" alt="" />Cisco rollover cable</td>
</tr>
</tbody>
</table>
<p>On Windows you can use HyperTerminal or SecureCRT and on Linux you can use Minicom.<br />
You must configure connection so both sides expect same data speed and protocol. A typical configuration to connect to a Cisco switch or router is 9600 8 N 1 (meaning 9600 baud, 8 data bits, no parity and 1 stop bit). Console terminal must be setup with these settings so communication to device is successful.</p>
<h2>Console terminal</h2>
<h3>HyperTerminal</h3>
<p>HyperTerminal (from Windows XP) can be used as a Console terminal also on other Windows versions (tested under Windows 7). You just need to grab application files from a Windows XP. You will need the following files:</p>
<table>
<tbody>
<tr>
<td style="vertical-align: top">
<pre>- hypertrm.exe: main executable file
- hypertrm.dll: library file
- hticons.dll: icons file 
- hypertrm.hlp: help file
- hypertrm.chm: help file
</pre>
</td>
<td style="vertical-align: top"><img src="/file.php?HyperTerminal_File-List.png" alt="" />HyperTerminal: File list</td>
</tr>
</tbody>
</table>
<p>&#8230; And they will be in several places on Windows XP Install like c:\windows, c:\windows\system32 and c:\windows\help. You can pack and copy them all into a single folder and you are ready to go, just start <code>hypertrm.exe</code>.</p>
<table>
<tbody>
<tr>
<td><img src="/file.php?HyperTerminal_New-Connection.png" alt="" /><br />
Windows XP HyperTerminal</td>
</tr>
</tbody>
</table>
<p>Now I will setup a connection to a Cisco 2651 router as example. I will be using an USB to Serial adapter to have at least one COM serial port and a typical Cisco rollover cable to connect to router Console port.</p>
<table>
<tbody>
<tr>
<td><img src="/file.php?Connection-Diagram.png" alt="" /><br />
Connection diagram</td>
</tr>
</tbody>
</table>
<p>You should confirm your COM port number. If your computer as one or two ports they are usually ports 1 and 2. On this example I will be using COM8 given by an USB – COM adapter (port number can be seen on Windows 7 on “Device Manager” – “Ports (COM&amp;LPT)”.</p>
<table>
<tbody>
<tr>
<td><img src="/file.php?Device-Manager_Ports.png" alt="" /><br />
COM port number shown on “Device Manager” – “Ports (COM&amp;LPT)”</td>
</tr>
</tbody>
</table>
<p>Give connection a name (“Cisco serial Console”) and press OK. (You can choose any icon available.) After you connect using your available COM port (“COM8” for me) and press OK.</p>
<table>
<tbody>
<tr>
<td><img src="/file.php?HyperTerminal_Connection-Name.png" alt="" /><br />
HyperTerminal: New connection name</td>
<td><img src="/file.php?HyperTerminal_Connect-Port.png" alt="" /><br />
HyperTerminal: Choose port to connect to device Console</td>
</tr>
</tbody>
</table>
<p>Now we must configure expected device settings on “Port Settings”. Those settings can be found sometimes printed on device chassis, device documentation and / or available from manufacturer website. Most Cisco devices like 2651 router use 9600 baud (“Bits per Second”), 8 bits (“Data bits”), “No Parity” and 1 “Stop bit”. Flow control can be important, depending on your COM port hardware, if you wish to do a device recovery and need to send a “space” or other char while device is booting. For now I will leave this as is (flow control by hardware). Change “Bits per second” to 9600, from defaults, and press OK.</p>
<table>
<tbody>
<tr>
<td><img src="/file.php?HyperTerminal_Port-Settings.png" alt="" /><br />
HyperTerminal: Choose serial Console port settings</td>
</tr>
</tbody>
</table>
<p>Be sure that cable or cables are firmly connected and turn on your device. Connection should show now 9600 8-N-1 on status bar and output from device should start to be seen on HyperTerminal Console terminal also. When requested you can login into your device and start working… (You may need to press Enter sometimes to see output.)</p>
<table>
<tbody>
<tr>
<td><img src="/file.php?HyperTerminal_Session.png" alt="" /><br />
HyperTerminal: Console terminal with a Cisco 2651 and login</td>
</tr>
</tbody>
</table>
<h3>SecureCRT</h3>
<p>SecureCRT can be used for telnet, ssh connections but also as a serial Console terminal. You can get it from <a href="http://www.vandyke.com/products/securecrt/">Vandyke Software &#8211; SecureCRT</a> with a 30-day evaluation license. Setup is same as other Windows applications.<br />
Configuration is also very similar to one made with HyperTerminal. First we create a new Session.</p>
<table>
<tbody>
<tr>
<td><img src="/file.php?SecureCRT_New-Connection.png" alt="" /><br />
Vandyke SecureCRT</td>
</tr>
</tbody>
</table>
<p>A wizard will start to helps us set all relevant options: a) Protocol: Serial, b) Settings: Port: COM8 (use your COM port number) and Baud rate: 9600, keep other settings on default: Data bits: 8, Parity: None and Stop bits: 1 and finally c) set Session name: “Cisco serial Console”. After all setup you can start your serial Console terminal pressing Connect.</p>
<table>
<tbody>
<tr>
<td><img src="/file.php?SecureCRT_Protocol.png" alt="" /><br />
a) SecureCRT: Choose Protocol</td>
</tr>
<tr>
<td><img src="/file.php?SecureCRT_Port-Settings.png" alt="" /><br />
b) SecureCRT: Choose Settings</td>
</tr>
<tr>
<td><img src="/file.php?SecureCRT_Connection-Name.png" alt="" /><br />
c) Secure CRT: New Session name</td>
</tr>
<tr>
<td><img src="/file.php?SecureCRT_Connect.png" alt="" /><br />
SecureCRT: Connect will start a serial Console terminal</td>
</tr>
</tbody>
</table>
<p>Finally&#8230;</p>
<table>
<tbody>
<tr>
<td><img src="/file.php?SecureCRT_Session.png" alt="" /><br />
SecureCRT: Console terminal with a Cisco 2651 and login</td>
</tr>
</tbody>
</table>
<h2>Comments</h2>
<p>Comments and suggestions to improve this entry are very welcome…</p>
]]></content:encoded>
			<wfw:commentRss>http://vmnf.no-ip.org/itblog/how-to-setup-a-serial-console-connection/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
