Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
69 views

Lab 6 Introduction To Basic Interface

Lab 6 Introduction to basic interface commands The document discusses Cisco IOS command modes including user EXEC mode, privileged EXEC mode, and global configuration mode. It also covers establishing a console session with HyperTerminal and basic Cisco device configuration tasks such as setting the hostname, passwords, and interfaces.

Uploaded by

nouman
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views

Lab 6 Introduction To Basic Interface

Lab 6 Introduction to basic interface commands The document discusses Cisco IOS command modes including user EXEC mode, privileged EXEC mode, and global configuration mode. It also covers establishing a console session with HyperTerminal and basic Cisco device configuration tasks such as setting the hostname, passwords, and interfaces.

Uploaded by

nouman
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Lab 6 Introduction to basic interface commands

**Given the following Addressing table use it along this experiment:

IP Address: 192.133.219.0 Subnet mask :255.255.255.240


# Subnet ID First host address Last host address Broadcast
0

198.133.219.15
1 198.133.219.31
2

198.133.219.47
3 198.133.219.63
4

198.133.219.79
5 198.133.219.95

CISCO Internet Operating System (IOS)


Command Interface User Levels
The following figure illustrates the different user levels provided by IOS.
Cisco IOS Command Modes
The following table contains the different IOS command modes, their roles and the
shape of the command prompt that illustrates the mode. Make sure to study this
table carefully as it is essential for proper working with Cisco routers and switches.

User Exec Mode


The user EXEC mode is entered when the router is accessed via a serial connection
or when accessing the router via telnet.
The command prompt of the user EXEC mode is:

Router1>
The user EXEC mode only offers a small set of commands, such as ping, telnet,
and traceroute. Configuration parameters cannot be read or modified in this mode
Logging the user off, type:

Router1> exit

Privileged EXEC Mode


• To change or view configuration information of a router, user must enter
system administrator mode called Privileged EXEC Mode
• The privileged EXEC mode is used to read configuration files, reboot the
router, and set operating parameters.
• Entering the privileged EXEC mode requires to type a password, called the
enable secret.
• The privileged EXEC mode is entered by this command:

Router1>enable
If a password is set, then the system will require it at this
stage. Typing the password displays the following
command prompt: Router1#

Global Configuration Mode


The global configuration mode is used to modify system wide configuration
parameters, such as routing algorithms and routing tables. This is done by
typing:

Router1#Configure terminal
The argument terminal tells the router that the configuration commands will be
entered from a terminal. The alternatives are to issue configuration commands
from a configuration file or from a remote machine via a file transfer
The command prompt in the global configuration mode is:

Router1(Config)#

Notes:

commands in the current command mode


Router1(config-if)#?
• This command helps to determine if a command can be executed in the current
mode
• The question mark can also be used to determine the list of available options
of a command.
Router1#configure ?
If a certain command enables a feature of a router than adding a “no” in front of that
command disables the same feature. Sometimes it is the other way around, that is,
the command to
Notes: enable a feature uses the command to d isable the feature
preceded by a “no”. Examples:
commands in the current command mode Enable IP forwarding: ip routing
Disable IP forwarding: no ip routing
Router1(configAdd a routing table entry-if)#? : ip route 10.0.2.0
255.255.255.0 10.0.3.1
Delete a routing table entry: no ip route 10.0.2.0 255.255.255.0 10.0.3.1

Disable a network interface: shutdown


Router1#configure ? Enable a network
interface: no shutdown

If a certain command enables a feature of a router than adding a “no” in front of


that command disables the same feature. Sometimes it is the other way around, that
is, the command to enable a feature uses the command to disable the feature
preceded by a “no”. Examples:
• Enable IP forwarding: ip routing
• Disable IP forwarding: no ip routing
• Add a routing table entry: ip route 10.0.2.0 255.255.255.0 10.0.3.1
• Delete a routing table entry: no ip route 10.0.2.0 255.255.255.0 10.0.3.1
• Disable a network interface: shutdown
• Enable a network interface: no shutdown

Establishing a Console Session with HyperTerminal


