You are on page 1of 70

Chapter 11 - Configuring

and Testing Your Network

CCNA Exploration 4.0


Overview

• Define the role of the Internetwork Operating System


(IOS)
• Use Cisco CLI commands to perform basic router
and switch configuration and verification
• Given a network addressing scheme, select, apply,
and verify appropriate addressing parameters to a
host
• Use common utilities to verify network connectivity
between hosts
• Use common utilities to establish a relative
performance baseline for the network

Học viện mạng Bách khoa - Website: www.bkacad.com


Role of Internetwork Operating System (IOS)

• Identify several classes of devices that have IOS


embedded

Học viện mạng Bách khoa - Website: www.bkacad.com


Role of Internetwork Operating System (IOS)

• Basic routing and switching functions


• Reliable and secure access to networked resources
• Network scalability
• Using Cisco Command Line Interface (CLI) to configuration

Học viện mạng Bách khoa - Website: www.bkacad.com


Học viện mạng Bách khoa - Website: www.bkacad.com
Access Methods

• Access Methods
– Console
– Telnet or SSH
– AUX port

Học viện mạng Bách khoa - Website: www.bkacad.com


Access Methods

• Use the CLI to access various IOS configuration


modes on a device

Học viện mạng Bách khoa - Website: www.bkacad.com


Console

• Console
– Low speed serial connection to directly connect a
computer or terminal to the console port on the router or
switch.
– Provides out-of-band access to a router

• Examples of console use are:


– The initial configuration of the network device
– Disaster recovery procedures and troubleshooting
where remote access is not possible
– Password recovery procedures

Học viện mạng Bách khoa - Website: www.bkacad.com


Telnet and SSH

• Telnet
– Require active networking services on the device.
– Run on layer 7 in OSI model
• Secure Shell (SSH) protocol
– Like telnet but more secure access
– Stronger password
– Uses encryption when transporting session data
– Use can use ssh client on PC name: Putty
http://www.chiark.greenend.org.uk/~sgtatham/putty/dow
nload.html

Học viện mạng Bách khoa - Website: www.bkacad.com


AUX

• Another way to establish a CLI session remotely is via a


telephone dialup connection using a modem
connected to the router's AUX port
• Can used locally, like console port
• Console port is also preferred over the auxiliary port for
troubleshooting because it displays router startup,
debugging, and error messages by default.

Học viện mạng Bách khoa - Website: www.bkacad.com


Role of Internetwork Operating System (IOS)

• Define the purpose of startup config.

Học viện mạng Bách khoa - Website: www.bkacad.com


Role of Internetwork Operating System (IOS)

• Identify the relationship between IOS and config

Học viện mạng Bách khoa - Website: www.bkacad.com


Configuration files

• Contain the Cisco IOS software commands used to


customize the functionality of a Cisco device.
• Commands are parsed (translated and executed) by the
Cisco IOS software when the system is booted (from the
startup-config file) or when commands are entered in the
CLI while in configuration mode.

Học viện mạng Bách khoa - Website: www.bkacad.com


Types of Configuration Files

• The running configuration file


– Used during the current operation of the device
– Changes to the running configuration will immediately
affect the operation of the Cisco device
• The startup configuration file
– Used as the backup configuration and is loaded when
the device is started
– The startup configuration file or startup-config file is
stored in non-volatile RAM (NVRAM)

Học viện mạng Bách khoa - Website: www.bkacad.com


Role of Internetwork Operating System (IOS)

• Recognize that Cisco IOS is modal and describe the


implications of modes.

Học viện mạng Bách khoa - Website: www.bkacad.com


Role of Internetwork Operating System (IOS)

• Define the different modes and identify the mode


prompts in the CLI

Học viện mạng Bách khoa - Website: www.bkacad.com


Học viện mạng Bách khoa - Website: www.bkacad.com
Học viện mạng Bách khoa - Website: www.bkacad.com
Role of Internetwork Operating System (IOS)

• Identify the basic command structure for IOS


commands

Học viện mạng Bách khoa - Website: www.bkacad.com


IOS command Conventions

Học viện mạng Bách khoa - Website: www.bkacad.com


Role of Internetwork Operating System (IOS)

• Identify the types of help and feedback available while


using IOS and use these features to get help, take
shortcuts and ascertain success

Học viện mạng Bách khoa - Website: www.bkacad.com


The Forms of Help

• The IOS has several forms of help available:


– Context-sensitive help
– Command Syntax Check
– Hot Keys and Shortcuts

Học viện mạng Bách khoa - Website: www.bkacad.com


