SlideShare a Scribd company logo
1 of 47
©2015 Amir Jafari – www.amir-Jafari.com
Routing and Switching 200-120
8 - Installing and Operating Cisco LAN Switches
Installing and Operating Cisco LAN
Switches
©2015 Amir Jafari – www.amir-Jafari.com
Agenda
 Accessing the Cisco Catalyst 2960 Switch CLI
 Configuring Cisco IOS Software
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Accessing the Cisco Catalyst 2960 Switch CLI
 Cisco uses the concept of a command-line interface (CLI) with its router
products and most of its Catalyst LAN switch products
 The CLI is a text-based interface in which the user, typically a network
engineer, enters a text command and presses Enter
 Pressing Enter sends the command to the switch, which tells the device to do
something
 The switch does what the command says, and in some cases, the switch
replies with some messages stating the results of the command
 Cisco Catalyst switches also support other methods to both monitor and
configure a switch. For example, a switch can provide a web interface
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Cisco Catalyst Switches and the 2960 Switch
 Within the Cisco Catalyst brand of LAN switches, Cisco produces a wide
variety of switch series or families
 Each switch series includes several specific models of switches that have
similar features, similar price-versus-performance trade-offs, and similar
internal components
 Cisco positions the 2960 series (family) of switches as full-featured, low-cost
wiring closet switches for enterprises
 That means that 2960 switches uses as access switches
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Cisco Catalyst Switches and the 2960 Switch
Cisco 2960 Catalyst Switch Series
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Switch Status from LEDs
 Switch hardware does include several LEDs that provide some status and
troubleshooting information, both during the time right after the switch has
been powered on and during ongoing operations
 Most Cisco Catalyst switches have some LEDs, including an LED for each
physical Ethernet interface
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Switch Status from LEDs
2960 LEDs and a Mode Button
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Switch Status from LEDs
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Switch Status from LEDs
 SYST LED provides a quick overall status of the switch
 Off: The switch is not powered on
 On (green): The switch is powered on and operational (Cisco IOS has been
loaded)
 On (amber): The system has power, but is not functioning properly
 To move to another port LED mode, the engineer simply presses the mode
button another time or two.
 STAT mode, each port LED implies the state of the matching port, as follows:
 Off: The link is currently not working (including if shut down)
 Solid green: The link is working, but there’s no current traffic
 Flashing green: The link is working, and traffic is currently passing over the
interface
 Flashing amber: The port is blocked by spanning tree
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Accessing the Cisco IOS CLI
 Cisco switches need some kind of operating system software. Cisco calls this
OS the Internetwork Operating System (IOS)
 Cisco IOS Software for Catalyst switches implements and controls logic and
functions performed by a Cisco switch.
 Besides controlling the switch’s performance and behavior, Cisco IOS also
defines an interface for humans called the CLI.
 The Cisco IOS CLI allows the user to use a terminal emulation program,
which accepts text entered by the user. When the user presses Enter, the
terminal emulator sends that text to the switch
 The switch processes the text as if it is a command, does what the
command says, and sends text back to the terminal emulator
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Accessing the Cisco IOS CLI
 The switch CLI can be accessed through three methods: the console, Telnet,
and Secure Shell (SSH)
 Telnet and SSH use the IP network in which the switch resides to reach the
switch
 The console is a physical port built specifically to allow access to the CLI
 Console access requires both a physical connection between a PC and the
switch’s console port, as well as some software on the PC
 Telnet and SSH require software on the user’s device, but they rely on the
existing TCP/IP network to transmit data
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Accessing the Cisco IOS CLI
CLI Access
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Cabling the Console Connection
 The physical console connection, both old and new, uses three main
components:
1. The physical console port on the switch
2. A physical serial port on the PC
3. A cable that works with the console and serial ports
 However, the physical cabling details have changed slowly over time, mainly
because of advances and changes with PC hardware
 Older console connections use a PC serial port, a console cable, and an
RJ-45 connector on the switch
 The PC serial port typically has a D-shell connector with nine pins (often called
a DB-9) Older switches, as well as some current models, use an RJ-45
connector for the console port
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Cabling the Console Connection
Console Cable
RJ-45 Console port
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Cabling the Console Connection
A standard USB to RS232 DB9 Serial Adapter Cable can be use to connect the
console cable to USB port on PC
USB to RS232 DB9 Serial Adapter Cable
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Cabling the Console Connection
Console Cable uses rollover cable pinouts. It uses eight wires, rolling the wire
at pin 1 to pin 8, pin 2 to pin 7, pin 3 to pin 6, and so on
Cisco has also begun building newer routers and switches with USB ports for
console access as well. In the simplest form, you can use any USB port on the
PC, with a USB cable, connected to the USB console port on the switch or
router
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Cabling the Console Connection
Console Connection to a Switch
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Configuring the Terminal Emulator for the Console
 After the PC is physically connected to the console port, a terminal emulator
software package must be installed and configured on the PC.
 The terminal emulator software treats all data as text.
 The emulator must be configured to use the PC’s serial port to match the