HyperTerminal is a simple Windows-based terminal emulation program for serial
communication that can be used to connect to the console port on Cisco IOS devices.
A serial
interface on a computer is connected to the Cisco device via a rollover cable.
Using HyperTerminal is the most basic way to access a router for checking or
changing its configuration.

Steps:
1- Connect the console (rollover) cable to the console port on the router. Connect
the other cable end to the host computer with a DB-9 adapter to the COM 1
port.
2- From the Windows taskbar, start the HyperTerminal program by clicking Start
> Programs >Accessories > Communications > HyperTerminal.
3- At the Connection Description window, enter a session name in the Name
field. Select an appropriate icon, or leave the default. Click OK.

4- Enter the appropriate connection type, COM 1, in the Connect using field.
Click OK.
5- The settings in the Hyper Terminal need to be set correctly; otherwise,
"strange-looking" or garbage characters may show up on the screen. When
you set up the connection, use these
Bits per sec : 9600
settings:
Data bits : 8
Parity : none
Stop bits : 1
Flow control : none

Here is a screenshot of how to configure these settings on a Windows-based


PC running Hyper Terminal:

Without these settings, the router may display but does not accept any
keystrokes. The router, therefore, appears as if it is hung or has crashed.
With the correct settings, you can use Hyper Terminal to configure and
monitor the router.
6- There should be a response from the router. This indicates that connection has
been successfully completed.
7- When finished, close the HyperTerminal session. Click File > Exit. When
asked whether to save the session, click Yes. Enter a name for the session.
1- Note: this process is the same for a Switch.

Basic Cisco Device Configuration


• Common configuration tasks include setting the hostname, access passwords,
and (Message of the Day Banner) MOTD banner.
• Interface configuration is extremely important. In addition to assigning a
Layer 3 IP address, enter a description that describes the destination
connection speeds troubleshooting time.
• Configuration changes are effective immediately.
• Configuration changes must be saved in NVRAM to be persistent across
reboot.
• Configuration changes may also be saved off-line in a text file for auditing or
device replacement. Cisco IOS switch configuration is similar to Cisco IOS
router configuration.

Configure Cisco Router Global Configuration Settings.

1- Physically connect devices.


Connect the console or rollover cable to the console port on the router. Connect the
other end of the cable to the host computer using a DB-9 or DB-25 adapter to the
COM 1 port. Connect the crossover cable between the host computer’s network
interface card (NIC) and Router interface Fa0. Ensure that power has been applied
to the host computer and router.

2- Connect host computer to router through HyperTerminal.


Configure HyperTerminal with the proper settings as mentioned in previously in
this experiment. When the HyperTerminal session window comes up, press the
Enter key until there is a response from the router.
If the router terminal is in the configuration mode, exit by
typing NO. Would you like to enter the initial configuration
dialog? [yes/no]:no Press RETURN to get started!
When in privileged exec command mode, any misspelled or unrecognized
commands will attempt to be translated by the router as a domain name. Since
there is no domain server configured, there will be a delay while the request times
out. This can take between several seconds to several minutes. To terminate the
wait, simultaneously hold down the <CTRL><SHIFT>6 keys then release and
press x:

Router>enabel
Translating "enabel"...domain server (255.255.255.255) %
Briefly hold down the keys <CTRL><SHIFT>6, release and
press x Name lookup aborted

Router>
From the user exec mode, enter privileged exec mode:

Router> enable
Verify a clean configuration file with the privileged exec command show running-
config. If a configuration file was previously saved, it will have to be removed.

3- Configure global configuration hostname setting.


From the global config mode, there are many different configuration modes that
may be entered. Each of these modes allows the configuration of a particular part
or function of the IOS device. The list below shows a few of them:
Interface mode - to configure one of the network interfaces (Fa0, S0/0,..)
Line mode - to configure one of the lines (physical or virtual) (console, AUX,
VTY,..)
Router mode - to configure the parameters for one of the routing protocols

From the privileged exec mode, enter global configuration mode:


Router# configure terminal
Router(config)#

Set the device hostname to Router1:


Router(config)# hostname Router1
Router1(config)#

You might also like