Blog • SHM Soft

How to Configure a Cisco Router: A Beginner's Guide

A Cisco router can look intimidating the first time you see its command line. But the basic setup is just a handful of commands, and this beginner's guide walks you through each one, from the first connection to saving your configuration.

Published 28 November 2026 • SHM Soft

When you first sit in front of a Cisco router, there is no friendly setup wizard. There is a black screen, a prompt that says Router>, and a blinking cursor. It looks like you need years of experience to do anything with it. The truth is simpler: the basic configuration of a Cisco router is a short list of commands, and you can learn them in an afternoon. This guide is written for a complete beginner, and it assumes you know nothing about Cisco IOS, the router's operating system.

We will cover how to connect to the router, how to move between the command modes, how to set the hostname and passwords, how to give an interface an IP address, and how to save your work so it survives a restart. We will also show you how to practise safely with Cisco Packet Tracer, so you can learn without touching a real network. By the end, you will have configured a router from scratch, and you will understand what each command does.

A network switch with cables in a rack for Cisco router configuration

Before You Start: What You Need

To configure a real Cisco router, you need a console cable, usually a blue rollover cable with a USB adapter, and a terminal program like PuTTY on your laptop. You connect the cable from the router's console port to your laptop, open PuTTY, choose the Serial connection type, and set the speed to 9600 baud, with 8 data bits, no parity, and 1 stop bit. Press Enter, and the router's prompt appears. That is your way in, and it works even when the router has no IP address at all, which is why it is the first connection you learn.

If you do not have a real router, use Cisco Packet Tracer. It is a free simulator from Cisco Networking Academy that lets you build a virtual network with routers, switches, and computers, and practise the same commands. It is the best way to learn, because you can make mistakes without breaking anything. Build a small lab: one router, one switch, and one PC. Connect them with cables, then open the router's command line and follow this guide. Everything you learn in Packet Tracer works the same way on a real router.

Understanding the command modes

Cisco IOS has three main modes, and the prompt tells you which one you are in. User mode shows Router>, and it lets you run basic show commands but not change anything. Privileged mode shows Router#, and you enter it by typing enable. It lets you see everything and run diagnostic commands. Global configuration mode shows Router(config)#, and you enter it by typing configure terminal from privileged mode. This is where you make changes. To go back a level, type exit. To go right back to privileged mode from anywhere, press Ctrl + Z.

Two features make the command line much easier. The question mark is your help key: type ? at any point and the router shows you what you can type next. If you are not sure of a command, type the first few letters and a question mark, and the router will list the options. The Tab key finishes a command for you: type the first few letters and press Tab, and the router completes the word. These two keys turn the command line from a memory test into something you can explore. Use them constantly while you learn. Our guide to network troubleshooting commands covers the diagnostic commands you will use once the router is configured.

Step 1: Hostname, Passwords, and a Login Banner

The first commands give your router a name and protect it with passwords. In global configuration mode, type hostname R1 to name the router R1. The prompt changes immediately to R1(config)#, which makes it easy to tell which router you are working on when you have several. Next, set a privileged mode password with enable secret class. The word secret means the password is stored encrypted, which is safer than the older enable password command. Use a strong password, and do not use the word class on a real network.

Next, protect the console line, which is the physical connection you are using now. Type line console 0, then password cisco, then login, then exit. The login command means the router will ask for the password before letting anyone in through the console. Add logging synchronous on the console line too, which stops log messages from interrupting your typing. It is a small touch, but it makes the command line much easier to use.

A login banner is a message shown to anyone who connects to the router. It usually says that access is for authorised users only. Set it with banner motd #Authorized access only#, using the # character to mark the start and end of the message. You can write a longer message if you like, but keep it simple: a warning is enough. These three steps, hostname, passwords, and banner, are the standard starting point for any Cisco router, and they take less than a minute.

Server rack cables being set up for a Cisco network

Step 2: Give an Interface an IP Address and Turn It On

A router's job is to move traffic between networks, and it does that through its interfaces. To configure one, go into interface mode with a command like interface gigabitEthernet0/0. The exact name depends on your router model, so use the question mark to check. Then add a short description with description LAN to SW1, which tells the next person what the interface connects to. Then set the address: ip address 192.168.1.1 255.255.255.0. That gives the interface its address and its subnet mask.