settings on the switch’s console port settings. The default console port settings
on a switch are as follows:
 9600 bits/second
 No hardware flow control
 8-bit ASCII
 No parity bits
 1 stop bit
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Configuring the Terminal Emulator for the Console
Terminal Settings for Console Access
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Accessing the CLI with Telnet and SSH
 The TCP/IP Telnet application allows a terminal emulator to communicate with
another willing device.
 Telnet uses an IP network to send and receive the data, rather than a
specialized cable and physical port on the device.
 The Telnet application protocols call the terminal emulator a Telnet client and
the device that listens for commands and replies to them a Telnet server.
 Telnet is a TCP based application layer protocol that uses well-known port 23
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Accessing the CLI with Telnet and SSH
 To use Telnet, the user must install a Telnet client software package on his or
her PC
 The switch runs Telnet server software by default, but the switch does need
to have an IP address configured so that it can send and receive IP packets
 Additionally, the network between the PC and switch needs to be up and
working so that the PC and switch can exchange IP packets
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Accessing the CLI with Telnet and SSH
 While Telnet works well, many network engineers instead use Secure Shell
(SSH) to overcome a serious security problem with Telnet
 Telnet sends all data (including any username and password for login to the
switch) as clear-text data
 SSH encrypts the contents of all messages, including the passwords,
avoiding the possibility of someone capturing packets in the network and
stealing the password to network devices
 SSH uses TCP, using well-known port 22
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Password Security for CLI Access
 By default, a switch allows console access only.
 when the Telnet and/or SSH access enabled, it is necessary to enable
password security so that only authorized people have access to the CLI
 To add basic password checking for the console and for Telnet, the engineer
needs to configure a couple of basic commands
 Cisco switches refer to the console as a console line—specifically, line console
0
 Switches support 16 concurrent Telnet sessions, referenced as virtual terminal
(vty) lines 0 through 15
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
Password Security for CLI Access
 SSH uses public key cryptography to exchange a shared session key, which
in turn is used for encryption
 Additionally, SSH requires slightly better login security, requiring at least a
password and a username
CLI Password Configuration: Console and Telnet
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
User and Enable (Privileged) Modes
 User EXEC mode, sometimes also called user mode, allows the user to look
around but not break anything
 Cisco IOS supports a more powerful EXEC mode called enable mode (also
known as privileged mode or privileged EXEC mode)
 For example, you can use the reload command, which tells the switch to
reinitialize or reboot Cisco IOS, only from enable mode.
 If the command prompt lists the host name followed by a >, the user is in user
mode; if it is the host name followed by the #, the user is in enable mode.
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
User and Enable (Privileged) Modes
 All three CLI access methods covered so far (console, Telnet, and SSH) place
the user in an area of the CLI called user EXEC mode
 User EXEC mode, sometimes also called user mode, allows the user to look
around but not break anything
 Cisco IOS supports a more powerful EXEC mode called enable mode (also
known as privileged mode or privileged EXEC mode)
 If the command prompt lists the host name followed by a >, the user is in user
mode; if it is the host name followed by the #, the user is in enable mode
 The commands that can be used in either user (EXEC) mode or enable
(EXEC) mode are called EXEC commands
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
User and Enable (Privileged) Modes
User and Privileged Modes
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
CLI Help Features
Cisco IOS Software Command Help
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
CLI Help Features
Key Sequences for
Command Edit and
Recall
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
The debug and show Commands
 The single most popular Cisco IOS command is the show command.
 The show command has a large variety of options, and with those options, you
can find the status of almost every feature of Cisco IOS
 The debug command has a similar role as compared with the show
command.
 However, instead of just listing messages about the current status, the debug
command asks the switch to continue monitoring different processes in the
switch. The switch then sends ongoing messages to the user when different
events occur
 The effects of the show and debug commands can be compared to a
photograph (show command) and a movie (debug command)
Accessing the Cisco Catalyst 2960 Switch
CLI
©2015 Amir Jafari – www.amir-Jafari.com
The debug and show Commands
 IOS reacts to debug commands by creating log messages related to that
debug command’s options
 Any user logged in can choose to view the log messages, just by using the
terminal monitor command from enable mode
 Cisco IOS doesn't send log messages to a terminal session over IP(telnet or
SSH connections).If you want logging messages from IOS to appear on the
terminal, use terminal monitor command
 A reload of the switch disables all currently enabled debug options.
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
Configuring Cisco IOS Software
 Configuration mode is another mode for the Cisco CLI, similar to user mode
and privileged mode
 User mode lets you issue nondisruptive commands and displays some
information
 Privileged mode supports a superset of commands compared to user mode,
including commands that might harm the switch
 None of the commands in user or privileged mode changes the switch’s
configuration
 Configuration mode accepts configuration commands—commands that tell the
switch the details of what to do and how to do it
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
Configuring Cisco IOS Software
 Commands entered in configuration mode update the active configuration file
 These changes to the configuration occur immediately each time you press