Command Syntax Check

Học viện mạng Bách khoa - Website: www.bkacad.com


Command Syntax Check

Học viện mạng Bách khoa - Website: www.bkacad.com


Hot Keys and Shortcuts

• Tab - Completes the remainder of the command or


keyword
• Ctrl-R - Redisplays a line
• Ctrl-Z - Exits configuration mode and returns to the EXEC
• Down Arrow - Allows user to scroll forward through former
commands
• Up Arrow - Allows 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

Học viện mạng Bách khoa - Website: www.bkacad.com


Examination Commands

• Identify the purpose of the show command and several


of its variations

Học viện mạng Bách khoa - Website: www.bkacad.com


Học viện mạng Bách khoa - Website: www.bkacad.com
Học viện mạng Bách khoa - Website: www.bkacad.com
IOS Configuration mode

• Identify several of the configuration modes, their


purpose and their associated prompt

Học viện mạng Bách khoa - Website: www.bkacad.com


IOS Configuration mode

• Interface mode - to configure one of the network


interfaces (Fa0/0, S0/0/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

Học viện mạng Bách khoa - Website: www.bkacad.com


BASIC CONFIGURATION

Học viện mạng Bách khoa - Website: www.bkacad.com


Naming a Device

• Explain the reasons for naming devices.

Học viện mạng Bách khoa - Website: www.bkacad.com


Naming a Device

• Describe two common approaches to establishing


naming conventions

Học viện mạng Bách khoa - Website: www.bkacad.com


Naming a Device

• To remove the name of a device, use:


– AtlantaHQ(config)# no hostname
– Router(config)#

Học viện mạng Bách khoa - Website: www.bkacad.com


Naming a Device

• Some guidelines for naming conventions are that names


should:
– Start with a letter
– Not contain a space
– End with a letter or digit
– Have characters of only letters, digits, and dashes
– Be 63 characters or fewer

Học viện mạng Bách khoa - Website: www.bkacad.com


Set Password

• The passwords introduced here are:


– Console password - limits device access using the
console connection
– Enable password - limits access to the privileged
EXEC mode
– Enable secret password - encrypted, limits access to
the privileged EXEC mode
– VTY password - limits device access using Telnet

Học viện mạng Bách khoa - Website: www.bkacad.com


Set Password

• Describe the role of passwords in limiting access to


device configurations

Học viện mạng Bách khoa - Website: www.bkacad.com


Set Password

• Describe several ways in which access to a device


configuration can be limited

Học viện mạng Bách khoa - Website: www.bkacad.com


Set Banner

• Use the CLI to set passwords and add banners to a


device

Học viện mạng Bách khoa - Website: www.bkacad.com


Set Banner

• Here are some examples of information to include in a


banner:
– "Use of the device is specifically for authorized
personnel."
– "Activity may be monitored."
– "Legal action will be pursued for any unauthorized use.“
• Command:
– Router(config)#banner motd # Secured system #

Học viện mạng Bách khoa - Website: www.bkacad.com


Manage configuration file

• Trace the steps used to examine the startup config,


make changes to config, and replace the startup config
with the running config

Học viện mạng Bách khoa - Website: www.bkacad.com


Manage configuration file

• Use basic IOS config commands to manage a device.

Học viện mạng Bách khoa - Website: www.bkacad.com


Backup Configuration on TFTP Server

• Backup Configuration on TFTP Server


1. Enter the copy running-config tftp command.
2. Enter the IP address of the host where the configuration
file will be stored.
3. Enter the name to assign to the configuration file.
4. Answer yes to confirm each choice.

Học viện mạng Bách khoa - Website: www.bkacad.com


Removing All Configurations

• Removing All Configurations


– Router# erase startup-config

Học viện mạng Bách khoa - Website: www.bkacad.com


Use a text file to backup and restore config settings

Học viện mạng Bách khoa - Website: www.bkacad.com


Use a text file to backup and restore config settings

• When using HyperTerminal, follow these steps:


1. On the Transfer menu, click Capture Text.
2. Choose the location.
3. Click Start to begin capturing text.
4. Once capture has been started, execute the show
running-config or show startup-config command at the
privileged EXEC prompt. Text displayed in the terminal
window will be placed into the chosen file.
5. View the output to verify that it was not corrupted.

Học viện mạng Bách khoa - Website: www.bkacad.com


Backup Configurations with Text Capture (TeraTerm)

Học viện mạng Bách khoa - Website: www.bkacad.com


Backup Configurations with Text Capture (TeraTerm)

1. On the File menu, click Log.


2. Choose the location. TeraTerm will begin capturing text.
3. Once capture has been started, execute the show
running-config or show startup-config command at the
privileged EXEC prompt. Text displayed in the terminal
window will be placed into the chosen file.
4. When the capture is complete, select Close in the
TeraTerm: Log window.
5. View the output to verify that it was not corrupted.

Học viện mạng Bách khoa - Website: www.bkacad.com


Restoring Text Configurations
• When using HyperTerminal, the steps are:
1. Locate the file to be copied into the device and open the text
document.

2. Copy all of the text.

3. On the Edit menu, click paste to host.

• When using TeraTerm, the steps are:


1. On the File menu, click Send file.

2. Locate the file to be copied into the device and click Open.

3. TeraTerm will paste the file into the device.

Học viện mạng Bách khoa - Website: www.bkacad.com


Configure Router Interfaces

• Identify the role of a router in a network.

Học viện mạng Bách khoa - Website: www.bkacad.com


Configure Router Interface

• Describe the purpose of having multiple interfaces in


one router

Học viện mạng Bách khoa - Website: www.bkacad.com


Configure Router Interface

Học viện mạng Bách khoa - Website: www.bkacad.com


Configure Interface Description

• Explain the purpose of assigning interface descriptions


to a router

Do not affect to router operation


Học viện mạng Bách khoa - Website: www.bkacad.com
Select, Apply, and Verify Appropriate Addressing
Parameters to a Host

Học viện mạng Bách khoa - Website: www.bkacad.com


Select, Apply, and Verify Appropriate Addressing
Parameters to a Host

• Given a type of host and a master addressing scheme,


trace the steps for assigning host parameters to a host

Học viện mạng Bách khoa - Website: www.bkacad.com


Select, Apply, and Verify Appropriate Addressing
Parameters to a Host

• Trace the steps for using ipconfig/ifconfig to verify host


parameter assignments and for using ping to test
assignments

Học viện mạng Bách khoa - Website: www.bkacad.com


Select, Apply, and Verify Appropriate Addressing
Parameters to a Host

Học viện mạng Bách khoa - Website: www.bkacad.com


Use Common Utilities to Verify Network Connectivity
Between Hosts

• Use the ping command in the CLI to determine if the


IP protocol is operational on a local host

Học viện mạng Bách khoa - Website: www.bkacad.com


Use Common Utilities to Verify Network Connectivity
Between Hosts

• Use the ping command to determine if the IP protocol


is properly bound to an NIC

Học viện mạng Bách khoa - Website: www.bkacad.com


Use Common Utilities to Verify Network Connectivity
Between Hosts

• Use the ping command to determine if a host can


actively communicate across the local network

Học viện mạng Bách khoa - Website: www.bkacad.com


Use Common Utilities to Verify Network Connectivity
Between Hosts

• Use the ping command to verify that the local host can
communicate across the internetwork to a given
remote host.

Học viện mạng Bách khoa - Website: www.bkacad.com


Use Common Utilities to Verify Network Connectivity
Between Hosts

• Identify several conditions that might cause the


test to fail

Học viện mạng Bách khoa - Website: www.bkacad.com


Use Common Utilities to Establish a Relative
Performance Baseline for the Network

• Use the output of the ping command, saved into logs,


and repeated over time, to establish relative network
performance

Học viện mạng Bách khoa - Website: www.bkacad.com


Use Common Utilities to Establish a Relative
Performance Baseline for the Network

• Use the output of the traceroute command, saved into


logs, and repeated over time, to establish relative
network performance

Học viện mạng Bách khoa - Website: www.bkacad.com


Use Common Utilities to Establish a Relative
Performance Baseline for the Network

• Trace the steps for verifying the physical


addresses of the hosts

Học viện mạng Bách khoa - Website: www.bkacad.com


How to know about PC connect to SW

Học viện mạng Bách khoa - Website: www.bkacad.com


Labs

Học viện mạng Bách khoa - Website: www.bkacad.com


Summary

Học viện mạng Bách khoa - Website: www.bkacad.com


Commands (EXTRA)

• Set banner (recall)


– Router(config)#banner motd # message #
• Logging Synchronize
– Router(config)#line console 0
– Router(config-line)#logging synchronous
• Removing auto domain name resolve
– Router(config)# no ip domain lookup
• Write command
– Router#write - The same as copy run start

Học viện mạng Bách khoa - Website: www.bkacad.com


Học viện mạng Bách khoa - Website: www.bkacad.com

You might also like