Chapter 11
Chapter 11
Chapter 11
Objectives
Define the role of the Internetworking Operating System (IOS)
Define the purpose of a configuration file
Copyright 2008
Version 4.0
Ch 11 - 3
IOS
IOS is the system software in Cisco devices
basic routing and switching functions reliable and secure access to networked resources network scalability
Copyright 2008
Version 4.0
Ch 11 - 4
Access Methods
Console
also known as the CTY line uses a low-speed connection to a computer or terminal a management port that provides out-of-band access used to access a device when the networking services have not been started or have failed initial configuration of the device password recovery disaster recovery procedures and troubleshooting when remote access is not possible
Copyright 2008
Version 4.0
Ch 11 - 5
AUX
establish a CLI session remotely via a telephone dialup connection using a modem connected to the AUX port can also be used locally when there are problems using the console port
Copyright 2008
Version 4.0
Ch 11 - 6
Configuration Files
Configuration files contain the software commands used to customize the device Startup configuration file
used during startup to configure the device stored in NVRAM loaded into RAM
Copyright 2008
Version 4.0
Ch 11 - 7
IOS Modes
CLI uses a hierarchical structure for the modes
user executive mode (user EXEC) privileged executive mode (privileged EXEC) global configuration mode specific configuration mode
Each mode is distinguished with a distinctive prompt Hierarchical modal structure can be configured to provide security
different authentication can be used to control the level of access
Copyright 2008
Version 4.0
Ch 11 - 8
Copyright 2008
Version 4.0
Ch 11 - 9
Command Prompts
Each mode is uniquely identified by a command-line prompt
prompt is composed of words and symbols to the left every prompt begins with the device name by default
user executive privileged executive global configuration interface
Copyright 2008
Version 4.0
Ch 11 - 10
Copyright 2008
Copyright 2008
Version 4.0
Ch 11 - 12
Command Structure
Command is the initial word entered in the command line
commands are not case-sensitive
Copyright 2008
Version 4.0
Ch 11 - 13
Italic text indicates arguments where the user supplies values Square brackets enclose an optional element (keyword or argument) A vertical line indicates a choice within an optional or required set of keywords or arguments Square brackets enclosing keywords or arguments separated by a vertical line indicate an optional choice Braces enclosing keywords or arguments separated by a vertical line indicate a required choice
Copyright 2008
Version 4.0
Ch 11 - 14
Copyright 2008
Version 4.0
Ch 11 - 15
CLI Help
Context-sensitive help
provides a list of commands and the arguments associated with those commands within the context of the current mode enter the question mark, ?, at any prompt without the Enter key get a list of available commands at the CLI prompt display a list of commands or keywords that start with a specific character or characters determine which options, keywords or arguments are matched with a specific command
Copyright 2008
Version 4.0
Ch 11 - 16
Copyright 2008
Version 4.0
Ch 11 - 17
Copyright 2008
Version 4.0
Ch 11 - 18
Esc B
Esc F Right arrow or Ctrl-F Ctrl-E Up arrow or Ctrl-P Ctrl-R or Ctrl-l or Ctrl-L
Copyright 2008
Version 4.0
Ch 11 - 19
Enter key
Space key Any alphanumeric key
Delete, the key to erase to the right of the cursor, is not recognized by terminal emulation programs. Control key press and hold the Ctrl key and then press the specified letter key. Escape sequences press and release the Esc key, and then press the letter key
Copyright 2008
Version 4.0
Ch 11 - 20
show command can be abbreviated to sh show interfaces can be abbreviated to show int or sh int
keyword is abbreviated both the command and keyword are abbreviated
Copyright 2008
Version 4.0
Ch 11 - 21
Examination Command
The show command is the basic examination command to verify and troubleshoot network operation Use the show ? command to get a list of available commands
Copyright 2008
Version 4.0
Ch 11 - 22
show version
Displays information about the currently loaded software version, along with the hardware and device information
IOS software version (stored in flash), bootstrap version (stored in boot ROM), system up-time, system restart info, software image name, router type and processor type, memory type and allocation (shared/main), software features, hardware interfaces and configuration register
Copyright 2008
Version 4.0
Ch 11 - 23
show Commands
Command
show arp show mac-address-table show startup-config show running-config show ip interfaces show ip interface slot/port show ip interface brief
Description
Displays the ARP table of the device. Displays the MAC table of a switch. Displays the saved configuration in NVRAM. Displays the contents of the currently running configuration file or configuration for a specific interface, or map class information. Displays IPv4 statistics for all interfaces on a router. Displays the statistics for a specific interface. Displays a quick summary of the interfaces and their operational state.
Copyright 2008
Version 4.0
Ch 11 - 24
Copyright 2008
Version 4.0
Ch 11 - 25
specific
exit Specific config Router(config-x)# specific Global config
exit
Router(config)#
Copyright 2008
Version 4.0
Ch 11 - 26
Applying Names
The hostname is configured in global configuration mode
consider the location and purpose of the device
The no hostname command removes the hostname and revert to the factory default hostname
Copyright 2008
Version 4.0
Ch 11 - 28
Configuring Passwords
Passwords are the primary defense against unauthorized access
every device should have locally configured passwords to limit access
Copyright 2008
Console Passwords
Limits device access using the console connection The console port of a device has special privileges
it must be secured with a strong password to prevent unauthorized personnel plugging a cable into the device and gaining access
The line console 0 command is used to enter the line configuration mode for the console
Copyright 2008
Version 4.0
Ch 11 - 30
Copyright 2008
Version 4.0
Ch 11 - 31
Copyright 2008
Version 4.0
Ch 11 - 32
The service password-encryption command applies weak encryption to all unencrypted password
encryption does not apply to passwords sent over the media keeps unauthorized individuals from viewing passwords in the configuration file once encryption is applied, removing the encryption service does not reverse the encryption
Copyright 2008
Version 4.0
Ch 11 - 33
Copyright 2008
Version 4.0
Ch 11 - 34
Copyright 2008
Version 4.0
Ch 11 - 35
Backing Up Configurations
Configuration files can be stored on a Trivial File Transfer Protocol (TFTP) server, a CD, a USB memory stick or a floppy disk
Use the copy running-config tftp command to save the active configuration to a TFTP server
specify the IP address of the TFTP server
Copyright 2008
Version 4.0
Ch 11 - 36
Copyright 2008
Version 4.0
Ch 11 - 37
Copyright 2008
Version 4.0
Ch 11 - 38
Configuring Interfaces
All interfaces are accessed by issuing the interface command at the global configuration prompt.
In the following commands, the type argument includes serial, ethernet, fastethernet, and others:
Router(config)# interface type port Router(config)# interface type slot/port Router(config)# interface type slot/subslot/port
The following command is used to administratively turn off the interface:
Router(config-if)# shutdown
The following command is used to turn on an interface that has been shutdown:
Router(config-if)# no shutdown
The following command is used to quit the current interface configuration mode:
Router(config-if)# exit
When the configuration is complete, the interface is enabled and interface configuration mode is exited.
Copyright 2008 Version 4.0 Ch 11 - 39
Copyright 2008
Version 4.0
Ch 11 - 40
Interface Description
An interface description indicates the purpose of the interface A description can assist in determining the devices or locations connected to the interface
Circuit and contact information can also be embedded in the interface description A description provides useful information for support personnel to understand the scope of the problem which can lead to reaching a resolution faster
Copyright 2008 Version 4.0 Ch 11 - 41
Configuring a Switch
A LAN switch is an intermediary device that interconnects segments and devices within a network
physical interfaces do not have an IP address unlike a router where the physical interfaces are connected to different network segments
Copyright 2008
Version 4.0
Ch 11 - 42
The switch needs a gateway address to communicate outside the local network
the gateway address is assigned with the ip default-gateway command
Copyright 2008
Version 4.0
Ch 11 - 43
Copyright 2008
Version 4.0
Ch 11 - 44
Copyright 2008
Version 4.0
Ch 11 - 45
Copyright 2008
Version 4.0
Ch 11 - 46
Copyright 2008
Version 4.0
Ch 11 - 47
Copyright 2008
Version 4.0
Ch 11 - 48
Copyright 2008
Version 4.0
Ch 11 - 49
Copyright 2008
Version 4.0
Ch 11 - 50
Copyright 2008
Version 4.0
Ch 11 - 51
Security applied to the router interface may prevent it from responding to echo requests
Copyright 2008
Version 4.0
Ch 11 - 52
Copyright 2008
Version 4.0
Ch 11 - 53
Copyright 2008
Version 4.0
Ch 11 - 54
Copyright 2008
Version 4.0
Ch 11 - 55
Measuring the performance at varying times and loads will assist in creating a picture of the overall network performance One method of creating a baseline is to copy and paste the results from an executed ping, trace or other relevant commands into a text file
Copyright 2008
Version 4.0
Ch 11 - 56
Copyright 2008
Version 4.0
Ch 11 - 57
Copyright 2008
Version 4.0
Ch 11 - 58
A ping sweep scans a specified range of IP addresses to collect MAC addresses constructs a table of responding hosts by IP address and MAC address
Copyright 2008
Version 4.0
Ch 11 - 59
Copyright 2008
Version 4.0
Ch 11 - 60