the Enter key at the end of a command
CLI Configuration Mode Versus EXEC Modes
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
Configuration Submodes and Contexts
 Configuration mode itself contains a multitude of subcommand modes
 Context-setting commands move you from one configuration subcommand
mode, or context, to another
 The text inside parentheses in the command prompt identifies the
configuration mode.
Common Switch Configuration Modes
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
Configuration Submodes and Contexts
Navigation In and Out of Switch Configuration
Modes
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
Storing Switch Configuration Files
The four main types of memory found in Cisco switches:
1) RAM: Sometimes called DRAM, for dynamic random-access memory, RAM is
used by the
switch just as it is used by any other computer: for working storage. The running
(active) configuration file is stored here.
2) ROM: Read-only memory (ROM) stores a bootstrap (or boothelper) program
that is loaded when the switch first powers on.
This bootstrap program then finds the full Cisco IOS image and manages the
process of loading Cisco IOS into RAM, at which point Cisco IOS takes over
operation of the switch
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
Storing Switch Configuration Files
3) Flash memory: Either a chip inside the switch or a removable memory
card, flash memory stores fully functional Cisco IOS images and is the default
location where the switch gets its Cisco IOS at boot time. Flash memory also
can be used to store any other files, including backup copies of configuration
files
4) NVRAM: Nonvolatile RAM (NVRAM) stores the initial or startup
configuration file that is used when the switch is first powered on and when the
switch is reloaded
Cisco Switch Memory Types
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
Storing Switch Configuration Files
 When you use configuration mode, you change only the running config file
 If the switch lost power, all that configuration would be lost. If you want to keep
that configuration, you have to copy the running config file into NVRAM,
overwriting the old startup config file
Names and Purposes of the Two Main Cisco IOS
Configuration Files
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
Copying and Erasing Configuration Files
 The most basic method for moving configuration files in and out of a switch
is to use the copy command to copy files between RAM or NVRAM on a
switch and a TFTP server
 The commands for copying Cisco IOS configurations can be summarized as
follows:
copy {tftp | running-config | startup-config} {tftp | running-config | startup-
config}
 The first set of parameters enclosed in braces ({ }) is the “from” location; the
next set of parameters is the “to” location
 The copy command always replaces the existing file when the file is copied
into NVRAM or into a TFTP server
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
Copying and Erasing Configuration Files
 When the copy command copies a configuration file into the running config
file in RAM, the configuration file in RAM is not replaced, but is merged
instead
 Three commands simply erase the contents of the NVRAM configuration file:
1. write erase
2. erase startup-config
3. erase nvram
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
Copying and Erasing Configuration Files
Locations for Copying and Results from Copy
Operations
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
Initial Configuration (Setup Mode)
 Setup mode leads a switch administrator by asking questions that prompt
the administrator for basic configuration parameters.
 After the administrator answers the questions, IOS builds a configuration file,
saves it as the startup config, and also loads it as the running config to start
using the new configuration
 When a Cisco switch or router initializes, but the startup config file is empty,
the switch or router asks the console user if he wants to use setup
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
Initial Configuration (Setup Mode)
Getting into Setup Mode
Configuring Cisco IOS Software
©2015 Amir Jafari – www.amir-Jafari.com
IOS Version and Other Reload Facts
The show version command does list information about the IOS, including the
version of IOS software:
 The IOS version
 Time since last load of the IOS
 Reason for last load of the IOS
 Number of Fast Ethernet interfaces
 Number of Gigabit Ethernet interfaces
 Switch model number
Command References
©2015 Amir Jafari – www.amir-Jafari.com
Command References
Configuration Commands
Command References
©2015 Amir Jafari – www.amir-Jafari.com
Command References
EXEC Command Reference
Installing and Operating Cisco LAN
Switches
©2015 Amir Jafari – www.amir-Jafari.com
References
1) Cisco Systems, Inc, www.cisco.com/
2) Wendell Odom ,”Cisco CCENT/CCNA ICND1 100-101 Official Cert Guide”,
Cisco Press, USA, 2013

More Related Content

Viewers also liked

CCCNA R&S-04-Fundamentals of WANs
CCCNA R&S-04-Fundamentals of WANsCCCNA R&S-04-Fundamentals of WANs
CCCNA R&S-04-Fundamentals of WANsAmir Jafari
 
CCNA R&S-18-Analyzing Existing Subnets
CCNA R&S-18-Analyzing Existing SubnetsCCNA R&S-18-Analyzing Existing Subnets
CCNA R&S-18-Analyzing Existing SubnetsAmir Jafari
 
CCNA R&S-17-Analyzing Subnet Masks
CCNA R&S-17-Analyzing Subnet MasksCCNA R&S-17-Analyzing Subnet Masks
CCNA R&S-17-Analyzing Subnet MasksAmir Jafari
 
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...Amir Jafari
 
CCNA R&S-20-Configuring IPv4 Addresses and Routes
CCNA R&S-20-Configuring IPv4 Addresses and RoutesCCNA R&S-20-Configuring IPv4 Addresses and Routes
CCNA R&S-20-Configuring IPv4 Addresses and RoutesAmir Jafari
 
