Laboratory 3 - Basic commands
Laboratory 3 - Basic commands
Total Marks=10
Marks will be given only to students who attend and participate, during 2 hours laboratory class each
week.
Submission on Moodle is mandatory as an evidence of participation.
Exercises:
1. Choose a router.
2. List commands for each IOS mode.
3. List interface ports.
4. Write commands that you have used for each step, past screen
shots wherever needed.
5. Display the commands that you have issued that are still stored in
router memory.
Command Summary
that the router will still boot up with the saved configuration in the event
of a power outage.
6. If you decide that you would like to start configuring the router from
scratch, you can erase the startup configuration and reload the router.
This will enable you to completely delete all configurations on the router.
in NVRAM. When prompted, confirm that you want to erase the NVRAM
7. Reload the router, and press the Enter key when prompted to confirm
the reload. When prompted to enter the initial configuration dialog, type
8. After the router reboots, look at the startup configuration file again.
12. Reload the router. Press Enter when prompted to confirm the reload.
13. After the router reloads, what host name is displayed in the prompt?
_______________________
14. View the configuration used when the router restarted after you
Detailed Information
Ref: http://study-ccna.com/cisco-ios-overview/
cable is a serial cable, which means that you can’t just plug it in an
Ethernet port on your computer. You will need an adapter that converts
an interface on your computer (usually a 9-pin serial interface) into RJ-
45.
Telnet uses a well known TCP port 23. One of the biggest disadvantages
of this protocol is that is sends all data as clear-text, which includes the
passwords! This is the reason why this type of access is usually not used
anymore. Instead, SSH is usually used.
3. SSH access – like Telnet, this access type enables you to configure
devices remotely, but it adds an extra layer of security by encrypting all
communications using public-key cryptography. SSH uses well known
TCP port 22.
Types of memory on a Cisco device
Cisco devices usually have four types of memory that are being used for
different purposes. These four types are:
• ROM (Read-only memory) – stores a bootstrap program that is
used to initialize a boot process. This is a read-only type of memory, so it
can’t be altered.
• RAM (Random Access Memory) – the running configuration of a
device is stored here. This type of memory loses its content when a
device is restarted.
• Flash memory – used to store IOS software images. Can also be
used to store other files, for example backup configuration files. Retains
its content even after a device is restarted.
• NVRAM (Nonvolatile RAM) – usually used to store a startup
configuration file. This type of memory retains its content even after a
device is powered down or restarted.
To avoid that scenario, you need to copy your current configuration into a
startup configuration. A startup configuration is stored in the nonvolatile
memory of a device, which means that all configuration changes are
saved even if the device loses power.
No shutdown command
By default, all interfaces on a Cisco router are turned off. To enable an
interface, the no shutdown command is used. You first need to enter the
submode of the interface that you want to configure. You can do that by
using the global configuration mode command interface
INTERFACE_TYPE/ INTERFACE_NUMBER. You can get a list of available
interfaces by typing the ‘?’ character after the interface command.
You may notice that the promt has changed to reflect the mode you are
currently in. For the interface mode the HOSTNAME#(config-if) prompt
is shown.
Once inside the interface mode, you can enable an interface by typing
the no shutdown command.
IP address command
The ip address interface mode command is used to assign an IP address
to an interface. The syntax of this command is: ip address IP_ADDRESS
SUBNET_MASK. For example, if we want to assign an IP address of
10.0.0.1 with the subnet mask 255.0.0.0 to a interface, the following
command is used: ip address 10.0.0.1 255.0.0.0
What if you had made a mistake and written the ip address 10.0.0.2
255.0.0.0command instead of the command above? Well, you can remove
the wrong IP address by typing the same command, but this time with
the no keyword, in this case no ip address. You can remove any command
from your IOS configuration by using the no keyword in front of the
command.
Setting up passwords
Each Cisco IOS device has the built-in authentication features. There are
three basic ways to configure authentication on a device:
Configure a password for the console access – by default, a console
access doesn’t requires a password. You can configure a password for
the console access by using the following commands:
HOSTNAME(config) line console 0
HOSTNAME(config-line) password PASSWORD
HOSTNAME(config-line) login
This will force a user to type the password when trying to access the
device through the console port.
Configuring banners
You can display a banner on a Cisco device. A banner is usually shown
before the login prompt. It is usually some text that appears on the
screen when a user connect to the device (e.g. some legal information).
The most commonly used banner is the Message Of The Day (MOTD)
banner. This banner, if configured, is shown before the login prompt to
every user that is trying to establish a session with the device. The
following global configuration command is used to configure a MOTD
banner:
hostname(config) banner motd DELIMITING_CHARACTER TEXT
DELIMITING_CHARACTER
You can set a number of command saved in the buffer for the current
terminal session by using the terminal history size NUMBER command
from the user EXEC or privileged EXEC mode.
TIP – another way to recall your command from the history buffer is by
using the Up Arrow key on your keyboard. Most recent command is
recalled first.
After you have saved your running configuration into the startup
configuration, you can view the saved configuration using the show
startup-config command from the privileged EXEC mode. This command
shows the configuration that is currenty stored in the device’s NVRAM.
This configuration will be loaded next time the device is restarted.