Welcome back to this CCNA Prep video series, where we have been looking at the configuration and verification objectives of the 200-120 exam.

CCNA Training – Resources (Intense)

In this video, we will deal with basic configuration tasks on the Cisco router, including the use of the setup command, configuring hostname and banners, and how to save the configuration of the Cisco IOS device.

For more related information on basic Cisco routing tips, please check out our article titled Cisco IOS XR: Routing Fundamentals.

New tutorial videos are posted every Monday, so keep checking back!

If you have any questions, or would like to suggest topics for future videos, please leave them in the comments.

Further reading:

  1. Using Setup Mode to Configure a Cisco Networking Device: http://www.cisco.com/c/en/us/td/docs/ios/fundamentals/configuration/guide/15_1s/cf_15_1s_book/cf_setup.html
  2. Connection, Menu, and System Banner Commands: http://www.cisco.com/c/en/us/td/docs/ios/12_2/configfun/command/reference/ffun_r/frf004.html

Video Transcription:

Welcome back to the CCNA prep video series where we have been looking at the configuration and verification objectives of the 200-120 exam. In this video we will deal with the basic configuration task on the Cisco router including using the setup command, configuring host name and banners and how to save the configuration on the Cisco router or any Cisco IOS device.

When you first log into a new Cisco IOS CLI, you will get the initial configuration dialogue which allows you to do some basic router configuration like setting a host name, enable password and enable secret and also some management interface configuration. This happens because that new Cisco IOS book does not have any startup configuration in the NVRAM. It could also happen if the configuration register is set to the hexadecimal value of 2142, which basically bypasses the startup configuration. In GNS3 you don’t get this initial configuration dialogue because by default when you are at IOS GNS3 it sets a port to a startup configuration. In my version of GNS3 I just go to edit>preferences. Under my IOS routers if I go to 360 for example, you can see the startup config. So C:\users\Adeolu\appdata\roaming\GNS3 and then it has a base config that it uses both for my startup and for the private config. So that is why when you start a router in GNS3 you don’t see that initial configuration dialogue.

What we are going to do is that I will add a router now, then start and then console. Although there is a way to make a router in GNS3 to start without the default startup configuration. I will show you another way you can access the initial configuration dialogue. This is done by using the setup command in the privilege Exec mode. So setup and then now I am presented with a system configuration dialogue. ‘Continue with the configuration dialogue? [yes/no]’. It’s actually quite easy to follow the setup by just answering a few questions. So let’s go to it right now. He asks me if I want to continue with the configuration dialogue, I will just type ‘yes’ or type in ‘y’ is enough, just ‘y’. If you need any help at any time you can use the ‘?’ and if you want to abort you can use ‘Ctrl+C’. Let’s go to the basic management setup, yes. ‘What host name will I like to configure?’ let’s just say ‘router1’. Enable secret, we will discuss these terms later on but for now let’s just run through this configuration dialogue. For the enable secret I will just use ‘cisco’ and then for the enable password. If you try to use the same password I used for enable password you get an error like, ‘please choose a password that is different from the enable secret’. So let’s use something else like ‘cisco1’ and then we also have to set the password that protects the virtual terminal, so I can still says ‘cisco’ whatever, it doesn’t really matter. For now I don’t want to configure SNMP so I am going to leave the default as ‘No’ and just press enter and then now we can configure an interface from which we can manage the router. This basically just involves configuring an IP address and a subnet mask. One thing you can do for this interface name is just to copy this phrase and put it like I am doing and then just press enter. ‘Yes’, operate in full-duplex mode, I can say ‘Yes’, configure an IP address, the default is ‘No’, but let’s say I want to configure an IP address, 192.168.1.1, Subnet mask; I will leave this default subnet mask, enter. Cool so this is the configuration that was generated. As you can see, we have the router– that’s the host name ‘router1’, the enable secret, the enable password, the password that we configured for the vty lines, we didn’t configure SNMP, and then this is the interface that we configured.