CCNA R&S-11-Troubleshooting Ethernet LANs
CCNA R&S-11-Troubleshooting Ethernet LANsCCNA R&S-11-Troubleshooting Ethernet LANs
CCNA R&S-11-Troubleshooting Ethernet LANsAmir Jafari
 
CCNA R&S-09-Configuring Ethernet Switching
CCNA R&S-09-Configuring Ethernet SwitchingCCNA R&S-09-Configuring Ethernet Switching
CCNA R&S-09-Configuring Ethernet SwitchingAmir Jafari
 
CCNA R&S-15-Perspectives on IPv4 Subnetting
CCNA R&S-15-Perspectives on IPv4 SubnettingCCNA R&S-15-Perspectives on IPv4 Subnetting
CCNA R&S-15-Perspectives on IPv4 SubnettingAmir Jafari
 
CCNA R&S-01-Introduction to Cisco Certified Network Associate
CCNA R&S-01-Introduction to Cisco Certified Network AssociateCCNA R&S-01-Introduction to Cisco Certified Network Associate
CCNA R&S-01-Introduction to Cisco Certified Network AssociateAmir Jafari
 
CCNA R&S-12-Spanning Tree Protocol Concepts
CCNA R&S-12-Spanning Tree Protocol ConceptsCCNA R&S-12-Spanning Tree Protocol Concepts
CCNA R&S-12-Spanning Tree Protocol ConceptsAmir Jafari
 
CCNA R&S-16-Analyzing Classful IPv4 Networks
CCNA R&S-16-Analyzing Classful IPv4 NetworksCCNA R&S-16-Analyzing Classful IPv4 Networks
CCNA R&S-16-Analyzing Classful IPv4 NetworksAmir Jafari
 

Viewers also liked (11)

CCCNA R&S-04-Fundamentals of WANs
CCCNA R&S-04-Fundamentals of WANsCCCNA R&S-04-Fundamentals of WANs
CCCNA R&S-04-Fundamentals of WANs
 
CCNA R&S-18-Analyzing Existing Subnets
CCNA R&S-18-Analyzing Existing SubnetsCCNA R&S-18-Analyzing Existing Subnets
CCNA R&S-18-Analyzing Existing Subnets
 
CCNA R&S-17-Analyzing Subnet Masks
CCNA R&S-17-Analyzing Subnet MasksCCNA R&S-17-Analyzing Subnet Masks
CCNA R&S-17-Analyzing Subnet Masks
 
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...
 
CCNA R&S-20-Configuring IPv4 Addresses and Routes
CCNA R&S-20-Configuring IPv4 Addresses and RoutesCCNA R&S-20-Configuring IPv4 Addresses and Routes
CCNA R&S-20-Configuring IPv4 Addresses and Routes
 
CCNA R&S-11-Troubleshooting Ethernet LANs
CCNA R&S-11-Troubleshooting Ethernet LANsCCNA R&S-11-Troubleshooting Ethernet LANs
CCNA R&S-11-Troubleshooting Ethernet LANs
 
CCNA R&S-09-Configuring Ethernet Switching
CCNA R&S-09-Configuring Ethernet SwitchingCCNA R&S-09-Configuring Ethernet Switching
CCNA R&S-09-Configuring Ethernet Switching
 
CCNA R&S-15-Perspectives on IPv4 Subnetting
CCNA R&S-15-Perspectives on IPv4 SubnettingCCNA R&S-15-Perspectives on IPv4 Subnetting
CCNA R&S-15-Perspectives on IPv4 Subnetting
 
CCNA R&S-01-Introduction to Cisco Certified Network Associate
CCNA R&S-01-Introduction to Cisco Certified Network AssociateCCNA R&S-01-Introduction to Cisco Certified Network Associate
CCNA R&S-01-Introduction to Cisco Certified Network Associate
 
CCNA R&S-12-Spanning Tree Protocol Concepts
CCNA R&S-12-Spanning Tree Protocol ConceptsCCNA R&S-12-Spanning Tree Protocol Concepts
CCNA R&S-12-Spanning Tree Protocol Concepts
 
CCNA R&S-16-Analyzing Classful IPv4 Networks
CCNA R&S-16-Analyzing Classful IPv4 NetworksCCNA R&S-16-Analyzing Classful IPv4 Networks
CCNA R&S-16-Analyzing Classful IPv4 Networks
 

More from Amir Jafari

CCNA Lab 3-VLAN Configuration on Switch
CCNA Lab 3-VLAN Configuration on SwitchCCNA Lab 3-VLAN Configuration on Switch
CCNA Lab 3-VLAN Configuration on SwitchAmir Jafari
 
CCNA Lab 2-Configuring a Switch Part II
CCNA Lab 2-Configuring a Switch Part IICCNA Lab 2-Configuring a Switch Part II
CCNA Lab 2-Configuring a Switch Part IIAmir Jafari
 