Then turn the interface on with no shutdown. Cisco interfaces are off by default, and this is the step beginners forget most often. If you configure an address but forget no shutdown, the interface stays down and nothing works. After that, type end to return to privileged mode, and check your work with show ip interface brief. This shows a short list of all interfaces, their addresses, and whether they are up or down. Your interface should show up, with its address, and a status of up.

You can check more with show running-config, which shows the whole current configuration, and show ip route, which shows the routes the router knows about. For a simple lab, the router will know about the network you just configured, and that is enough for a PC on that network to ping it. Set the PC's address to 192.168.1.10, its mask to 255.255.255.0, and its gateway to 192.168.1.1, then ping the router. If the ping replies, your configuration works. If it does not, check the cable, the interface status, and the PC's settings before you change anything on the router.

Step 3: Save Your Work and Check It

This is the step that catches more beginners than any other. Everything you configure lives in the running configuration, which is stored in RAM. RAM is wiped when the router restarts. If you do not save your work, a power cut or a restart will erase it all, and the router will come back with a blank configuration. To save it, type copy running-config startup-config in privileged mode. The router will ask you to confirm, and then it copies your work to NVRAM, which survives a restart. The short form, write memory, does the same thing.

Make saving a habit. Save after every change that works, not just at the end of the day. That way, if you make a mistake later, you can reload the last good configuration with copy startup-config running-config and carry on. Also, before you change anything on a working router, save the current configuration and keep a copy on your laptop. That backup is your way back if a change goes wrong, and it takes seconds to make.

From here, there is plenty more to learn: default routes, so the router knows where to send traffic for the internet; DHCP, so it can hand out addresses; NAT, so many devices can share one public address; and access lists, so you can control what traffic is allowed. Each one is a few more commands on top of what you have learned here. If you want to go further, the CCNA course from Cisco Networking Academy is the standard path, and the video below works through a full beginner lab. And if your business needs a network set up properly, our managed IT services team can design and configure it for you, and our guide on how to troubleshoot DHCP explains one of the first services you will configure on a router.

Watch on YouTube: Your First Cisco Router and Switch Configuration + Real Packet Tracer Lab (CCNA Lesson 9)

Practise in Packet Tracer first

The best way to learn Cisco configuration is to build the lab in Packet Tracer and type every command yourself. Do not just read them. Type them, make mistakes, and fix them. The commands in this guide, enable, configure terminal, hostname, enable secret, interface, ip address, no shutdown, and copy running-config startup-config, are the foundation of everything else. Learn them well, and the rest of Cisco networking becomes much easier.

Frequently Asked Questions

How do I connect to a Cisco router for the first time?

Use a console cable from the router's console port to your laptop, and open a terminal program like PuTTY with a serial connection at 9600 baud. Or practise in Cisco Packet Tracer, which is free.

What is the difference between running-config and startup-config?

Running-config is the current configuration in RAM, and it is lost on restart. Startup-config is the saved copy in NVRAM. Use copy running-config startup-config to save your work.

What does no shutdown do on a Cisco router?

It turns an interface on. Cisco interfaces are off by default, so you must run no shutdown after giving an interface an IP address, or it will stay down.

How do I give a Cisco router interface an IP address?

In global configuration mode, type interface gigabitEthernet0/0, then ip address 192.168.1.1 255.255.255.0, then no shutdown. Check it with show ip interface brief.

What is Cisco Packet Tracer?

It is a free network simulator from Cisco Networking Academy. You can build virtual networks with routers, switches, and PCs, and practise the same commands as on real hardware.

Conclusion

Configuring a Cisco router is a short list of commands: connect by console, use enable and configure terminal to reach configuration mode, set the hostname and passwords, give an interface an IP address with no shutdown, and save with copy running-config startup-config. Practise in Packet Tracer until the commands feel natural.

If your business needs a network designed and configured properly, contact us for a free quote. Our team will set it up, document it, and keep it running for you.

Related articles:

Spanning Tree Protocol (STP): How It Works and Troubleshooting

The protocol that stops loops on the switches behind your router.

Network Troubleshooting Commands: The Complete Guide for IT Professionals

The ping and show commands that prove your router works.

How to Troubleshoot DHCP Problems

The next service to configure once your router is up and running.

Want help with your network or IT?

Tell us what you need and we will send a free quote with no hidden charges.

Get a Free Quote