Jokn
Posts: 2
Joined: Tue Sep 11, 2012 12:39 am

RasPi Wifi AP/ TFTP / Ser2Net

Tue Sep 11, 2012 1:40 am

My first project with my shiny new Raspberry Pi was to create a tool to make my job easier. I'm a network technician for a large ISP. Often times I run into equipment that has been installed in difficult to access or non-ideal conditions (outdoor cell tower cabinets). Standing around with a cable connected to my laptop isn't always the easiest or most fun to do. When equipment fails and needs to be replaced and reconfigured, I'd much rather have a wireless way to connect and sit in my truck or a more comfortable/safer spot. Summers here reach 43C and Winters get below freezing at times, especially in the middle of the night when network maintenance is done.

Hardware I used:
Raspberry Pi
Prolific PL2303 USB to Serial adapter
Ralink RT5370 Wifi Adapter

Both USB devices were supported right out of the box. I didn't have to install any specific drivers.

First thing I did was remove the GUI from the Wheezy install and get rid of some packages I didn't need. This step isn't necessary, but I'm kind of OCD about what's installed on my linux machines. The following thread has some useful information: http://www.raspberrypi.org/phpBB3/viewt ... 5&p=126875

Next, I turned the RasPi into a wifi AP using this guide: http://sirlagz.net/?p=589

Once the WiFi AP was up and working, I installed ser2net and configured it for the different console settings I needed based on the devices. Some of the devices I work on don't use the default 9600 baud rate. I used the following guide and adapted it to my needs: http://mellowd.co.uk/ccie/?tag=ser2net

The last step was to get my tftp server setup on the LAN port. I set a static IP on eth0 and copied various files into my tftpboot directory (Cisco IOS and other router files). I used the following guide to setup the tftp. http://www.davidsudjiman.info/2006/03/2 ... in-ubuntu/


Next on my todo list is to find a good solution for a battery pack. There's usually always an AC outlet wherever I'm working, but I'd rather have a battery powered device to cut down on wiring, or for when there is no AC outlet. I'd like to connect a couple cables and then go find a comfortable spot to sit.

MmmPi
Posts: 61
Joined: Sun Aug 21, 2011 4:43 am

Re: RasPi Wifi AP/ TFTP / Ser2Net

Tue Sep 11, 2012 7:55 pm

Nice use. Run into any problems with your setup?
RasPi hooked to a cell tower would make a nice picture for a Roaming RasPi series.
.

Jokn
Posts: 2
Joined: Tue Sep 11, 2012 12:39 am

Re: RasPi Wifi AP/ TFTP / Ser2Net

Thu Sep 13, 2012 4:43 am

MmmPi wrote:Nice use. Run into any problems with your setup?
RasPi hooked to a cell tower would make a nice picture for a Roaming RasPi series.
So far everything has been working great. It boots up quickly and the TFTP worked to rescue one of my personal routers when I accidentally erased the flash trying to test the TFTP. I'm not sure what a "Roaming RasPi series" is? Here's a picture of my initial tests though.

http://i.imgur.com/vsiEM.jpg

duaneo
Posts: 1
Joined: Sat Dec 22, 2012 7:20 pm

Re: RasPi Wifi AP/ TFTP / Ser2Net

Sat Dec 22, 2012 7:22 pm

Has anyone looked into a bluetooth option for when people get up set with you fire up a wifi access point?

--Duaneo

rtroman
Posts: 3
Joined: Tue Jul 31, 2012 3:46 pm

Re: RasPi Wifi AP/ TFTP / Ser2Net

Thu May 02, 2013 12:45 pm

hi, i got mine to auto detect when connecting to cisco consoles, by using udev. basiclly get it to see the serial via udev, then run+= a script to start minicom (see udev documentation). I found you had to use a script to call a script to start minicom ? no idea why, and i used screen to "detach" the process from the tty in case i get dissconnected. I also run a script in minicom, to send returns so it loggs in etc. You can capture the output to a file too if that helps.

Return to “Networking and servers”