CCNA Lab 1-Configuring a Switch Part I
CCNA Lab 1-Configuring a Switch Part ICCNA Lab 1-Configuring a Switch Part I
CCNA Lab 1-Configuring a Switch Part IAmir Jafari
 
CCNA Voice 640-461- Part 4 historic voice-digital connectivity-part 2
CCNA Voice 640-461- Part 4  historic voice-digital connectivity-part 2CCNA Voice 640-461- Part 4  historic voice-digital connectivity-part 2
CCNA Voice 640-461- Part 4 historic voice-digital connectivity-part 2Amir Jafari
 
Performance evaluation-of-ieee-802.11p-for-vehicular-communication-networks
Performance evaluation-of-ieee-802.11p-for-vehicular-communication-networksPerformance evaluation-of-ieee-802.11p-for-vehicular-communication-networks
Performance evaluation-of-ieee-802.11p-for-vehicular-communication-networksAmir Jafari
 
Performance Evaluation Of IEEE 802.11p For Vehicular Communication Networks
Performance Evaluation Of IEEE 802.11p For Vehicular Communication NetworksPerformance Evaluation Of IEEE 802.11p For Vehicular Communication Networks
Performance Evaluation Of IEEE 802.11p For Vehicular Communication NetworksAmir Jafari
 

More from Amir Jafari (7)

CCNA Lab 3-VLAN Configuration on Switch
CCNA Lab 3-VLAN Configuration on SwitchCCNA Lab 3-VLAN Configuration on Switch
CCNA Lab 3-VLAN Configuration on Switch
 
CCNA Lab 2-Configuring a Switch Part II
CCNA Lab 2-Configuring a Switch Part IICCNA Lab 2-Configuring a Switch Part II
CCNA Lab 2-Configuring a Switch Part II
 
CCNA Lab 1-Configuring a Switch Part I
CCNA Lab 1-Configuring a Switch Part ICCNA Lab 1-Configuring a Switch Part I
CCNA Lab 1-Configuring a Switch Part I
 
Network design
Network designNetwork design
Network design
 
CCNA Voice 640-461- Part 4 historic voice-digital connectivity-part 2
CCNA Voice 640-461- Part 4  historic voice-digital connectivity-part 2CCNA Voice 640-461- Part 4  historic voice-digital connectivity-part 2
CCNA Voice 640-461- Part 4 historic voice-digital connectivity-part 2
 
Performance evaluation-of-ieee-802.11p-for-vehicular-communication-networks
Performance evaluation-of-ieee-802.11p-for-vehicular-communication-networksPerformance evaluation-of-ieee-802.11p-for-vehicular-communication-networks
Performance evaluation-of-ieee-802.11p-for-vehicular-communication-networks
 
Performance Evaluation Of IEEE 802.11p For Vehicular Communication Networks
Performance Evaluation Of IEEE 802.11p For Vehicular Communication NetworksPerformance Evaluation Of IEEE 802.11p For Vehicular Communication Networks
Performance Evaluation Of IEEE 802.11p For Vehicular Communication Networks
 

Recently uploaded

SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 

Recently uploaded (20)

SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 

