# Raspberry Pi as Cisco Console Server

**URL:** https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046
**Category:** Lessons Discussion
**Created:** [December 26, 2016, 6:53pm UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046 "2016-12-26T18:53:50Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [December 26, 2016, 6:53pm UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/1 "2016-12-26T18:53:50Z")

</div>

This topic is to discuss the following lesson:

> **[Raspberry Pi as Cisco Console Server](https://networklessons.com/miscellaneous/raspberry-pi-as-cisco-console-server)**
>
> This lesson explains how to turn your Raspberry Pi into a Cisco Console / Terminal server for wired and wireless users.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 6, 2013, 9:59pm UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/2 "2013-11-06T21:59:32Z")

</div>

Where did you purchase your Konig usb to serial adapter?

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [November 11, 2013, 9:57am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/3 "2013-11-11T09:57:43Z")

</div>

Hi Rowell,

I purchased it from some Dutch webshop a couple of years ago, it seems Konig doesn’t sell them anymore (too bad). Best to google for “4 Port USB RS-232” , I’m sure some other vendors still sell them…

Rene

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 11, 2013, 5:35pm UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/4 "2013-11-11T17:35:14Z")

</div>

Got things working. Thanks! Great tutorial.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 19, 2013, 9:00pm UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/5 "2013-11-19T21:00:18Z")

</div>

Thanks for this great write-up; I just put together a very similar setup. I used a StarTech 4-port serial “hub” I bought off Amazon ([http://www.amazon.com/dp/B000YB0NQG/](http://www.amazon.com/dp/B000YB0NQG/)), since the one mentioned in this write-up I could not find in the U.S.; it appears to use the same FTDI chip-set.

One caveat I did run into is UDEV re-assigning what ports were mapped to /dev/ttyUSB\*. I found this out the hard way trying to remotely configure a router and the port no longer worked. Turns out it moved. I found the article below to add UDEV rules to manually map a device symlink to the actual TTY based on the port 'serialID. This has worked well for me so far to keep device symlink the same while “following” what the kernel and UDEV decide to assign it.

[http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/](http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/)

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 19, 2013, 9:16pm UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/6 "2013-11-19T21:16:35Z")

</div>

For US readers:  
You may buy the quad serial to USB from Amazon, using this link:

> **[Amazon.com: Gearmo 4 Port USB to Serial RS232 Adapter FTDI Chipset, Supports Win...](https://www.amazon.com/Gearmo-Serial-Windows-Certified-Drivers/dp/B004ETDC8K)**
>
> Buy Gearmo 4 Port USB to Serial RS232 Adapter FTDI Chipset, Supports Win 11, 10, 8, 7, Linux, Mac w/ESD and Surge Protection: Serial Adapters - Amazon.com ✓ FREE DELIVERY possible on eligible purchases

In case the link changes, here is the name of the item:  
GearMo® 36inch Quad Port FTDI USB to Serial Cable for MA PC Linux with Windows Certified Drivers  
Model # USA-FTDI4X

As of this post, it costs $48.29.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 24, 2013, 12:54am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/7 "2013-11-24T00:54:57Z")

</div>

There’s no need to compile ser2net yourself… just install from the Debian/Raspbian repository:  
$ sudo apt-cache search ser2net  
ser2net - Allows network connections to serial ports  
$ sudo apt-get install ser2net

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 25, 2013, 4:54am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/8 "2013-11-25T04:54:24Z")

</div>

Hey great write up! I’m using ATEN adapter, using PL2303 driver.  
It’s working to the point I can telnet to the port and it opens the console on a Cisco switch, but when I press the ‘enter’ key it seems to send the keystroke twice.  
If I press ‘ctrl - enter’ it seems to send one ‘enter’ to the device.  
This is a problem when entering the username as it enters a blank password and the behaviour can be seen in the enable prompt.  
Any ideas?

2000:telnet:600:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT banner

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 25, 2013, 11:04am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/9 "2013-11-25T11:04:26Z")

</div>

Just adding to my last post… when activating the trace file, the enter key by itself adds a “M” at the end, but when pressing “ctrl + enter” it doesn’t add anything. I’m guessing it’s some sort of special character?

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [November 25, 2013, 11:55am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/10 "2013-11-25T11:55:51Z")

</div>

The ser2net version in the repositories right now is version 2.6-1. The latest version is 2.9-1.

The problem with the 2.6-1 version is that logging doesn’t work, so that’s why I compiled it myself. If you don’t care about logging you save yourself the hassle and just apt-get install it.

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [November 25, 2013, 11:56am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/11 "2013-11-25T11:56:30Z")

</div>

Hi Luke,

Hmm not sure what is wrong. If you use it with putty you have no issues? Or if you use another usb-to-serial device with ser2net?

Rene

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 27, 2013, 9:58am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/12 "2013-11-27T09:58:36Z")

</div>

I have two ATENs and they both have the same problem.  
The adapters work perfectly directly connected to a laptop with Putty or Secure CRT.

Is there a way to re-map the key strokes -\> serial output?

I’ve ordered another USB-Serial adapter with a different chipset to see if it exhibits the same behaviour…

Luke

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 28, 2013, 8:34am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/13 "2013-11-28T08:34:52Z")

</div>

Is there an easy way to test a Serial terminal directly from the Pi without using Ser2Net?

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 28, 2013, 9:22am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/14 "2013-11-28T09:22:44Z")

</div>

Screen works fine with a direct connection from the Pi. Haven’t figured out why Ser2Net has this problem, tried version 2.6 and 2.9. Any ideas?

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 29, 2013, 4:44am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/15 "2013-11-29T04:44:14Z")

</div>

Completely restarted from a fresh copy of raspbian, installed screen and ser2net… If I ssh to the raspberry and use screen or ser2net (by “telnet localhost 2000”) it works fine..  
Problem seems to occur when using telnet from a Windows 8 machine to ser2net across the network. Can anyone else confirm the same behavior?

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 29, 2013, 4:51am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/16 "2013-11-29T04:51:04Z")

</div>

Putty works OK… must be a windows telnet issue, but also occurs with Secure CRT in RAW mode.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 29, 2013, 7:50am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/17 "2013-11-29T07:50:06Z")

</div>

Hi Rene,  
I have a question regarding automatic startup of ser2net versus dnsmasq/hostapd.  
ser2net you added to /etc/rc.local, however for the other two services you used “update-rc.d dnsmasq enable”. Curious, why the difference?  
Thanks  
Luke

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [December 7, 2013, 10:32am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/18 "2013-12-07T10:32:02Z")

</div>

Hey Rene,  
Please delete most of my posts - I feel like I’ve taken over your page and since I’ve narrowed down the issue, most of them aren’t needed.  
Cheers  
Luke

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [February 17, 2014, 5:24am UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/19 "2014-02-17T05:24:40Z")

</div>

Hi All,  
Am using ser2net in my linux device, on telnet session everything works fine,except the arrow keys, and in vi mode i am not able to edit the files. Could you please let me know is this ser2net problem or supporing vt100 or vt102 term code needs to be integrate with ser2net. Am little worrying event vi file edit wont happening for me on telnet session by using ser2net.

Thanks,

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [March 13, 2014, 4:15pm UTC](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046/20 "2014-03-13T16:15:07Z")

</div>

How do exit a ser2net console session?

[Next page](https://forum.networklessons.com/t/raspberry-pi-as-cisco-console-server/1046.md?page=2)
