• Check out these sites




  • Hackers For Charity

    Social Engineer









    May 14, 2009


    Connect linux to Cisco router via Serial Com Port

    I was having some trouble figureing out how to tty into a router via pc and the serial com ports on the back. I have a rollover rj-45 to serial female adapter only hav eone pc that has the proper ports on it to connect to the router. It just so happens that this pc only has uBUntu installed on it. Had it been windows, I could have just opened Hyper-terminal and been ready to go, but linux is not so easy. Not unless you know what to do. With a little google-fu, I was able to find some info on how to get it working. So here is a “How to connect to a cisco serial port via local pc com port in linux” tutorial.

    From a terminal, type:
    dmesg | grep ttyS

    This shows you the com ports and serial interfaces id’s such as ttyS0, ttyS1, etc.

    (using minicom for speaking to serial interface: sudo apt-get install minicom)

    To start minicom, just type it at the console.
    #minicom (You might have to sudo in order to make/save changes and such if on ubuntu).

    Hit CTRL-A to list the help menu, then Z for main menu of configuration commands.

    Option P for comm parameters. Select 9600 baud , hit enter.

    To configure the default serial com port, select option O, scroll down to serial port, hit enter, then A to change serial interface. Change this to your /dev/ttyS0 or whatever your cable is on. Trial and error if
    you do not know the exact com port. Save your config to defaults, you can even save it to a file name for later use.

    Q to exit, then type minicom again and it should put you at the router console prompt.
    :)



    del.icio.us|Digg|Furl|ma.gnolia|RawSugar|reddit|Spurl|Google|StumbleUpon







    RSS feed for comments on this post. TrackBack URL



    Leave a comment