CCNA R&S-08-Installing and Operating Cisco LAN Switches

  • 1. ©2015 Amir Jafari – www.amir-Jafari.com Routing and Switching 200-120 8 - Installing and Operating Cisco LAN Switches
  • 2. Installing and Operating Cisco LAN Switches ©2015 Amir Jafari – www.amir-Jafari.com Agenda  Accessing the Cisco Catalyst 2960 Switch CLI  Configuring Cisco IOS Software
  • 3. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Accessing the Cisco Catalyst 2960 Switch CLI  Cisco uses the concept of a command-line interface (CLI) with its router products and most of its Catalyst LAN switch products  The CLI is a text-based interface in which the user, typically a network engineer, enters a text command and presses Enter  Pressing Enter sends the command to the switch, which tells the device to do something  The switch does what the command says, and in some cases, the switch replies with some messages stating the results of the command  Cisco Catalyst switches also support other methods to both monitor and configure a switch. For example, a switch can provide a web interface
  • 4. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Cisco Catalyst Switches and the 2960 Switch  Within the Cisco Catalyst brand of LAN switches, Cisco produces a wide variety of switch series or families  Each switch series includes several specific models of switches that have similar features, similar price-versus-performance trade-offs, and similar internal components  Cisco positions the 2960 series (family) of switches as full-featured, low-cost wiring closet switches for enterprises  That means that 2960 switches uses as access switches
  • 5. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Cisco Catalyst Switches and the 2960 Switch Cisco 2960 Catalyst Switch Series
  • 6. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Switch Status from LEDs  Switch hardware does include several LEDs that provide some status and troubleshooting information, both during the time right after the switch has been powered on and during ongoing operations  Most Cisco Catalyst switches have some LEDs, including an LED for each physical Ethernet interface
  • 7. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Switch Status from LEDs 2960 LEDs and a Mode Button
  • 8. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Switch Status from LEDs
  • 9. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Switch Status from LEDs  SYST LED provides a quick overall status of the switch  Off: The switch is not powered on  On (green): The switch is powered on and operational (Cisco IOS has been loaded)  On (amber): The system has power, but is not functioning properly  To move to another port LED mode, the engineer simply presses the mode button another time or two.  STAT mode, each port LED implies the state of the matching port, as follows:  Off: The link is currently not working (including if shut down)  Solid green: The link is working, but there’s no current traffic  Flashing green: The link is working, and traffic is currently passing over the interface  Flashing amber: The port is blocked by spanning tree
  • 10. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Accessing the Cisco IOS CLI  Cisco switches need some kind of operating system software. Cisco calls this OS the Internetwork Operating System (IOS)  Cisco IOS Software for Catalyst switches implements and controls logic and functions performed by a Cisco switch.  Besides controlling the switch’s performance and behavior, Cisco IOS also defines an interface for humans called the CLI.  The Cisco IOS CLI allows the user to use a terminal emulation program, which accepts text entered by the user. When the user presses Enter, the terminal emulator sends that text to the switch  The switch processes the text as if it is a command, does what the command says, and sends text back to the terminal emulator
  • 11. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Accessing the Cisco IOS CLI  The switch CLI can be accessed through three methods: the console, Telnet, and Secure Shell (SSH)  Telnet and SSH use the IP network in which the switch resides to reach the switch  The console is a physical port built specifically to allow access to the CLI  Console access requires both a physical connection between a PC and the switch’s console port, as well as some software on the PC  Telnet and SSH require software on the user’s device, but they rely on the existing TCP/IP network to transmit data
  • 12. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Accessing the Cisco IOS CLI CLI Access
  • 13. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Cabling the Console Connection  The physical console connection, both old and new, uses three main components: 1. The physical console port on the switch 2. A physical serial port on the PC 3. A cable that works with the console and serial ports  However, the physical cabling details have changed slowly over time, mainly because of advances and changes with PC hardware  Older console connections use a PC serial port, a console cable, and an RJ-45 connector on the switch  The PC serial port typically has a D-shell connector with nine pins (often called a DB-9) Older switches, as well as some current models, use an RJ-45 connector for the console port
  • 14. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Cabling the Console Connection Console Cable RJ-45 Console port
  • 15. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Cabling the Console Connection A standard USB to RS232 DB9 Serial Adapter Cable can be use to connect the console cable to USB port on PC USB to RS232 DB9 Serial Adapter Cable
  • 16. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Cabling the Console Connection Console Cable uses rollover cable pinouts. It uses eight wires, rolling the wire at pin 1 to pin 8, pin 2 to pin 7, pin 3 to pin 6, and so on Cisco has also begun building newer routers and switches with USB ports for console access as well. In the simplest form, you can use any USB port on the PC, with a USB cable, connected to the USB console port on the switch or router
  • 17. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Cabling the Console Connection Console Connection to a Switch
  • 18. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Configuring the Terminal Emulator for the Console  After the PC is physically connected to the console port, a terminal emulator software package must be installed and configured on the PC.  The terminal emulator software treats all data as text.  The emulator must be configured to use the PC’s serial port to match the settings on the switch’s console port settings. The default console port settings on a switch are as follows:  9600 bits/second  No hardware flow control  8-bit ASCII  No parity bits  1 stop bit
  • 19. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Configuring the Terminal Emulator for the Console Terminal Settings for Console Access
  • 20. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Accessing the CLI with Telnet and SSH  The TCP/IP Telnet application allows a terminal emulator to communicate with another willing device.  Telnet uses an IP network to send and receive the data, rather than a specialized cable and physical port on the device.  The Telnet application protocols call the terminal emulator a Telnet client and the device that listens for commands and replies to them a Telnet server.  Telnet is a TCP based application layer protocol that uses well-known port 23
  • 21. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Accessing the CLI with Telnet and SSH  To use Telnet, the user must install a Telnet client software package on his or her PC  The switch runs Telnet server software by default, but the switch does need to have an IP address configured so that it can send and receive IP packets  Additionally, the network between the PC and switch needs to be up and working so that the PC and switch can exchange IP packets
  • 22. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Accessing the CLI with Telnet and SSH  While Telnet works well, many network engineers instead use Secure Shell (SSH) to overcome a serious security problem with Telnet  Telnet sends all data (including any username and password for login to the switch) as clear-text data  SSH encrypts the contents of all messages, including the passwords, avoiding the possibility of someone capturing packets in the network and stealing the password to network devices  SSH uses TCP, using well-known port 22
  • 23. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Password Security for CLI Access  By default, a switch allows console access only.  when the Telnet and/or SSH access enabled, it is necessary to enable password security so that only authorized people have access to the CLI  To add basic password checking for the console and for Telnet, the engineer needs to configure a couple of basic commands  Cisco switches refer to the console as a console line—specifically, line console 0  Switches support 16 concurrent Telnet sessions, referenced as virtual terminal (vty) lines 0 through 15
  • 24. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com Password Security for CLI Access  SSH uses public key cryptography to exchange a shared session key, which in turn is used for encryption  Additionally, SSH requires slightly better login security, requiring at least a password and a username CLI Password Configuration: Console and Telnet
  • 25. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com User and Enable (Privileged) Modes  User EXEC mode, sometimes also called user mode, allows the user to look around but not break anything  Cisco IOS supports a more powerful EXEC mode called enable mode (also known as privileged mode or privileged EXEC mode)  For example, you can use the reload command, which tells the switch to reinitialize or reboot Cisco IOS, only from enable mode.  If the command prompt lists the host name followed by a >, the user is in user mode; if it is the host name followed by the #, the user is in enable mode.
  • 26. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com User and Enable (Privileged) Modes  All three CLI access methods covered so far (console, Telnet, and SSH) place the user in an area of the CLI called user EXEC mode  User EXEC mode, sometimes also called user mode, allows the user to look around but not break anything  Cisco IOS supports a more powerful EXEC mode called enable mode (also known as privileged mode or privileged EXEC mode)  If the command prompt lists the host name followed by a >, the user is in user mode; if it is the host name followed by the #, the user is in enable mode  The commands that can be used in either user (EXEC) mode or enable (EXEC) mode are called EXEC commands
  • 27. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com User and Enable (Privileged) Modes User and Privileged Modes
  • 28. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com CLI Help Features Cisco IOS Software Command Help
  • 29. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com CLI Help Features Key Sequences for Command Edit and Recall
  • 30. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com The debug and show Commands  The single most popular Cisco IOS command is the show command.  The show command has a large variety of options, and with those options, you can find the status of almost every feature of Cisco IOS  The debug command has a similar role as compared with the show command.  However, instead of just listing messages about the current status, the debug command asks the switch to continue monitoring different processes in the switch. The switch then sends ongoing messages to the user when different events occur  The effects of the show and debug commands can be compared to a photograph (show command) and a movie (debug command)
  • 31. Accessing the Cisco Catalyst 2960 Switch CLI ©2015 Amir Jafari – www.amir-Jafari.com The debug and show Commands  IOS reacts to debug commands by creating log messages related to that debug command’s options  Any user logged in can choose to view the log messages, just by using the terminal monitor command from enable mode  Cisco IOS doesn't send log messages to a terminal session over IP(telnet or SSH connections).If you want logging messages from IOS to appear on the terminal, use terminal monitor command  A reload of the switch disables all currently enabled debug options.
  • 32. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com Configuring Cisco IOS Software  Configuration mode is another mode for the Cisco CLI, similar to user mode and privileged mode  User mode lets you issue nondisruptive commands and displays some information  Privileged mode supports a superset of commands compared to user mode, including commands that might harm the switch  None of the commands in user or privileged mode changes the switch’s configuration  Configuration mode accepts configuration commands—commands that tell the switch the details of what to do and how to do it
  • 33. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com Configuring Cisco IOS Software  Commands entered in configuration mode update the active configuration file  These changes to the configuration occur immediately each time you press the Enter key at the end of a command CLI Configuration Mode Versus EXEC Modes
  • 34. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com Configuration Submodes and Contexts  Configuration mode itself contains a multitude of subcommand modes  Context-setting commands move you from one configuration subcommand mode, or context, to another  The text inside parentheses in the command prompt identifies the configuration mode. Common Switch Configuration Modes
  • 35. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com Configuration Submodes and Contexts Navigation In and Out of Switch Configuration Modes
  • 36. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com Storing Switch Configuration Files The four main types of memory found in Cisco switches: 1) RAM: Sometimes called DRAM, for dynamic random-access memory, RAM is used by the switch just as it is used by any other computer: for working storage. The running (active) configuration file is stored here. 2) ROM: Read-only memory (ROM) stores a bootstrap (or boothelper) program that is loaded when the switch first powers on. This bootstrap program then finds the full Cisco IOS image and manages the process of loading Cisco IOS into RAM, at which point Cisco IOS takes over operation of the switch
  • 37. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com Storing Switch Configuration Files 3) Flash memory: Either a chip inside the switch or a removable memory card, flash memory stores fully functional Cisco IOS images and is the default location where the switch gets its Cisco IOS at boot time. Flash memory also can be used to store any other files, including backup copies of configuration files 4) NVRAM: Nonvolatile RAM (NVRAM) stores the initial or startup configuration file that is used when the switch is first powered on and when the switch is reloaded Cisco Switch Memory Types
  • 38. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com Storing Switch Configuration Files  When you use configuration mode, you change only the running config file  If the switch lost power, all that configuration would be lost. If you want to keep that configuration, you have to copy the running config file into NVRAM, overwriting the old startup config file Names and Purposes of the Two Main Cisco IOS Configuration Files
  • 39. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com Copying and Erasing Configuration Files  The most basic method for moving configuration files in and out of a switch is to use the copy command to copy files between RAM or NVRAM on a switch and a TFTP server  The commands for copying Cisco IOS configurations can be summarized as follows: copy {tftp | running-config | startup-config} {tftp | running-config | startup- config}  The first set of parameters enclosed in braces ({ }) is the “from” location; the next set of parameters is the “to” location  The copy command always replaces the existing file when the file is copied into NVRAM or into a TFTP server
  • 40. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com Copying and Erasing Configuration Files  When the copy command copies a configuration file into the running config file in RAM, the configuration file in RAM is not replaced, but is merged instead  Three commands simply erase the contents of the NVRAM configuration file: 1. write erase 2. erase startup-config 3. erase nvram
  • 41. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com Copying and Erasing Configuration Files Locations for Copying and Results from Copy Operations
  • 42. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com Initial Configuration (Setup Mode)  Setup mode leads a switch administrator by asking questions that prompt the administrator for basic configuration parameters.  After the administrator answers the questions, IOS builds a configuration file, saves it as the startup config, and also loads it as the running config to start using the new configuration  When a Cisco switch or router initializes, but the startup config file is empty, the switch or router asks the console user if he wants to use setup
  • 43. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com Initial Configuration (Setup Mode) Getting into Setup Mode
  • 44. Configuring Cisco IOS Software ©2015 Amir Jafari – www.amir-Jafari.com IOS Version and Other Reload Facts The show version command does list information about the IOS, including the version of IOS software:  The IOS version  Time since last load of the IOS  Reason for last load of the IOS  Number of Fast Ethernet interfaces  Number of Gigabit Ethernet interfaces  Switch model number
  • 45. Command References ©2015 Amir Jafari – www.amir-Jafari.com Command References Configuration Commands
  • 46. Command References ©2015 Amir Jafari – www.amir-Jafari.com Command References EXEC Command Reference
  • 47. Installing and Operating Cisco LAN Switches ©2015 Amir Jafari – www.amir-Jafari.com References 1) Cisco Systems, Inc, www.cisco.com/ 2) Wendell Odom ,”Cisco CCENT/CCNA ICND1 100-101 Official Cert Guide”, Cisco Press, USA, 2013

