Quick Notes – IOS COMMANDS

What two EXEC modes are supported in the Cisco IOS?

The two EXEC modes are:

  • User EXEC mode (user mode)
  • Privileged EXEC mode (enable or privileged mode)

In the IOS, what is User EXEC mode?

User EXEC mode is the first mode you enter when you log into the IOS. This mode is limited and is mostly used to view statistics. You cannot change a router’s configuration in this mode. By default, the greater-than sign (>) indicates that you are in user mode. This is how the router prompt looks in user mode: Router>

In the IOS, what is privileged EXEC mode?
In privileged EXEC mode, you can view and change the configuration in a router. To enter privileged mode, enter the enable command while in user mode. The pound symbol (#) indicates that you are in privileged mode. This mode is usually protected with a password. You also see the output of the prompt:

Router>enable
Password:
Router#

When you are in privileged EXEC mode, how do you return to user EXEC mode?
You return to user EXEC mode using the disable, exit, or end IOS commands. Here is an example of using the disable command:

Router#disable
Router>

On a Cisco router, what does the show version command display?
The show version command displays the system hardware’s configuration, including RAM, Flash memory, software version, configuration register, and boot images. Here is an example of the show version command:

Router#show version

Cisco Internetwork Operating System Software
IOS ™ C2600 Software (C2600-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 27-Apr-04 19:01 by miwang
Image text-base: 0x8000808C, data-base: 0x80A1FECC

ROM: System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)
Copyright (c) 2000 by cisco Systems, Inc.
ROM: C2600 Software (C2600-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)

System returned to ROM by reload
System image file is “flash:c2600-i-mz.122-28.bin”

cisco 2621 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memory
.
Processor board ID JAD05190MTZ (4292891495)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
2 FastEthernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.
63488K bytes of ATA CompactFlash (Read/Write)

Configuration register is 0x2102

On a Cisco router, how do you display the configuration running in RAM?

You display the configuration running in RAM using the show running-config privileged mode command. For example:

Router#show running-config

Building configuration…

Current configuration : 407 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
ip classless
!
!
line con 0
line vty 0 4
login
!
!
end

On a Cisco router, how do you view the configuration stored in NVRAM?

You view the configuration stored in NVRAM using the show startup-config privileged mode command.

Router#show startup-config

What Cisco router command would you use to view a list of the most recently used commands?

The show history command, by default, displays the last ten commands used. You can also use the up arrow key (or Ctrl-P) to display the last command you entered and the down arrow key (or Ctrl-N) to display the previous commands you entered.

Command history is enabled by default and records ten commands in its history buffer for the current session. How do you edit the number of commands that are stored in the router’s history buffer?

To edit the number of command lines stored for the current session, use the terminal history [size number-of-lines] command in privileged EXEC mode. For example, the following changes the history size to 20 lines:
Router#terminal history size ?
<0-256>  Size of history buffer
Router#terminal history size 20

On a Cisco router, name the enhanced editing commands that are used to do the following:

Move the cursor to the beginning of the line Ctrl-A
Move the cursor to the end of the line Ctrl-E
Move the cursor forward one character Ctrl-F
Move the cursor back one character Ctrl-B
Move the cursor back one word Esc-B
Delete all characters from the cursor to the beginning of the command line – Ctrl-U
Complete a line – Tab
Display a line versus a screen – Enter

What are global commands on a Cisco router?

Global configuration commands are commands that affect the entire router. They can be executed only in global configuration mode.

How do you enter global configuration mode?


To enter global configuration mode, you enter the config terminal command from privileged EXEC mode. Here is an example of this command:
Router#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#

How do you configure a name on a Cisco router?

The hostname name global configuration command is used to configure a name on a Cisco router. For example, the following command changes the router’s host name to RouterA:
Router(config)#hostname Paris
RouterA(config)#

How do you add a message-of-the-day (MOTD) banner on a Cisco router?

To add a message-of-the-day banner to a Cisco router, enter the banner motd # text # global configuration command. The pound signs (#) are delimiting characters. They can be any character of your choice, but they must be the same and cannot be included in your text. They signify the beginning and end of your text. The following example shows the banner motd command:

RouterA(config)#banner motd # Warning only authorized users many access this Router. #
RouterA(config)#
Note: The MOTD banner is displayed to anyone connecting to the router via Telnet, console port, or auxiliary port.

On a Cisco router, how do you add a password to the console terminal?

To add a password to the console terminal, use the line console 0 global configuration command, followed by the login and password password line subcommands:

Router(config)#line console 0
Router(config-line)#login
Router(config-line)#password ccna5

In this example, the login subcommand forces the router to prompt for authentication. Without this command, the router will not authenticate a password. The password CCNA command sets the console password to CCNA. The password you set is case-sensitive.

How do you add a password for Telnet access on a Cisco router?

To add a password for Telnet access, enter the line vty 0 4 global configuration command, the login command, and finally the password line subcommand. The password is case-sensitive. In this example, the Telnet password is set to CCNA:

Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password CCNA

What command do you use to add a password to the auxiliary interface on your Cisco router?

To add a password to the auxiliary interface, use the line aux global configuration command, followed by the login and password subcommands. is the number of the auxiliary port you want to add a password to. The password is case-sensitive. The following example sets the password for the auxiliary port to CCNA:

Router(config)#line aux 0
Router(config-line)#login
Router(config-line)#password CCNA

On a Cisco router, how do you set a password to restrict access to privileged EXEC mode?

You set a password to restrict access to privileged EXEC mode using the enable password global configuration command:

Router(config)#enable password CCNA

This example sets the password to enter privileged mode to CCNA.

By default, when you view the router’s configuration, the enable password is not encrypted. What command can you enter to use an encrypted enable password?

To use an encrypted enable password, use the enable secret password global configuration command, where password is a case-sensitive password you assign:

Router(config)#enable secret Cisco

If you have an enable password on your router, the IOS will allow you to use the same password as your enable password for your secret password, but this is not recommended. This is because the enable password is not encrypted and anyone can view it. If you have both an enable and secret password configured on your router, the router will use the secret password and not the enable password.
When you view the configuration on Cisco routers, only the enable secret password is encrypted.

How do you encrypt user mode and the enable password?

To encrypt user mode and the enable password, use the service password-encryption global command:

Router(config)#service password-encryption

How do you configure Cisco router interfaces?

To configure an interface on a Cisco router, use the interface interface-type number global command, where interface-type number is the interface type and number you want to configure. For example, if you want to configure the second serial interface on your router, you would enter the following:

Router(config)#interface serial 0
Router(config-if)#

Cisco interfaces start with 0 instead of 1. So the first interface would be number 0. The prompt also changes to Router(config-if)# to tell you that you are in interface mode. If you have a router with module slot, such as the Cisco 3600, you would enter into interface mode by entering the slot/port number. For example, if you have a Cisco 3600 router with two module serial interfaces and you want to configure the first serial interface on the second module you would enter interface s1/0.

How do you administratively disable an interface on a Cisco router?

You administratively disable an interface on a Cisco router by issuing the shutdown interface configuration command. In this example, the serial interface is issued the shutdown command:

Router(config)#int s0
Router(config-if)#shutdown

On your Cisco router, you enter show interface s0 and notice that the port is administratively down. What does this mean, and how do you fix it?

When an interface is administratively down, it has been shut down manually. To remedy this, enter the interface command no shut.

What two commands can you use to show the clock rate on a serial interface?

To view the clock rate on a serial interface, you can use the show running-config enable command and the show controllers enable command.

Assuming that you are using no CSU/DSU and you are using back-to-back DTE/DCE serial cables, what command would you use to set the serial interface on a router to provide clocking to another router at 64 Kbps?

The command to set the serial interface on a router to provide clocking to another router at 64 Kbps is clock rate 64000. Setting the clock rate on an interface makes it a DCE interface.

What Cisco IOS router command would you use to find out whether a serial interface is a DCE or DTE interface (providing clocking)?

To see whether a serial interface is providing clocking, use the enable command show controllers serial-interface-type serial-number.

Router#show controllers serial 0/0

Interface Serial0/0
Hardware is PowerQUICC MPC860
DCE V.35, no clock

By testinside

Tags: Which three commands will change the current configuration mode of a router? (Choose three ), Which three commands will change the current configuration mode of a router?, Ccna commands notes, signified by a router prompt ending in config-if

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>