Monday, January 31, 2011

Configuring Ubuntu Linux as a Cisco console server

Written By James Ravenscroft


It can be a real headache to configure practice labs using a single console cable. An alternative to this is purchasing and configuring a dedicated Cisco access server such as the 2509 or 2511. This is beneficial since you will more than likely run across these types of devices at some point in a production environment, but assuming you don't want to spend the $$$, you can set up a Ubuntu (or other Linux) box to function as an access server using materials you may already have on hand (or which are inexpensive to purchase). I have outlined the steps below using Ubuntu 10.4:

1) Get a USB 2.0 hub, USB-to-serial adapters (something like this should do: http://www.usbgear.com/computer_cable_details.cfm?sku=765288&cats=199&catid=199%2C601%2C461) and Cisco-compatible serial rollover cables.

2) Connect the rollover cables to your USB-to-serial adapters then connect the adapters to the USB hub. Connect the USB hub to a USB port on the Ubuntu box and power it up or reboot. Check under /dev for ttyUSB devices- there should be one listed for each of the USB-to-serial adapters (I have two currently connected to my 4-port USB hub). If these are not present, try connecting the USB-to-serial adapters directly to your USB ports temporarily.

user@Ubuntu64:~$ ls -al /dev | grep 'ttyUSB'
crw-rw----   1 root dialout 188,   0 2011-01-29 12:43 ttyUSB0
crw-rw----   1 root dialout 188,   1 2011-01-29 12:43 ttyUSB1

3) Install and configure minicom, a command-line modem/serial communication program.

$sudo apt-get install minicom
$sudo minicom -s

Serial port setup, option A, change serial port listed to ttyUSB<x> where <x> is the number of the serial port you want to configure, then option E, change to 9600 8N1 (C, Q, Enter); at main screen, select "Save setup as.." and name the configuration to something easy to remember/type later

Once you have saved all your configurations, navigate to /etc/minicom. Each of your configurations should be present as minirc.<configname> where <configname> is the name of each of the configs you entered and saved earlier. Open the files in a text editor to see the configuration which should look like this:

# Machine-generated file - use "minicom -s" to change parameters.
pu port             /dev/ttyUSB0
pu baudrate     9600
pu bits             8
pu parity          N
pu stopbits       1

4) Open a terminal session on your Ubuntu box and launch Minicom ($sudo minicom <configname>). Power up a Cisco device and connect it to each of your cables until you see terminal output from your Cisco device scrolling by in the terminal window. Label the connected cable so that you know which serial-to-USB connection is being used to connect to a given piece of equipment in the future. Do this for each of your minicom configurations until all of your cables are labeled.

Congratulations! You can now connect to your Cisco gear via console cables through your Ubuntu box. Of course it is entirely up to you to ensure that your Ubuntu box is properly configured and secured prior to doing this or anything else on it and you should commit to keeping it properly configured and secure in the future. If you are unwilling or unable to do this, you will want to consider renting live rack time using actual Cisco gear through a site such as http://www.howtonetwork.net or the community rack on http://packetlife.net/ to practice instead. 

Monday, January 24, 2011

OS X Tip: Convert FLAC Files To MP3

If you find yourself in need to convert FLAC files to MP3 on your Mac, ALL2MP3 may be able to help.  This program will convert MPC, APE, WV, FLAC, OGG, WMA, AIF, & WAV files to MP3. You can choose from 4 quality presets for your MP3 output.

Sunday, January 23, 2011

AQEMU review and Tun/Tap setup


Written By James Ravenscroft



Here’s a good general review of AQEMU with some screen shots:

http://www.softpedia.com/reviews/linux/AQEMU-Review-122940.shtml

If you are already familiar with setting up virtualization in Virtual Box and VMWare server, AQEMU will be a snap to set up and use.

One thing the review does not cover in detail is setting up bridging and tun/tap. For that, please see my previous post. Once bridging and tun/tap interfaces are set up (sudo /sbin/ifconfig should show br0 and all the tap interfaces you specified in /etc/network/interfaces ), you will want to configure your virtual machines to use your tun/tap interfaces under the Network tab of each virtual machine.

1) You will probably want to set your network card to RTL8139 since this seems to be very well-supported in most guest OS

2) select Connection Mode of Open a TUN/TAP interface

3) Click the green “plus” to the right of the MAC address field to generate a unique MAC for the given VM’s virtual NIC

4) Uncheck the box beside Tun/Tap Script

5) Type the name of the tap interface to be used by the VM

6) Click Apply at the bottom of the Network tab window

IncrediblePBX - lives up to its name


Written By James Ravenscroft



IncrediblePBX is a customized install of PBX in a Flash which includes loads of additional applications. In addition to being a completely free, full-featured PBX system, you can also set up free calling throughout the US and Canada using Google Voice. It can be installed on commodity systems, including Atom PCs and runs fine virtualized as well. A full write-up is here:

http://nerdvittles.com/?p=712

Call quality is great; I used X-lite 4 with an old $15 headset and mic for my test calls. There are a lot of moving pieces in this software suite and the creators/maintainers stress the importance of really knowing how it all works and maintaining a secure configuration. Enjoy!