Editor's Notes

  1. Beginning course details and/or books/materials needed for a class/project.
  2. Beginning course details and/or books/materials needed for a class/project.
  3. Beginning course details and/or books/materials needed for a class/project.
  4. Beginning course details and/or books/materials needed for a class/project.
  5. Beginning course details and/or books/materials needed for a class/project.
  6. Beginning course details and/or books/materials needed for a class/project.
  7. Beginning course details and/or books/materials needed for a class/project.
  8. Beginning course details and/or books/materials needed for a class/project.
  9. Beginning course details and/or books/materials needed for a class/project.
  10. Beginning course details and/or books/materials needed for a class/project.
  11. Beginning course details and/or books/materials needed for a class/project.
  12. Beginning course details and/or books/materials needed for a class/project.
  13. Beginning course details and/or books/materials needed for a class/project.
  14. Beginning course details and/or books/materials needed for a class/project.
  15. Beginning course details and/or books/materials needed for a class/project.
  16. Beginning course details and/or books/materials needed for a class/project.
  17. Beginning course details and/or books/materials needed for a class/project.
  18. Beginning course details and/or books/materials needed for a class/project.
  19. Beginning course details and/or books/materials needed for a class/project.
  20. Beginning course details and/or books/materials needed for a class/project.
  21. Beginning course details and/or books/materials needed for a class/project.
  22. Beginning course details and/or books/materials needed for a class/project.
  23. Beginning course details and/or books/materials needed for a class/project.
  24. Beginning course details and/or books/materials needed for a class/project.
  25. Beginning course details and/or books/materials needed for a class/project.
  26. Beginning course details and/or books/materials needed for a class/project.
  27. Beginning course details and/or books/materials needed for a class/project.
  28. Beginning course details and/or books/materials needed for a class/project.
  29. Beginning course details and/or books/materials needed for a class/project.
  30. Beginning course details and/or books/materials needed for a class/project.
  31. Beginning course details and/or books/materials needed for a class/project.
  32. Beginning course details and/or books/materials needed for a class/project.
  33. Beginning course details and/or books/materials needed for a class/project.
  34. Beginning course details and/or books/materials needed for a class/project.
  35. Beginning course details and/or books/materials needed for a class/project.
  36. Beginning course details and/or books/materials needed for a class/project.
  37. Beginning course details and/or books/materials needed for a class/project.
  38. Beginning course details and/or books/materials needed for a class/project.
  39. Beginning course details and/or books/materials needed for a class/project.
  40. Beginning course details and/or books/materials needed for a class/project.
  41. Beginning course details and/or books/materials needed for a class/project.
  42. Beginning course details and/or books/materials needed for a class/project.
  43. Beginning course details and/or books/materials needed for a class/project.
  44. Beginning course details and/or books/materials needed for a class/project.
  45. Beginning course details and/or books/materials needed for a class/project.
  46. Beginning course details and/or books/materials needed for a class/project.