How To Connect A Cisco Router / Switch to Linux Terminal Using Minicom

When you need to connect a cisco router or a switch to a windows machine you can use the windows default dialer called hyperterminal. But connecting your cisco router or a switch can be hassle as there is no default dialer present in linux.

There is a way to connect your cisco switch or a router to linux using a third party dialer called MINICOM.

Read step by step How To Connect A Cisco Router / Switch to Linux Terminal Using Minicom

I am assuming you are using ubuntu linux. If not you can download MINICOM from here.

Step1.) Install Minicom in your ubuntu linux.

sudo apt-get install minicom

install Connect A Cisco Router  Switch to Linux Terminal Using Minicom

Step2.) Now you have o find the serial device which is your cisco router or a switch. Type the following command.

dmesg | grep tty


dmesg Connect A Cisco Router  Switch to Linux Terminal Using Minicom

Step3.) Now open Minicom ( you might need superuser privileges)

sudo minicom

Step4.)You need to configure your minicom first to be able to use it with your cisco router/switch.

press ctrl +a . Now press Z

Now Press "o" ( Not zero)

Choose serial port setup from the screen.

serial Connect A Cisco Router  Switch to Linux Terminal Using Minicom

Now press "A" .Type the device name you got from the dmesg | grep tty command.

Now press enter.

Now press "E" to set the bits per second. Press "E" again to set bitrate to 9600.

bps Connect A Cisco Router  Switch to Linux Terminal Using Minicom

Set hardware control flow to "YES" and Software control to "NO".

Press enter and quit. Restart minicom and you should be able to connect to your cisco router/switch on any flavor of linux.

Akash Deep Singh

|| Eat Packets || Drink Management || Sleep Virtual || Work Linux || Think I.T. || Love MAC || Look After Windows || Dream APPS ||

6 Comments

  1. Tushar   •  

    Hey it was quite nice and quick for connecting my cisco 2650xm router.. can you suggest anything other than minicom

  2. it admin   •  

    hyper terminal, pumpkin, and any ssh solution depending on how you have configured your router and switch

  3. Pingback: My Home Cisco Lab « 2hourlunch's Blog

  4. Pingback: My Home Cisco Lab « Ramblings of a Platform Agnostic Technologist

  5. L   •  

    SO now what? still didnt connect to my switch??? sure we configured it. but where do i go from here?? lmao

  6. Isaac A   •  

    Awesome! Thank you very much for this, was scratching my head over it. So simple, but you’ve saved me a decent amount of pain having to configure network hardware with my USB-to-Serial cable (never get a generic cable like this, drivers are a pain to find and may or may not cause issues. Get a name brand, it’s worth the few extra bucks). But this saves me from having to do that right away, so thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *