IOS Switch Router Configuration - Chapter 2
IOS Switch Router Configuration - Chapter 2
Cisco IOS.
To Configure network devices.
Command structure of Cisco IOS software.
Configure hostnames on a Cisco IOS device using the CLI.
Use Cisco IOS commands
To Limit access to device configurations.
To save the running configuration.
Configure a host device with an IP address.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 1
Cisco IOS
Operating Systems
All networking equipment dependent on operating systems
End users (PCs, laptops, smart phones, tablets)
Switches
Routers
Wireless access points
Firewalls
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 2
Cisco IOS
Operating Systems
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 3
Cisco IOS
Purpose of OS
PC operating systems (Windows 8 & OS X) perform technical
functions that enable
• Use of a mouse
• View output
• Enter text
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 4
Cisco IOS
Location of the Cisco IOS
IOS stored in Flash
Non-volatile storage – not lost when power is lost
Can be changed or overwritten as needed
Can be used to store multiple versions of IOS
IOS copied from flash to volatile RAM
Quantity of flash and RAM memory determines IOS that can be used
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 5
Cisco IOS
IOS Functions
Major functions performed or enabled by Cisco routers and
switches include:
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 6
Accessing a Cisco IOS Device
Console Access Method
Most common methods to access the Command Line Interface
Console
Telnet or SSH
AUX port
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 7
Accessing a Cisco IOS Device
Console Access Method
Console port
Device is accessible even if no networking services have been
configured (out-of-band)
Need a special console cable
Allows configuration commands to be entered
Should be configured with passwords to prevent unauthorized
access
Device should be located in a secure room so console port can not
be easily accessed
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 8
Accessing a Cisco IOS Device
Telnet, SSH, and AUX Access Methods
Telnet
Method for remotely accessing the CLI over a network
Require active networking services and one active interface that is
configured
Aux Port
Out-of-band connection
Uses telephone line
Can be used like console port
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 9
Accessing a Cisco IOS Device
Terminal Emulation Programs
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 10
Activity : 2.1.2.4
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 11
Navigating the IOS
Cisco IOS Modes of Operation
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 12
Navigating the IOS
Primary Modes
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 13
Navigating the IOS
Global Configuration Mode and Submodes
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 14
Navigating the IOS
Navigating between IOS Modes
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 15
Navigating the IOS
Navigating between IOS Modes (cont.)
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 16
The Command Structure
IOS Command Structure
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 17
The Command Structure
Cisco IOS Command Reference
To navigate to Cisco’s Command Reference to find a particular
command:
1. Go to www.cisco.com
2. Click Support.
3. Click Networking Software (IOS & NX-OS).
4. Click 15.2M&T (for example).
5. Click Reference Guides.
6. Click Command References.
7. Click the particular technology that encompasses the command you
are referencing.
8. Click the link on the left that alphabetically matches the command
you are referencing.
9. Click the link for the command.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 18
The Command Structure
Context Sensitive Help
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 19
The Command Structure
Command Syntax Check
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 20
The Command Structure
Hot Keys and Shortcuts
Tab - Completes the remainder of a partially typed command or
keyword
Ctrl-R - Redisplays a line
Ctrl-A – Moves cursor to the beginning of the line
Ctrl-Z - Exits configuration mode and returns to user EXEC
Down Arrow - Allows the user to scroll forward through former
commands
Up Arrow - Allows the user to scroll backward through former
commands
Ctrl-Shift-6 - Allows the user to interrupt an IOS process such
as ping or traceroute.
Ctrl-C - Aborts the current command and exits the configuration
mode
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 21
The Command Structure
IOS Examination Commands
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 22
The Command Structure
The show version Command
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 23
2.2 CISCO Switch Configuration
Basics
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 24
Hostnames
Why the Switch
Let’s focus on
Creating a two PC network connected via a switch
Setting a name for the switch
Limiting access to the device configuration
Configuring banner messages
Saving the configuration
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 25
Hostnames
Device Names
Some guidelines for naming conventions are that names should:
Start with a letter
Contain no spaces
End with a letter or digit
Use only letters, digits, and dashes
Be less than 64 characters in length
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 26
Hostnames
Hostnames
Hostnames allow
devices to be
identified by
network
administrators
over a network or
the Internet.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 27
Hostnames
Configuring Hostnames
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 28
Limiting Access to Device Configurations
Securing Device Access
The passwords introduced here are:
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 30
Limiting Access to Device Configurations
Securing User EXEC Access
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 31
Limiting Access to Device Configurations
Encrypting Password Display
service password-
encryption
prevents
passwords from
showing up as
plain text when
viewing the
configuration
purpose of this
command is to
keep unauthorized
individuals from
viewing passwords
in the configuration
file
once applied,
removing the
encryption service
does not reverse
the encryption
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 32
Limiting Access to Device Configurations
Banner Messages
important part of
the legal process in
the event that
someone is
prosecuted for
breaking into a
device
wording that
implies that a login
is "welcome" or
"invited" is not
appropriate
often used for legal
notification
because it is
displayed to all
connected
terminals
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 33
Saving Configurations
Configuration Files
Switch# reload
System configuration has
been modified. Save?
[yes/no]: n
Proceed with reload?
[confirm]
Startup configuration is
removed by using
the erase startup-config
Switch# erase startup-config
On a switch you must
also issue the delete
vlan.dat
Switch# delete vlan.dat
Delete filename [vlan.dat]?
Delete flash:vlan.dat?
[confirm]
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 34
Ports and Addresses
IP Addressing in the Large
Each end device on a
network must be
configured with an IP
address
Structure of an IPv4
address is called dotted
decimal
IP address displayed in
decimal notation, with
four decimal numbers
between 0 and 255
With the IP address, a
subnet mask is also
necessary
IP addresses can be
assigned to both
physical ports and virtual
interfaces
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 35
Ports and Addresses
Interfaces and Ports
Network communications depend on end user device interfaces,
networking device interfaces, and the cables that connect them
Types of network media include twisted-pair copper cables, fiber-
optic cables, coaxial cables, or wireless
Different types of network media have different features and benefits
Ethernet is the most common local area network (LAN) technology
Ethernet ports are found on end user devices, switch devices, and
other networking devices
Cisco IOS switches have physical ports for devices to connect to, but
also have one or more switch virtual interfaces (SVIs - no physical
hardware on the device associated with it; created in software)
SVI provides a means to remotely manage a switch over a network
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 36
Addressing Devices
Configuring a Switch Virtual Interface
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 38
Addressing Devices
Automatic IP Address Configuration for End Devices
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 39
Addressing Devices
IP Address Conflicts
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 40
Verifying Connectivity
Test the Loopback Address on an End Device
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 41
Verifying Connectivity
Testing the Interface Assignment
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 42
Verifying Connectivity
Testing End-to-End Connectivity
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 43