So at this point you can either exit the configuration dialogue as by specifying option 1 or you can return to the setup without saving the configuration or can you save the configuration and then exit. The default is to save the configuration and then exit. I am going to just use Ctrl+C right now.

I really just wanted to show you the setup command, because you may be asked about it in the exam. The truth is you may never have to use this command in real life, so you will just say no when you are asked if you want to continue with the initial configuration dialogue. In that case let’s get down to the way you normally perform basic configuration on your router via the CLI. Like I said in the last video we do most of our configuration in global configuration mode, and I get there by using ‘config t’ which is short for configure terminal. The first basic configuration is to set a host name, using the ‘hostname’ command. This is just a name that helps us identify the Cisco IOS device. Think of meaningful, reasonable LAN names and stick to digits, letters, hyphen or underscore. Other characters are illegal. So let’s just do something like ‘hostname router1’ something we have already done before. AS you can see the prompt immediately changes to router1, that’s the new host name. Another basic configuration is setting banners on the CLI. When you’re driving down the highway you may see signs that inform you about the speed limit that is applicable on that particular road. In the same way banners can be used to warn people against unauthorized access or to give someone that information. It doesn’t prevents the unauthorized access but it can serve as a deterrent and also can be used as evidence in a legal proceedings. We use the banner command to configure various types of banners. For the CCNA exam we are covered with three types of banners.

Exec

Login

Motd (Message of the Day)

Motd is used mostly for the information purposes like if there is planned shutdown of the device, people log into the device will generally require a username and a password and they will see the log in banner. The login banner is always displayed after the Motd banner, if the Motd banner is configured. Finally, after gaining access to the device you are presented with the Exec banner. Let’s configure a Motd banner. You need to begin the banner that starts with a delimiting character and also end with the same character. Choose your delimiting character wisely as it would not appear in the text of your banner and if it appears in the text of your banner the CLI would type it as the end of your banner. In our example, I will use the % sign as my delimiting character. You can type the banner on the same line for example “this is a banner” or you can type it in a different line. So, what I’m going to do is just press Enter and type the text of the banner, “this is a banner” on different lines.

Now, end it with my delimiting character and then press Enter. To view this banner I would log out the console. So, “log out “and then when I log back in, you see the banner there. This is a banner on different line. To wrap up this video, let me show you how to save the configuration that you have done on your router. As you should know there are two basic configuration on your CISCO IOS device. The start up configuration and running configuration, any changes you make to the configuration are in the running configuration until you save those changes. If you reload your router without those configuration those changes are lost because they are not stored in the startup configuration. We can view the startup configuration using “Show start up config” and then press Enter.

Space, space. So that is the startup configuration that we have and we can view running configuration using the show running- as you can see I’m using my Tab here which we talked about In the last video, it just helps me complete the command. So Enter and then have the running configuration. If you noticed the changes that I made are in the running configuration. So this is the banner, so that’s one change and then scrolling up we can see we also configured the host name so that’s here. These changes are in the running configuration but if you check the start up configuration they are not there. As you can see the only thing we have in the startup config is this host name “R1” which was from ____ (8:28) and then there is no banner configuration or anything like that. To save those changes we can issue the copy running in config, startup config command.

So this is what I mean, “copy running config to start up config “and I just press Enter. So it says the Destination File name and I press Enter. The short form of this command is just “copy run start”, so it’s the same thing. This basically means we are copying the running config to the startup config. Another way to do it is to use the “Write memory “. It will says building configuration and the OK. Now, if we check the startup config you can see the startup config is now what we have in the running config. The host name is there and then if you go to the banner we will see the banner there. So when you reload this device now, your changes are preserved.

This brings us to the end of this video where we have used the CLI to configure basic task suck host name and banners on the CISCO router. We have also seen how to save the configuration of our router using copy run start command. I hope you have found this video knowledgeable and I look forward to the next video in the series.