Mode Prompt Command To Enter Command To Exit
Mode Prompt Command To Enter Command To Exit
We have created this topology to give you a better overview of commands. You can use single router if you
are unable to replicate this topology in packet tracer. Alternatively you can download this pre-created
topology.
Download practice topology
No matter what you prefer, for reset of this article I assume that you have one router available in workspace
of packet tracer.
Access CLI prompt of router
Cisco IOS supports various command modes, among those followings are the main command modes.
Setup Mode
Mode
Prompt
Command to enter
Command to exit
User EXEC
Router >
Privileged
Router #
EXEC
Global
Configuration
Interface
Configuration
Sub-Interface
Configuration
Setup
ROMMON
Router(config)#
Use configure
terminal command from
privileged exec mode
Router(config-if)#
Use interface
type number command
from global
configuration mode
Router(config-subif)
Parameter[Parameter
value]:
Router will
automatically insert in
this mode if running
configuration is not
present
Press CTRL+C to
abort. Type yes to
save configuration,
or no to exit without
saving when asked
in the end of setup.
ROMMON >
IOS commands are not case sensitive; you can enter them in uppercase, lowercase, or mixed
case.
By default Router name is configured on routers. We can configure any desired name on
router. hostname command will change the name of router. For example following command will
assign LAB1 name to the router.
Router is a critical device of network. It supports multiple lines for connection. We need to secure each line
[port].
Command
Description
Router(config)#line console 0
Router(config-line)#password console
Router(config-line)#login
Command
Description
Router(config)#line aux 0
Router(config-line)#password
AUXCNN
Router(config-line)#login
Depending on the model number and IOS software version router may supports various number of VTY
connections range from 5 to 1000. VTY is the standard name for telnet and SSH connection. By default
only first five VTYs connections are enabled. But you cannot connect them. When you try to connect them
remotely you will get following message
Command
Description
Router(config)#line vty 0 4
Router(config-line)#password TELCNN
Router(config-line)#login
In above example we set password on all five lines collectively but you can do this separately if you need
different passwords for different lines. Steps will be same.
1.
line vty [line number] command will move into that specific line.
2.
password [password] command will assign the desired password.
3.
login command will enable that line to accept the connection.
Login banner
We can configure two types of banner on routers; MOTD banner and Exec banner.
banner exec command is not available in packet tracer. You can practice with banner motd command.
Both commands work in same manner. Only the difference between these commands is the place of
display. MOTD banner will display before the login. An EXEC banner will display after the authentication
process and before the exec mode.
Both commands use delimiting character to specify the starting and ending of message. It means
command parser will terminate the message on delimiting character instead of the Enter key. This feature
allows us to span the message in multiple lines.
After this if IOS has anything to display it will move prompt and your typed command in next line.
Notification will not insert in the middle of command. If you continue typing, the command will execute
properly, even though it looks wrong at prompt.
Never use this command in real world. It could create security risk to your network.
Command
Description
Router(config-if)#description
Connected to bhilwara
Router(config-if)#bandwidth 64
Router(config-if)#no shutdown
Turns interface on
Serial cable is used to connect serial interfaces. One end of serial cable is DCE while other end is DTE.
You only need to provide clock rate and bandwidth in DCE side.
Command
Description
Router(config-if)#description Development
department
Router(config-if)#no shutdown